locked
In CRM2013 I'm trying to open silverlight component onclick of navitem, but I'm getting a blank page RRS feed

  • Question

  • In CRM2013 I'm trying to open silverlight component onclick of navitem, but I'm getting a blank page.

    I'm adding silverlight.xap file as a web resource in CRM 2013 and embedding this web resource in webpage using HTML web resource as following:

    <body>
        <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%" id="silverlightControl">
    		  <param name="source" value="/ClientBin/SalesStrategy.xap"/>
    		  <param name="onError" value="onSilverlightError" />
    		  <param name="background" value="white" />
    		  <param name="minRuntimeVersion" value="5.0.60401.0" />
    		  <param name="autoUpgrade" value="true" />
    		  <a href="http://go.microsoft.com/fwlink/?LinkID=149156&v=5.0.60401.0" style="text-decoration:none">
     			  <img src="http://go.microsoft.com/fwlink/?LinkId=161376" alt="Get Microsoft Silverlight" style="border-style:none"/>
    		  </a>
    	    </object><iframe id="_sl_historyFrame" style="visibility:hidden;height:0px;width:0px;border:0px"></iframe></div>
        </form>
    </body>
    </html>
    But I'm getting blank page. Please suggest.

    Monday, September 29, 2014 10:41 AM

All replies

  • Make sure the source parameter is correct:

     <param name="source" value="/ClientBin/SalesStrategy.xap"/>

    in your code you expect to have it in ClientBin, if you added it as webresource in CRM together with this html file and they looks like as

    new_webpage.htm and  SalesStrategy.xap

    you need to change it as 

     <param name="source" value="SalesStrategy.xap"/>

    bottom line you need to respect the relative paths 


    My blog: www.crmanswers.net - Rockstar 365 Profile

    Monday, September 29, 2014 10:47 AM
  • I tried it but no luck!
    Monday, September 29, 2014 10:50 AM