开发者

Problem Publishing Silverlight Application LocalHost

I am trying to publish my SilverLight application to the web and I keep getting "An error occurred while trying to make a request to URI "http://localhost:2898....".

I'v开发者_如何学Goe changed the ServiceReferences.ClientConfig to point to the web address but the app still keeps on trying to connect to localhost.

I've opened the application in FireFox and took a look at the firebug log and it says: -

clientaccesspolicy.xml 404 Not Found localhost:2898

crossdomain.xml 404 Not Found localhost:2898.

The silverlight app is accessing the web service in the same domain, I just don't know why it is still trying to connect to localhost.

Any help appreciated.

Steve


Two things come to mind, but check your "c:\windows\system32\drivers\etc\hosts" file and make sure ure local computer name or ip isnt mapped to localhost or the network machine isnt mapped to localhost for whatever strange reason.

Is the Silverlight app And WCF Service hosted on your localmachine, or are you accessing a server on your local network?


Just open the hosts file (C:\windows\system32\drivers\etc) and uncomment the following line (remove # from the beginning of the line): 127.0.0.1 localhost

Then save it, it should work.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜