Der ursprünglich wurde folgendes HTML in einer Webressource hochgeladen:
<form id="form1" runat="server" style="height:100%"> <div id="silverlightControlHost"> < object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="100%" height="100%"> <param name="source" value="something" /> <param name="onError" value="onSilverlightError" /> <param name="background" value="white" /> <param name="minRuntimeVersion" value="5.0.61118.0" /> <param name="autoUpgrade" value="true" /> <a href="http://go.microsoft.com/fwlink/?LinkID=149156&v=5.0.61118.0" style="text-decoration:none"> <img src="http://go.microsoft.com/fwlink/?LinkId=161376" alt="Get Microsoft Silverlight" style="border-style:none" /> </a> </object> </div> </form>
Editiert man nun diese Webressource im Web basierten Webressourcen-Editor wird daraus folgendes:
<FORM style="HEIGHT: 100%" id=form1 runat="server"> <div id=silverlightControlHost> < object data="data:application/x-oleobject;base64,QfXq3+HzJEysrJnDBxUISgAJAAAjSAAAcyMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=" width="100%" type=application/x-silverlight-2 height="100%"> <a href="http://go.microsoft.com/fwlink/?LinkID=149156&v=5.0.61118.0" style="text-decoration:none"> <img src="http://go.microsoft.com/fwlink/?LinkId=161376" alt="Get Microsoft Silverlight" style="border-style:none" /> </a> </object> </div> </FORM>
Es handelt sich hierbei um ein bekanntes Issue:
http://msdn.microsoft.com/en-us/library/cc189089%28v=vs.95%29.aspx
Never edit the HTML source code for a page hosting a Silverlight web resource using the text editor provided in the application. The text editor changes the HTML and breaks element definition necessary to host the Silverlight XAP web resource. For more information, see Using the Text Editor for HTML Web Resources. If you must use the text editor, omit the
data="data:application/x-silverlight-2,"
parameter in the element. Although this should prevent breaking the Silverlight web resource, the text editor may still introduce other undesirable changes.