Thursday, November 26, 2009

Installing & Configuring App Fabric Beta (Dublin)

App Fabric formerly knows as Dublin.  You can download from

http://www.microsoft.com/downloads/details.aspx?FamilyID=0bd0b14f-d112-4f11-94bf-90b489622edd&displaylang=en

Windows Server AppFabric is a set of integrated technologies that make it easier to build, scale and manage Web and composite applications that run on IIS. Windows Server AppFabric targets applications built using ASP.NET, Windows Communication Foundation (WCF), and Windows Workflow Foundation (WF).

image

image

image

image

image

In the above screen we need to provide check create new Cluster and provide network file path where you wanted to store configuration .

image

for me the last Distributed Cache Configuration failed . please let me know if you got it installed i did tried other options like giving permission to network file share etc.

After installing the following services added to Internet Information Services Manager. 

image

Now double click Monitoring Database and right click on connection string and click Initialize DB this will create Monitoring DB in SQL server Express.

image

image

Now my next step is to develop some WF services and deploy it to App Fabric and see . Stay Tuned ….

 

Nandri (Thanks)

SreenivasaRagavan.

Wednesday, November 25, 2009

SharePoint Designer 2010 (SPD)

I Think MS Engineers can bring life to any type of broken Bulb.  why i am saying is  FrontPage –>SPD 2007 now  SPD version 2010 really rocks . I Installed today and did play with it and liked it .

image

In first page they have clearly separated the site view .

image

After opening the site

image

Nandri(Thanks)

Sreenivasaragavan.

Tuesday, November 24, 2009

Creating & Deploying SharePoint 2010 Standard WebPart using VS.NET 2010

 

In SharePoint 2010 we have two types of web parts one is Visual WebPart another one is Standard WebPart. Visual WebPart is nothing .ascx controls where you can create WebPart with ASP.NET UI Controls where as Standard WebPart is Class Library in which we create UI programmatically.  VS.NET 2010 fully Integrated with SharePoint 2010 so now creating and deploying is very easy.

In this Blog post i am going to created SharePoint standard Connectable WebPart. Connectable Web part means two web part can communicate each other.

Here are the steps involved creating Connectable Web Parts.

1) First we need to Define the  Interface which specify the data we wanted to pass between web parts.

2) Implement the interface.

3) Create Provider Web Part ( which returns the Reference to the Interface) property  should be decorated with ConnectionProvider attribute.

4) Create Consumer Web Part It should contain the method which would receive the interface and decorated with ConnectionConsumer attribute.

5) Build and Deploy and Test it.

What will my Connectable Web Parts will do?

Basically my Provider Web Part will have Dropdown list which is populated with Account Numbers from Adventureworks SQL Sample Database and the  consumer Web Part will display Account Details for the selected account from Dropdown List.  

image

First Create Empty SharePoint Project and name it what ever name you want.

image

  Next we need to add Interface to our project.  here is my Interface definition

namespace SreeniDBWebpart
{
    public  interface IGetRecords
    {
        string GetId { get; }
    }
}

 

Now create Provider WebPart and Implement the  IGetRecrods Interface.

image

ProviderWebPart

image

Consumer WebPart

image 






Now build and Deploy the project . At this point our Web Parts are deployed into SharePoint and ready to use in any SharePoint WebPart Page.



image



Now to go to SharePoint Click Site Actions->More Options and Create new WebPart Page



image



image



Now Add Provider & Consumer Web Parts into newly created Web Part page .



image



 



Note: When Connecting to SQL DB I directly create the connection and Issued the SQL Command,  this is for Demo purpose only . But you can use LINQ to SQL  or EF 4.0 or you can use Existing Data Layer which you created that talks to DB.



Nandri(Thanks)



SreenivasaRagavan.

Saturday, November 21, 2009

Creating SharePoint Web Parts using VS.NET 2010 Beta 2

 

1) First Create new Visual Web Part project .

image

Next point to this project solution to SharePoint site where you want to deploy this Visual Web Part. When you click Finish this time VS.NET  validates the

SharePoint URL you are provided . In my case  this is the SharePoint site i wanted to deploy this visual web part. http://win-m2ircoq6iqa:44119/Family/

image

Now we can place Controls from Toolbox or even we can type HTML Files in  Source code Window.

image

Once you Build your web part Right click on the solution and Click the Deploy Solution. Now VS.NET Compiles it and Package it and deploy as well.

image   

Now Click Edit ICON and click web part Ribbon and add our custom Visual web part to our site.

image 

image

Click Insert –> click web part->select Custom Folder->Select our Visual Web parts  and then Click it will add our Visual Web parts to our Site.

image

 

Nandri(Thanks)

SreenivasaRagavan.

Saturday, November 14, 2009

Sachin Tendulkar –2 Decades still Running

Does not matter which field you are in I wish you can always contribute to the country  you  were born. 

image

Nandri(Thanks)

SreenivasaRagavan.

Monday, November 9, 2009

Assembly Caching in Silverlight project.

Assembly Caching is the project Deployment technique this allows us to separate dependent assemblies  from XAP file and deploy the dependent assemblies as ZIP files.

image

The advantage of the assembly caching is to reduce application startup time and clients to keep the cached copies of the frequently use assemblies.

You can enable assembly caching just checking the option Reduce XAP size by using application library caching.   When you compile Silverlight project this is options is not set by default.

image

After enabling this option recompile the project  your will see ZIP for files each cacheable assembly as shown below.

image

Nandri(Thanks)

Sreenivasa Ragavan.