Leverage content editor web part to render silverlight application
In this blog post, I’d be sharing the steps to render silverlight applications by leveraging the content editor web part.
Go the virtual directory in IIS, corresponding to the SharePoint web application. In my case it is C:inetpubwwwrootwssVirtualDirectories1111
Create a sub-folder by name silverlight_bin under the C:inetpubwwwrootwssVirtualDirectories1111
Copy the silverlight application (xap) from the bindebug directory of silverlight project to the sub-folder silverlight_bin
Add the content editor web part to the page
Click ‘Modify shared web part’ and enter the following html snippet to the web part to the source editor of the content editor web part
<object data=”data:application/x‐silverlight,” type=”application/x‐silverlight‐2‐b2” width=”400” height=”300”> <param name=”source” value=”/Silverlight_Bin/yoursilverlightapp.xap”/> </object>