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:
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.
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...
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..
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 !
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!
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/
i've performed all the previous steps but still the empty webpart appears , where is the silverlight.js supposed to be
in the /ClientBin/ directory of you SharePoint site. You can copy it from C:\Program Files\Microsoft SDKs\Silverlight\v2.0\Tools)
I allways got the error "Cannot import this Web Part". Installing the .Net Framework 3.5 resolved it.
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
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.
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?
I figured out the issue with the 403 Forbidden error. I need to use an account that has access to the bin directory
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