Silverlight WCF method calls fails if WCF service is not running initially

Posted by Craig on Stack Overflow See other posts from Stack Overflow or by Craig
Published on 2010-05-20T21:45:18Z Indexed on 2010/05/20 21:50 UTC
Read the original article Hit count: 605

Filed under:
|
|

Quite simply I have a generic Silverlight 3.0 web page that is calling a Ping method on a WCF service. I do not have the WCF service running initially when I navigate to this Silverlight page. As expected I get a communication exception when I press the Silverlight button to call the Ping method, which I catch. Now if I start the WCF service and press the Ping button I still get the communication exception. How come? The other scenario is the WCF is running when I navigate to the SL page and the Ping method call works. I turn off the WCF service, ping method fails. Turn it back on and the ping method succeeds. How come if it's not running initially the ping method fails always? I could include some sample code if you'd like but this is just a real simple Hello World example using basichttpbinding, straight out the book.

Thanks,

Craig

© Stack Overflow or respective owner

Related posts about wcf

Related posts about silverlight-3.0