开发者

Silverlight Cross Domain Problem

The problem I'm having is that开发者_StackOverflow中文版 I have a Silverlight app hosted in an ASP.NET app which is making web service calls to 2 web services in the ASP.NET

Locally this works fine, it is accessing the policy files at http://localhost:1982/crossdomain.xml Set up on the remote server though it is still looking for the policy at this location, the service references have been updated to reflect there location on the server. http://webserver/JobWatchService.svc would be the service location but it's still looking for the policy at http://localhost:1982/crossdomain.xml

Any ideas?


I am guessing that you used the Visual Studio 'Add Service Reference' function and have created a ServiceReferences.ClientConfig file that is being compiled into your Silverlight XAP. Start by checking that the address attribute of the endpoint node in ServiceReferences.ClientConfig is pointing to http://webserver/JobWatchService.svc. It sounds like it is still pointing to your development URL.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜