Hi Guys..
Recently when i am using silverlight webpart in sp2010 i am facing below problem.
Could not download the Silverlight application or the Silverlight Plugin did not load.
To re-configure the Web Part or to provide a different Silverlight application (.xap), open the tool pane and then click Configure.
To avoid this we used HTML Form webpart and bypased this error. i added the web part from sharepoint designer, so when i look the source it looks like this.
—————————————————–
<WebPart xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xmlns:xsd=”http://www.w3.org/2001/XMLSchema” xmlns=”http://schemas.microsoft.com/WebPart/v2″>
<Title>FormWP</Title>
<FrameType>None</FrameType>
<Description>Connects simple form controls to other Web Parts.</Description>
<IsIncluded>true</IsIncluded>
<PartOrder>4</PartOrder>
<FrameState>Normal</FrameState>
<Height />
<Width />
<AllowRemove>true</AllowRemove>
<AllowZoneChange>true</AllowZoneChange>
<AllowMinimize>true</AllowMinimize>
<AllowConnect>true</AllowConnect>
<AllowEdit>true</AllowEdit>
<AllowHide>true</AllowHide>
<IsVisible>true</IsVisible>
<DetailLink />
<HelpLink />
<HelpMode>Modeless</HelpMode>
<Dir>Default</Dir>
<PartImageSmall />
<MissingAssembly>Cannot import this Web Part.</MissingAssembly>
<PartImageLarge>/_layouts/images/mssfwp.gif</PartImageLarge>
<IsIncludedFilter />
<ExportControlledProperties>true</ExportControlledProperties>
<ConnectionID>00000000-0000-0000-0000-000000000000</ConnectionID>
<ID>g_c3cc8ea6_cb6e_4e3f_93ce_aadacb831eaf</ID>
<Content xmlns=”http://schemas.microsoft.com/WebPart/v2/SimpleForm”><![CDATA[<object id="SilverlightObjectTag_WebPartctl00_m_g_9086be9b_28a4_4ff6_8dcc_64325f039bd2" data="data:application/x-silverlight-2," type="application/x-silverlight-2" style="display:block" height="1045px" width="960px">
<param name="source" value="/sites/mysite/SiteAssets/my.xap"/>
<param name="onerror" value="_spOnSilverlightError_WebPartctl00_m_g_9086be9b_28a4_4ff6_8dcc_64325f039bd2" />
<param name="background" value="white" />
<param name="initParams" value="MS.SP.url=http://mysp2010/sites/mysite/" />
<param name="windowless" value="true" />
<a href="http://go.microsoft.com/fwlink/?LinkID=149156&v=3.0.40624.0" style="text-decoration: none;">
<img src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight" style="border-style: none"/>
</a>
</object>
]]></Content>
</WebPart>
———————————
In your code dont forget to add MS.SP.url param. otherwise it wont work.
thanks,…enjoy…
Naresh,
This happens if the page that contains the silverlight web part takes more than 5 secs to load. so how come this method of your solves the problem??
Comment by Don — February 12, 2011 @ 11:44 pm |
hi. This HTML webpart works fine but to rduce xap file i used option “Reduce xap file size by using library caching” . so how to get those dlls also to the HTML webpart
Please reply me as soon as possible
Thank you
Shalini
Comment by shalini — March 31, 2011 @ 3:07 am |
Hi,
you can get it done by multiple ways..below are the few links for them..
http://msdn.microsoft.com/en-us/library/dd833069%28v=vs.95%29.aspx
http://www.silverlight.net/learn/videos/silverlight-videos/dynamically-loading-assembliescode/
http://www.silverlight.net/learn/videos/silverlight-videos/loading-dynamic-xaps-and-assemblies/
thanks,
Naresh
Comment by Naresh Bojja — March 31, 2011 @ 7:04 pm |