Silverlight WCF service acting strange

Posted by Caleb Sandfort on Stack Overflow See other posts from Stack Overflow or by Caleb Sandfort
Published on 2009-04-14T16:55:58Z Indexed on 2010/04/14 5:03 UTC
Read the original article Hit count: 517

Filed under:
|

Hi

I have a silverlight project that calls into a wcf service. Everything works fine on my local machine.

However when I deploy to a virtual machine, with the exact same query the wcf service returns, but the result is empty.

I've tried debugging, but have not been able to get it to break in the wcf service.

Any ideas what the problem could be, or how I could go about debugging it?

Thanks


I figured out what the problem is, but am not sure what the solution is.

In my silverlight project the wcf service I am referencing is http://localhost/.../SilverlightApiService.svc

I used fiddler on my vm to see the request that was made and instead of trying to contact the above service, it was trying to contact:

http:///.../SilverlightApiService.svc

So, for some reason my machine name is getting inserted in there instead of localhost. Any thoughts on this would be appreciated.

© Stack Overflow or respective owner

Related posts about Silverlight

Related posts about wcf