Multimobile Development: Building Applications for any Smartphone
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...
 
Really good experience at the Apple Store
MonoDroid – looking *awesome*
 
    
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...
 
First volume of Multimobile Development nearly ready to go to press
A mention on Developing for the iPhone and Android: The pros and cons
 
 
System.Web.Services.Protocols.SoapException
System.Web.Services.WebService




Ad
BootFX
Reliable and powerful .NET application framework.
iOS, Android and Windows Phone Development Training and Consultancy
Hosted by RackSRV Communications
 
Multimobile Development: Building Applications for any Smartphone
Copyright © AMX Software Ltd 2008-2010. Portions copyright © Matthew Baxter-Reynolds 2001-2010. All rights reserved.
Contact Us - Terms of Use - Privacy Policy - 4.0.30129.1734