I have a Silverlight web application that works fine in VS 2010 that I am now trying to past to the web. Running on the web I get an error indicating I have a policy problem. Further investigation indicates I have a System.Security.SecurityException. I have created both the clientaccesspolicy.xml file and the crossdomain.xml files and have placed them in my root directory (ex: www.mydomain.com). I can access both files by going to Internet Explorer and entering www.mydomain.com/clientaccesspolicy.xml or www.mydomain.com/crossdomain.xml. Using Fiddler I see the web application trying to access either of the files, but Fiddler showes an HTTP 502 error. So, what am I doing wrong? Has anyone else been able to successfully host a Silverlight web application where it is calling back to the server for services. Thanks
You might get the System.Security.SecurityException because of inadequate trust level for the app (medium by default), try to grant full trust permission see this article http://support.Winhost.com/KB/a657/changing-the-default-aspnet-trust-level.aspx