I’ve been moving house so not many updates recently but i’ll try and get back into the swing again! Today i spent far too much time trying to fix:

Uncaught Error: Unhandled Error in Silverlight Application [Async_ExceptionOccurred] Arguments: Debugging resource strings are unavailable. Often the key and arguments provide sufficient information to diagnose the problem. Seehttp://go.microsoft.com/fwlink/?linkid=106663&Version=4.0.50524.0&File=System.dll&Key=Async_ExceptionOccurred at System.ComponentModel.AsyncCompletedEventArgs.RaiseExceptionIfNecessary() at adDEPOT_Invoice_Emailer.aIE.getInvoiceListCompletedEventArgs.get_Result() at adDEPOT_Invoice_Emailer.MainPage.adDEPOT_IE_getInvoiceListCompleted(Object sender, getInvoiceListCompletedEventArgs e) at adDEPOT_Invoice_Emailer.aIE.adDEPOT_IEClient.OngetInvoiceListCompleted(Object state)

I had this error a while back when i first tried to publish my silverlight / wcf app (see http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/Windows/Windows_Mobile-_PocketPC-_WinCE/Q_26259781.html)- but this time I was sure i’d deployed the correct files!

1) I tested the wcf service using wcfStorm and found it to be working AOK- so figured it must be a problem with communication between the Silverlight App and the WCF service.
2) I tried accessing the Silverlight App from the browser on the server console (i.e. http://localhost) and everything worked AOK- so figured it must be the WCF service reference needing to be pointed to the server name instead of localhost. But how do we fix this without a recompile?!

It took me some time but i cracked it… The .xap file is actually a .zip archive! I renamed the file, opened it up and revealed my ServiceReferences.ClientConfig – here i changed the localhost references to the servername and voila- everything works!

L

Advertisements