Naresh Bojja

December 2, 2010

Could not download the Silverlight application or the Silverlight Plugin did not load.

Filed under: Share point,Uncategorized — Naresh Bojja @ 8:53 am

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&#8221; xmlns:xsd=”http://www.w3.org/2001/XMLSchema&#8221; xmlns=”http://schemas.microsoft.com/WebPart/v2″&gt;
<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”>&lt;![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…

About these ads

3 Comments »

  1. 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 | Reply

  2. 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 | Reply


RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Theme: Rubric. Blog at WordPress.com.

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: