Silverlight clientaccesspolicy.xml crossdomain.xml

不想你离开。 提交于 2019-12-24 08:55:59

问题


I am one of 2 developers on a silverlight project that is hosted online. The problem is that i seem to randomly have problems with our webservices not working (This never happens to my colleague).

Using firebug, i had a look at any problems that it was reporting and i found this:

GET clientaccesspolicy.xml 404 not found GET crossdomain.xml 404 not found

Any ideas why only i have a problem with like this?

We have both cleared out our cache and recycled the application pool of the webserver... no joy.

Thanks, Kohan


回答1:


So the webserver intermittently returns 404 errors on the policy file? What version IIS?

If your colleague never gets the error, compare the request headers between his system and yours to be sure there isn't something weird going on.

If the policy file is hosted by a provider and you're getting intermittent 404 errors you should put in a ticket with the provider.




回答2:


This happens when the client attempts to connect to a domain on which it is not hosted. The policy files are used to grant access to that server from the SL client.

Are you both running the client from the same location? Double check your proxy settings and hosts file too.




回答3:


Found out the problem came when accessing the site without typing "www." I should have known to check that first. :(



来源:https://stackoverflow.com/questions/1508400/silverlight-clientaccesspolicy-xml-crossdomain-xml

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!