Author: Tobias Zimmergren

I got a chance to finally try the blueprints out, and it works fine. It’s a couple of steps on the way that needs to be performes, listed below.

What you need to think about when setting it up is to make sure the following pre-requisities are installed on your SharePoint server:

  • .NET Framework 3.5 installed
  • Service Pack 1 for SharePoint (WSS 3.0 / MOSS 2007 depending on which version you run)
  • Silverlight 2.0 beta 1 runtime browser plugin
  • Configure the *.xap file type extension as a MIME type in your IIS webserver as: application/x-silverlight-2-b1
  • Configure the web.config using the ASP.NET 3.5 AJAX tags and the Silverlight configurations

Since I make an assumption that you guys already know how to complete the first few tasks here, I’ll just give you the web.config changes that needs to be made and then you can simply run the Setup for the Blueprints and have a whole lot of Silverlight/SharePoint fun.

Changes that needs to be done in your SharePoint application’s web.config in order to run Silverlight applications

This section will give you a walkthrough to what you need to do in your web.config in order to get the Silverlight Blueprints up and running.

Under the -element, add the following code:

Under the -element, add the following code:

Under the -element, add the following code:

Under the -element, add the following code:

Under the -element, add the following code:

Under the -element, add the following code inside the -tag:

Under the -element, add the following code at the end (in the bottom of web.config)

Time to install and deploy the Silverlight Blueprints and try the Silverlight Web Part out!

If you’ve come this far and ensured that your SharePoint site still runs with the newly added lines of code, and you have ensured that all the aforementioned pre-requisites are fulfilled – You’re ready to go!

  1. Run setup.exe for the Blueprints Hello Silverlight 2 Web Part and make sure that the System Check passes all tasks
    Silverlight Blueprints Setup
  2. Define which web applications that you would like to deploy this webpart to (tip: the one you’ve edited web.config for would be a good choise ;-)  ) – In my case it’s http://zimmergren:8003
    Define where the solution should be deployed
  3. Just hit next and let the installation and deployment complete – Sit back and relax for those sweet 8 seconds.
  4. Navigate to the site application where you installed the Blueprints (In my case http://zimmergren:8003 which is a normal Collaboration Portal), from there, click the following: 1. Site Actions
  5. Site Settings
  6. Modify all site settings
  7. Site Collection Features
  8. Activate on the feature called "Silverlight BluePrint for SharePoint: Hello Silverlight 2 Web Part"  Activate the Silverlight BluePrint for SharePoint web part
  9. If you havn’t already, create a new Blank Site (for ease and simplicity) and call it anything (I called mine Blueprints)
  10. Do the following: 1. Site Actions
  11. Edit Page
  12. Click "Add a Web Part"
  13. Locate the section called "Silverlight BluePrint for SharePoint"
  14. Choose the Web Part called "Silverlight BluePrint for SharePoint: Hello Silverlight 2 Web Part"
    Add the Silverlight WebPart to your SharePoint page
  15. You’re all set. Cross your fingers and hope that it all works :-)

Proof that it actually works

On this screenshot you can see that the Web Part works, and when I right click you see the Silverlight menu as in any other Silverlight application.

Hello Silverlight 2 Web Part Proof Of Concept

And here’s another image with the Picture Viewer Silverlight WebPart:

Silverlight BluePrint for SharePoint Media Viewer Web Part Proof of Concept

Known Issues

  • If the version of your Silverlight 2.0 beta1 runtime differs from the one the Blueprints were compiled with, you’ll end up with an empty white webpart – although you can rightclick and get the Silverlight menu to show. In order to fix this problem, simply open the source project in Visual Studio and recompile it – then copy the .xap file to your setup’s ClientBin folder and replace the one there. (Or simply copy it to your filesystem directly to e.g. C:InetpubwwwrootwssVirtualDirectories8003ClientBinSL.HelloSilverlight2SL.XAML.HelloSilverlight2.xap- This problem was solved after conversating with Patrick, so – I now owe you a beer when I see you Patrick!

Last words

I sincerely hope that this helps you out in the process of configuring and getting your Silverlight Blueprints for SharePoint up and running quickly and with ease!

Thanks for tuning in, please leave a comment or drop a line in the mail – appreciate it! :)

Posted by; Tobias Zimmergren on

Technorati Tags: Silverlight, Microsoft, SharePoint Tags: Silverlight, Microsoft, SharePointForum