[Mono-list] Obtaining stack trace of exception from mono runtime in asmx web service

Andrus kobruleht2 at hot.ee
Sun Jan 4 13:45:49 EST 2009


I tried to run ASMX web service with Apache+mod_modo

In MONO this service returns terse http error page with contents:

<?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>

Error occurs outside my web method call so try / catch inside web method 
does not catch this.

How to get more information about this error in MONO ?
.NET allow the following:

1. set flag in web.config file which forces to return stack trace
2. set logging so that error details are logged to file in server, with 
stack stace

Is there similar possibilies in MONO ASMX web services ?

Andrus.

Links:

http://eugeneos.blogspot.com/2008/09/faults-and-exceptions-when-using-web.html
http://msdn.microsoft.com/en-us/library/ms733025.aspx
http://blogs.msdn.com/silverlightws/archive/2008/04/06/getting-full-exceptions-in-silverlight-2-beta-1.aspx 



More information about the Mono-list mailing list