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

Discussion in 'ASP .Net Web Services' started by John Saunders, Aug 23, 2006.

  1. 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
     
    John Saunders, Aug 23, 2006
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Debajit Adhikary
    Replies:
    36
    Views:
    2,413
    Andre Kaufmann
    Feb 10, 2011
  2. Mark A. Deal

    Does a SOAPException throw exit a function call?

    Mark A. Deal, Feb 25, 2005, in forum: ASP .Net Web Services
    Replies:
    0
    Views:
    189
    Mark A. Deal
    Feb 25, 2005
  3. Ajay Choudhary

    how to throw SoapException from HttpApplication

    Ajay Choudhary, May 23, 2005, in forum: ASP .Net Web Services
    Replies:
    0
    Views:
    136
    Ajay Choudhary
    May 23, 2005
  4. Sambo

    SoapException - Fault Element - Compatibility

    Sambo, Oct 3, 2006, in forum: ASP .Net Web Services
    Replies:
    4
    Views:
    279
    Sambo
    Oct 18, 2006
  5. Jeremy

    stock stack trace from showing in soapexception

    Jeremy, Dec 12, 2007, in forum: ASP .Net Web Services
    Replies:
    2
    Views:
    208
    John Saunders [MVP]
    Dec 13, 2007
Loading...

Share This Page