It’s difficult to troubleshoot Silverlight applications built with WCF RIA services n a production environment because:
RIA Domain services is a virtual file and you will not find it in the directory structure.
Any exception thrown by the domain service will NOT be shown on the Silverlight client. It will only show up as a 404 Not found error. Without the real error, it’s very difficult to troubleshoot the problem.
In this article we are going to show you how to get the real error returned by the RIA domain service.
With a Silverlight application, all you will see is something similar to below which is not very helpful when troubleshooting your application.
To get the real error message returned by the domain service, you will need to install the Web Debugging Proxy tool, Fiddler.
Once you have Fiddler installed, you can fire up a Fiddler and start capturing the HTTP requests.
In the Fiddler trace below, you can see that the request made to the domain service, /riarc2test/ClientBin/HRApp-Web-AuthenticationService.svc/binary/GetUser, returned a 500 error. In the web view on the right hand pane, Fiddler will display the real error returned by the domain service.
Also note that /riarc2test/ClientBin/HRApp-Web-AuthenticationService.svc does not exist on the server but you’ll get the same error if you browse to this URL.
If you run in to problems troubleshooting your Silverlight RIA application, please post in our Community Forum. Technical support cannot assist with specific application troubleshooting and developmental issues.
Article ID: 986, Created On: 10/4/2011, Modified: 10/4/2011