My application calls a webservice, when I push a button on the application. The webservice adds some rows to my database. I can successfully call the webservice and see the rows in the DB many times.. but randomly without change to code, the button press within the app will raise this error (the little yellow ! in IE 7, like a javascript error):
Line: 1
Char: 1
Error: Unhandled Error in Silverlight 2 Application Exception has been thrown by the target of an invocation. at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
...
This particular webservice (WEBSERVICE_A) method makes use of a COM Object, local on the webserver. I have other webservice method(WEBSERVICE_B) that does not access this COM object. Once my application gets the error above, it can not call WEBSERVICE_A any more (keeps getting the error, the yellow "!"), but I can still call WEBSERVICE_B.
A quick way for me to fix this is to go into IIS on the server, open the application pool that the web app is running on, and "Recycle" the pool. This again allows my silverlight application to access the webservice_a - without having to refresh / close the silverlight application.
My thoughts are that this is not totally silverlight related, but how can I diagnose this problem..?