Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Services > throw new SoapException: SOAP Fault has Stack Trace in faultString element!

Thread Tools

throw new SoapException: SOAP Fault has Stack Trace in faultString element!

John Saunders
Posts: n/a
I'm in the final stages of developing a web service. One odd thing I'm
seeing is different between our test environments, running Windows Server
2003, and our development environment, running Windows XP Professional: even
if ex.Message contains "This is a message", when I throw ex (ex being a
SoapException I just created), I get the entire stack trace in the
<faultString> element! I'd prefer that my customers not see this! On my
development machine, it works as expected. Only the Message property

I have confirmed that ex.Message really does contain only the message text
just before I throw it.

Any ideas on what could be causing this? Or, is there any other way to
return a SOAP Fault other than throwing a SoapException or


Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Why does std::stack::pop() not throw an exception if the stack is empty? Debajit Adhikary C++ 36 02-10-2011 08:54 PM
C/C++ compilers have one stack for local variables and return addresses and then another stack for array allocations on the stack. Casey Hawthorne C Programming 3 11-01-2009 08:23 PM
JNI's throw new does not throw an exception Java 15 09-08-2005 08:36 AM
Stack fault and page fault help S.Flournoy Computer Support 2 04-17-2004 04:23 PM
Throw Exception Vs Throw New Exception Kerri ASP .Net 2 10-27-2003 02:13 PM