views:

352

answers:

1

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've 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

A: 

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?

Neil