Advertisement

Silverlight and Web Service Errors

When working with data and Silverlight there has often been the questions of wondering why when a service call fails that Silverlight returns the HTTP 404 status code.  In fact I’ve written about troubleshooting those types of issues in the past and tools you can use to help investigate some problems.

Still people mostly ask "if there is an exception, why is Silverlight telling me ‘not found’ instead of sending me the exception?'”  Eugene Osovetsky from the connected systems team aims to answer those questions in a recent post with a little more detail than has been provided in the past as well as offering some suggestions.  From his post, this is one of the main reasons which I’ve echoed in discussions, webcasts, forums in the past as well:

“Unfortunately, web browsers have a limitation with regards to status codes: When a browser plugin (such as Silverlight) makes an HTTP request, and the response status code is not 200, the browser hides the actual status code and the message body from the plugin. All Silverlight knows is that "something went wrong", but it has no way of discovering any details.”

Take a look at Eugene’s post for some other helpful suggestions.


This work is licensed under a Creative Commons Attribution By license.

  1. 10/5/2008 6:58 PM | # re: Silverlight and Web Service Errors
    clear explanation, as long as the devs know sl is running in the browser's sandbox
  2. 11/12/2008 9:02 AM | # Silverlight Web Service Custom HTTP Headers
    Hi Tim

    Is there a way for adding Custom HTTP Headers to SOAP Envelope sent by client proxy.i generated a client stub from java service WSDL in VS 2008.I couldn't find the way how can i add HTTP header when i make a asynchronous call to the service with client proxy.I saw the code how the custom SOAP headers are sent from the wrapper classes in the blog http://blogs.msdn.com/silverlightws/

    But i want the ability to send the custom HTTP headers instead of SOAP headers.Kindly help me.
  3. 12/1/2008 8:23 AM | # re: Silverlight and Web Service Errors
    Another useful link for registering *.svc handlers in iis7 andrewmyhre.wordpress.com/.../enabling-wcf-in-i...

 
Please add 6 and 5 and type the answer here:
First time here? You are looking at the most recent posts. You may also want to check out older archives. Please leave a comment, ask a question and consider subscribing to the latest posts via RSS or email. Thank you for visiting! (hide this)