this problem was bugging me, and this blog provided me solution for it.
http://wpfwonderland.wordpress.com/2007/08/16
/clr-has-been-unable-to-transition-from-com-context-for-60-seconds/
Cheers
Friday, August 24, 2007
Tuesday, January 09, 2007
SOAP Exception, with trace or without
When a Web service returns a SOAP Exception, you could decide on whether to pass on the trace or not.
If the web service consumer could be indicated with the trace, so as to help in fixing the problem then pass on the trace.
Or when business layer validations are thrown as exception all you need is "Server was unable to process --> User name is invalid", instead of the lengthy SOAP exception.
To enable exception, with trace, Web.config of web service, set the customErrors mode to "RemoteOnly" or "Off"
To disable trace in the exception, Web.config of web service, set the customErrors mode to "On"
Cheers
If the web service consumer could be indicated with the trace, so as to help in fixing the problem then pass on the trace.
Or when business layer validations are thrown as exception all you need is "Server was unable to process --> User name is invalid", instead of the lengthy SOAP exception.
To enable exception, with trace, Web.config of web service, set the customErrors mode to "RemoteOnly" or "Off"
To disable trace in the exception, Web.config of web service, set the customErrors mode to "On"
Cheers
Subscribe to:
Posts (Atom)