Message: 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.RaiseExceptionIfNecessary()
at StronicoMain.Page.proxy_AddressTypeListCompleted(Object sender, AddressTypeListCompletedEventArgs e)
at StronicoMain.ServerUtil.ServerUtilClient.OnAddressTypeListCompleted(Object state)
You spend an hour or so trying to decifer the InnerException, which gives you no useful information. You then try to access the web service via a web browser, like http://www.servername.com/MyService.svc, and you get a 404 error. You then add that to the mime type list and still the problem is not fixed.
The Cause: Your WCF services are not mapping properly to the IIS 7 metabase.
The Solution: Run the following command “%Windir%Microsoft.NetFrameworkv3.0Windows Communication FoundationServiceModelReg.exe -r” in a command prompt. That clears everything up. Please see this page on social.msdn.microsoft.com for more information.
This post originally appeared on the Stronico blog – with the absorption of Stronico into Digital Tool Factory this post has been moved to the Digital Tool Factory blog
||Written By Steve French|