I have silverlight control in VisualWebPart (Sharepoint 2010) and when I add my webpart to Sharepoint site control loads to 100% (loading animation sill runs) and not apear. Same Silverlight app works in SilverlightWebPart but i need to use VisualWebPart/WebPart.
this is what i add to empty VisualWebPart:
<object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="300" height="300">
<param name="source" value="http://localhost/Shared%20Documents/SLAPP.xap"/>
<param name="background" value="white" />
<param name="minRuntimeVersion" value="4.0.41108.0" />
<param name="autoUpgrade" value="true" />
<a href="http://go.microsoft.com/fwlink/?LinkID=124807" style="text-decoration: none;">
<img src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight" style="border-style: none"/>
</a>
how to fix it?