If you worked with Telerik controls in the past you know that those are great in terms of look as well as rich functionality.
In my last article I described how to load Microsoft Silverlight controls onto SharePoint. In this 24 min video I cover how to deploy Silverlight application running Telerik controls onto SharePoint.
Here is the video in HD
thanks for the tutorial, but i am stuck on something. i believe i have followed your directions correctly but when i check out the page.aspx in sharepoint i get no sign of silverlight and no error shown. The silverlight application i created runs fine. I also dropped the telerik and used a standard silverlight button and got the same results.
i did go in and make mime types for silverlight on my iis 6 (application/x-silverlight-2).
have you encountered this before, or any idea where i should be looking to fix this?
I did face all sorts of issues like that. It was a real nightmare to get Silverlight running in MOSS for the first time. So you’re page doesn’t show any sign of silverlight; white page I assume. Do you get a javascript error in the bottom right corner of your screen – if so what does it say? When you right click on the white screen – do you get “Silverlight” menu item? Does your page.aspx inherit masterpage yet or is it just running without a masterpage? If you’re running with masterpage make sure you have added transitional DTD to the HTML definition of your masterpage.
@Yaroslav Pentsarskyy
the page shows almost sign of silverlight, no javascript errors, no ‘white area’ at all, i clicked around trying to get a silver light menu to appear anywhere on the page but no luck.
the only trace of silverlight i can find is the following when i view the source of my page.aspx.
//\r\n\t\u003cparam name=”MinRuntimeVersion” value=”2.0.31005.0″>\r\n\r\n\t\u003c/param>\u003ca href=”http://go2.microsoft.com/fwlink/?LinkID=114576&v=2.0″>\u003cimg src=”http://go2.microsoft.com/fwlink/?LinkID=108181″ alt=”Get Microsoft Silverlight” style=”border-width:0;” />\u003c/a>\r\n\u003c/object>’);
//]]>
i thought it mite have been mime type related and i went to iis and double checked.
now i am wondering if it mite have to do with the version of silverlight i am using, there seems to be quite a few flavors running around. the version of system.web.silverlight that visual studio 2008 sharepoint tools 1.2 installed was 2.0.30825.0. I threw it in the gac as well.
thanks
looks like it didnt like all the code i posted in.
this should be at the top
Sys.UI.Silverlight.Control.createObject(‘ctl00_PlaceHolderMain_Xaml1_parent’, ‘\u003cobject type=”application/x-silverlight-2″ id=”ctl00_PlaceHolderMain_Xaml1″ style=”height:100%;width:100%;”>\r\n\t\u003cparam name=”MinRuntimeVersion” value=”2.0.31005.0″>
OK, if you click around the browser area and see no silverlight menu .. means your Silvelight app wasn’t loaded. Are you using Chrome by any chance? I remeber having this issue with Chrome – for some reason v 2.0 of silverlight runtime doesn’t load properly with Chrome. When your Visual Studio generates the test page – can you open your silverlight app from this test page?
my silverlight test app runs fine and shows the calendar or button.
i’m running firefox 3.0.11 with the latest version of IE tab 1.5x, i have also tried it in IE 7.0.5730.13 with the exact same results.
I am running visual studio 2008 sp1, IIS 6, Moss 2007 sp1, windows server 2003 sp2.
i have installed silverlight 2 sdk, silverlight tools for visual studio 1.2 and the version of system.web.silverlight i am using is 2.0.30825.0.
next i was gonna try the silverlight media player example but fear i will end up with the same result.
Another difference is that i am targeting the 3.5 framework in the web.config while you were using 4.0.
thanks again.
Ok, this thing you mentioned about NET 4.0 is very important. Make sure you compile your visual studio project for 3.5 (check in project properties). This way web.config that is generated references 3.5 DLLs. Once you have that – transfer the entries from your generated web.config to sharepoint web.config.
Also, try creating silverlight app that has just MS silverlight controls – maybe the issue you’re facing has something to do with Telerik DLLs not registering or being picked up.
everything was done for .net 3.5, i already tried with just a button and got the same results.
out of sheer frustration i upgraded to IE 8 and ran it in compatibility mode and still got the same results, but when i turned off compatibility mode and ran it i saw the silverlight application inside of sharepoint.
next i will try and create a webpart with silverlight and see if it displays in IE 8 in compatibility mode. For production code i would pretty much always wanted to use a webpart anyways but your tutorial was a good quick fix to see sharepoint/silverlight in action.
thanks
Great, you’re few steps closer …. make sure you blog about your final solution