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

J

John Saunders

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
displays.

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

Thanks,
John
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,812
Latest member
GracielaWa

Latest Threads

Top