Mar23

Installing the SharePoint BluePrint for Silverlight: SilverlightPart

 Categories: SharePoint, Silverlight

First off, Silverlight 2.0 is still beta so you should not install it on a production server, but for those who want to throw caution into the wind (it will be blown back in your face like me), here are the steps I went through for a non-development environment (i.e. no Visual Studio 2008 installed).

If you have tried to get this working before reading this post and just got a blank web part then step 5 is probably the solution.

If you just install the Silverlight BluePrint samples onto a SharePoint Server, they will not work because the following dependencies must be installed:

  1. Install .Net 3.5 framework http://www.microsoft.com/downloads/details.aspx?FamilyID=333325fd-ae52-4e35-b531-508d977d32a6&DisplayLang=en
  2. Silverlight plugin (yes, this must be installed on the server)
    http://www.microsoft.com/silverlight/resources/installationFiles.aspx?v=2.0
  3. Silverlight 2 Beta 1 SDK
    http://www.microsoft.com/downloads/info.aspx?na=90&p=&SrcDisplayLang=en&SrcCategoryId=&SrcFamilyId=4e03409a-77f3-413f-b108-1243c243c4fe&u=http%3a%2f%2fdownload.microsoft.com%2fdownload%2f4%2f1%2fb%2f41b00352-1a7f-48bb-be51-b9cef025ca11%2fsilverlight_sdk.exe
  4. Copy the System.Web.Silverlight.dll from C:\Program Files\Microsoft SDKs\Silverlight\v2.0\Libraries\Server to c:\windows\assembly
  5. Check the /ClientBin/ directory of you SharePoint site for the existence (and correct version) of Silverlight.js (if missing, copy it from C:\Program Files\Microsoft SDKs\Silverlight\v2.0\Tools)
  6. On W2K8 grant Machine\Users Read/Execute, Read and  List Folder Contents to the ClientBin directory otherwise you get 403 error when the SilverLightPart web part properties tries to browse to the .XAML and .JS files.
  7. Register the MIME type for file extension .XAP in IIS (the W2K8 registraion is not correct for SL2B1)

Perform an IISReset and you should now be able to add the SilverlightPart (1st demo from http://www.ssblueprints.net/sharepoint/) to a page. If you get a blank web part, step 5 above fixed this for me, if not it appears the only option is to recompile the web parts in VS 2008 (a bit tricky if you don't have such a development server).

Sample page hosting a Silverlight 1.0 Hello World XAML demo http://www.wssdemo.com/pages/silverlight2.aspx?PageView=Shared

The other samples require AJAX support so you will have to install ASP.Net 3.5 make major changes to your web.config file. I'll post steps for doing this on a non-developer SharePoint platform soon.

 
 

Links to this post

Comments

On 24 Mar 2008 04:33, Ian Morrish said:

Note: this is just to get Silverlight 1.0 xaml files to work. XAP is still not working, more steps must be required :-( I'll keep on working at it...

On 25 Mar 2008 09:22, Prain Wach said:

Keep going Ian, i´ll wait for your next post - how to make this XAP (V.2) working..? I have not VS2008, and i have to change my webconfig by hand (se Patrick Tisseghems blogg), many steps..

On 26 Mar 2008 02:05, Chris OConnor said:

Still yet to get the 2.0 version working - I noticed it's now working on your samples page. Is that one using the XAP version ? Great article - thanks for the tips !

On 26 Mar 2008 06:02, Prain Wach said:

HI Chris, im pretty sure that this is not XAP-files, just the silverlight blueprint webpartwrapper who picking up version 1. Im really curios if Ian will get XAP to work without VS2008.. Hope to Ian!

On 27 Mar 2008 02:06, Chris OConnor said:

Success !! Have been able to show the Silverlight 2 control within a webpart - using the XAP file. Lots of to/fro - have blogged about it here...> http://grumpywookie.wordpress.com/2008/03/26/getting-started-with-silverlight-blueprint/


http://grumpywookie.wordpress.com/2008/03/26/installing-silverlight-for-vs2008/
http://grumpywookie.wordpress.com/2008/03/26/success-hello-world-silverlight/

On 08 Apr 2008 01:48, Zaher said:

i've performed all the previous steps but still the empty webpart appears , where is the silverlight.js supposed to be

On 12 Apr 2008 12:25, Ian Morrish said:

in the /ClientBin/ directory of you SharePoint site. You can copy it from C:\Program Files\Microsoft SDKs\Silverlight\v2.0\Tools)

On 16 Apr 2008 09:27, Guido said:

I allways got the error "Cannot import this Web Part". Installing the .Net Framework 3.5 resolved it.

On 23 Apr 2008 02:44, Riccardo said:

The problem with the webpart being blank. Posiable fix. The XAP file is a zip file with AppManifest.xaml and the DLL for the silverlight app. Rename it to .zip, extract the files. The AppManifest.xaml seems to be the culprit. On the first line

On 06 May 2008 03:37, Andre Stene-Larsen said:

Try to use the content editor web part to inject the object element with a pointer to the .xap file. In your clientbin folder of your silverlight project you should find a testpage.html. That's the html you need. It works, but it is a work around.

On 17 May 2008 07:34, Rosie said:

For the Silverlight Part, I'm able to see it. But when I click on "open the tool pane" => and then choose either radio button (version 1 or 2) I get a 403 FORBIDDEN. Any insight?

On 21 May 2008 04:57, Rosie said:

I figured out the issue with the 403 Forbidden error. I need to use an account that has access to the bin directory

On 18 Jul 2008 02:33, Mohammed Idrees said:

Hi, Thanks for posting the complete checklist. However I could not able to get my silverlight web part displayed on the sharepoint site. It gives the exception of initialize error(2104). Unable to download the silverlight application. Please look into web server settings

On 17 Jan 2009 11:26, Brijesh Patil said:

Hi, Thanks for posting the complete checklist. However I could not able to get my silverlight web part displayed on the sharepoint site. It gives the exception of initialize error(2104). Unable to download the silverlight application. As per the check list I did all the necessary chanes too.. but with no output. I always get one single error Intialize error 2104. This error is really great to see but I am fed up looking at that again and again.

Leave a comment





CAPTCHA Image Validation