Issue with deployment on Https server

Aug 10, 2012 at 1:38 PM

All, 

This is not related to Simple MVVM but I am hoping Tony or anyone can provide some insight into what is happening. I have a site where the web client (asp.net web forms ) reside which has to run under https. This form has to call and load my xap file from an http server. Same internal network but two different iis servers i.e. cross domain. I am unable to load the xap file on the http server. In testing if I make both servers http the xap loads with no issue however if I set them both to https or leave one of the servers as https and the other http the xap will not load. The silverlight viewer initializes but it will not load the xap. I have setup a clientaccesspolicy.xml file with the following. 

 

<?xml version="1.0" encoding="utf-8"?>
<access-policy>
	<cross-domain-access>
		<policy>
		  <allow-from http-request-headers="*">
		    <domain uri="https://*" />
		  </allow-from>
		  <grant-to>
	   	    <resource path="/" include-subpaths="true"/>
		  </grant-to>
		</policy>
	</cross-domain-access>
</access-policy>

 

html code loading xap:

 

<div id="silverlightControlHost">
 <object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="100%" height="100%">
	<param name="source" value="http://secondaryserver.dev.local/ClientBin/randytest.xap" />
	<param name="onError" value="onSilverlightError" />
	<param name="background" value="silver" />
	<param name="minRuntimeVersion" value="4.0.60310.0" />
	<param name="autoUpgrade" value="true" />
	<a href="http://go.microsoft.com/fwlink/?LinkID=149156&v=4.0.60310.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>

(Note: in the source I have tried https as well and no luck :(   )

 

Can anyone provide some insight into why this is not working. Is it a security block in Silverlight that is preventing this?

My apologies in advance for posting a non-simple mvvm topic but you guys are my last hope at figuring this out I have posted on other forums and not received any suggestions.  

I'd appreciate any suggestions

Thanks again and love the toolkit!

Regards,

rlcrews

Aug 10, 2012 at 6:20 PM

After some more testing and reading from MSDN this doesn't look like it will be possible due to the security of Silverlight.  

regards,