Saturday, May 17, 2008

Getting started with SharePoint and Silverlight - Part I

This is the first part of a series of postings about how you can use Silverlight and Office SharePoint Server 2007 together. I'm new at Silverlight development - so I will take it one step at a time.

Things you will need to install to get you started right now:

First I took a look at one of the videos on  - the one with the smiley - Getting started with Silverlight and followed the instructions to create my first Silverlight project. There are some differences with Silverlight 1.0 though. One of the things you will notice immediately is the fact that with 2.0 - Silverlight applications are basically compiled into a .xap file (For more details: take a look at Silverlight: Anatomy of an .XAP file).

Now, let's get this deployed on a VPC which has both SharePoint Server 2007 and Silverlight installed. To make things a little bit easier let's test this first in a separate web site which hasn't been extended by SharePoint.

It is important that you first add both the XAML and XAP MIME extensions to IIS  (See Configuring a web server to host Silverlight Content as well as Configuring MIME Types (IIS 6.0) for more details ...) otherwise your Silverlight app won't work. (Do an iisreset after you added the MIME extensions)

So open up the IIS MMC, create a new website and map it to a folder on your filesystem. Next copy Testpage.html as well as the xap file into this folder. Et voila, your first Silverlight application is deployed ....

In a next posting I will take a look at how to get this same Silverlight app loaded within SharePoint Server 2007.

1 comment:

Silverlight Development Company said...

Thanks for sharing information on SharePoint and Silverlight - Part I. I found one company called SpadeWorx and they claim that they are leading Flex Development Company in India..

Silverlight Development Company