Silverlight Enabled WCF Service and Silverlight 2 Project Deployment.


  • Hi Guys, I'm stuck and would appreciate it if someone could give me some help.  This is my first shot at creating a Silverlight application.

    Problem:  After deploying the silverlight project to the production machine (XP professional) it runs great locally if I point it to the localhost in the web.config and ServiceReferences.clientconfig. As soon as I change it from localhost to the servername it can no longer communicate with the WCF service.

    Works: <endpoint address="http://localhost/MyProgram/Services/Service1.svc

    Fails: <endpoint address="http://<ServerName>/MyProgram/Services/Service1.svc


    I get the Error: "Unhandled Error in Silverlight 2 application An exception occurred during the operation, making the result invalid. Check  InnerException for exception details. At system.componentModel.AsyncCompletedEventArgs.RaisedExceptionIfNessesary ....

    Basically its no longer hitting the webservice.

    I'm running IIS 6.0. 

    Any Help would be great.





    Wednesday, December 17, 2008 3:30 PM


All replies

  • Can you access the service with the server name?  Open the browser and manually paste the URL to see if that works:


    Next make sure all your communication is working by profiling it.  You can use the Web Development Helper to aid you in that and it will let you know if: your clientaccesspolicy.xml file is OK, your service is being reached, your service is responding properly with a well formed message:

    Wednesday, December 17, 2008 3:40 PM
  • Thank you for your reply.  I downloaded the Web Developer Helper, did an IISReset and it works now. Thank you so much for you time in being willing to lend a helping hand.

    Thank you.


    Wednesday, December 17, 2008 4:55 PM