开发者

silverlight wcf call working locally but not from remote host

i have a silverlight application that is hosted within a asp.net web application. in the web application there is a wcf service defined. silverlight uses this service. when the silverlight application runs locally, everything works fine. when the application is deployed to my server, the a开发者_StackOverflow社区pplication itself loads, but loading the data from the wcf service fails.

application is hosted on virtual private server running on port 1900. port 1900 configured for inbound and outbound traffic at the firewall. when i access the appilication from within the server, it works. when accessing it from another host, loading the data via wcf fails.


Really sounds like a same-origin fail.

Check to verify that both the silverlight.xap file and the wcf endpoint are: - on exactly the same domain (www.mydomain.com != mydomain.com) - using exactly the same protocol (http/https) - using exactly the same port number (1900 in your example)

If not, you can use the crossdomain.xml file to work around it.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜