[Mono-list] Soap Response Interrupted by Target of Invocation Exception

Glen Ford glen.ford at spinvox.com
Mon Oct 30 16:33:43 EST 2006


*Has anyone else found the following in a SOAP Service, in returning an 
array of objects in a SOAP Response I can see that output is being 
interrupted by 'Target of Invocation Error'

As below ...*

Date: Fri, 20 Oct 2006 14:38:21 GMT
Server: Apache/2.0.54 (Linux/SUSE)
Content-Length: 1413
Cache-Control: private
Connection: close
Content-Type: text/xml; charset=utf-8

<?xml version="1.0" encoding="utf-8"?><soap:Envelope
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body
soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><q1:MyMethodResponse
xmlns:q1="http://tempuri.org/"><GetQueueMessagesResult href="#id1"
/></q1:GetQueueMessagesResponse><q2:Array id="id1"
xmlns:q3="http://tempuri.org/" q2:arrayType="q3:MessageItem[105]"
xmlns:q2="http://schemas.xmlsoap.org/soap/encoding/"><Item href="#id2" /><Item
href="#id3" /><Item href="#id4" /><Item href="#id5" /><Item href="#id6" /><Item
href="#id7" /><Item href="#id8" /><Item href="#id9" /><Item href="#id10"
/><Item href="#id11" /><Item href="#id12" /><Item href="#id13" /><Item
href="#id14" /><Item href="#id15" /><Item href="#id16" /><Item href="#id17"
/><Item href="#id18" /><Item href="#id19" /><Item href="#id20" /><Item
href="#id21" /><Item href="#id22" /><Item href="#id23" /><Item href="#id24"
/><I<?xml version="1.0" encoding="utf-8"?><soap:Envelope
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><soap:Fault><faultcode>soap:Server</faultcode><faultstring>Exception
has been thrown by the target of an
invocation.</faultstring></soap:Fault></soap:Body></soap:Envelope>

*
**Using tracing on XSP, I can see the following ...*

mono --trace /usr/lib/xsp/1.0/xsp.exe

<snip>
 . . . . . . . . . . . . . . . . . . . . . . . . . . . LEAVE:
System.Web.HttpResponseStream:AppendBucket
(System.Web.HttpResponseStream/Bucket)
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
 . . . . . . . . . . . . . . . . . . . . . . . . . . LEAVE:
System.Web.HttpResponseStream:AppendBuffer (byte[],int,int)
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
 . . . . . . . . . . . . . . . . . . . . . . . . . LEAVE:
System.Web.HttpResponseStream:Write (byte[],int,int)
EXCEPTION handling: ArgumentNullException
EXCEPTION handling: TargetInvocationException
EXCEPTION handling: TargetInvocationException
EXCEPTION handling: TargetInvocationException


*Once this happens once it happens on a method it then happens every 
time that method is called.

I have yet to determine why this is happening, and wondered if anyone 
else has seen this before?

*
Regards,


Glen*
*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20061030/246cea71/attachment.html 


More information about the Mono-list mailing list