Topaz Filer: if you use e-mail for business, we can save you money and decrease your risk.
Xml Soap Exceptions - Get Internal 500 Error
Messages   Related Types
This message was discovered on microsoft.public.dotnet.framework.aspnet.webservices.


Adam Stevenson
Hey all,

I am having a problem getting soap error message to be
handled without recieveing an internal server error (the
plan, basic, no explanation message) when I throw an
SoapException inside a WebService Method. I have tried
the code on two seperate servers, and get the same
results. According to the help file contained in Visual
Studio .NET Library, this should work but does not.

All I did was copy the following function (with the guts
of course, and it did not throw an exception, but instead
just returned a 500 internal error.

I am trying the sample code found at:

ms-
help://MS.VSCC/MS.MSDNVS/cpguide/html/cpconhandlingraising
exceptionsinxmlwebservices.htm

Does anyone have any ideas why the sample code did not
work?

The stubbed out function:

[WebMethod]
public void myThrow()
{

}

Reply to this message...
Vote that this is a GOOD answer...
 
Auto-following on Twitter
Ubuntu and XP on one “desktop”
 
    
adam
Duh, got it, need to uncheck Friendy Error Message in IE.
[Original message clipped]

Reply to this message...
Vote that this is a GOOD answer...
 
Outlook interop - stopping user properties appearing on Outlook message print
Seriously, why is “cut and paste” majorly newsworthy???
 
 
System.Web.Services.Protocols.SoapException
System.Web.Services.WebService




Ad
BootFX
Reliable and powerful .NET application framework.
Recession Busting Bespoke Software
Get through the recession by investing in bespoke software to decrease costs and create commercial opportunities.
Other DN247 Network Sites
.NET 247
SQL Server Wins
Old Skool Developer
 
Copyright © AMX Software Ltd 2008-2009. Portions copyright © Matthew Baxter-Reynolds 2001-2009. All rights reserved.
Contact Us - Terms of Use - Privacy Policy - .NET 247 is a member of the DN247 Network - 4.0.30129.1734