Web service not returning errors

Bucky

Contributor
Joined
Dec 23, 2001
Messages
791
Location
East Coast
For some reason, my ASP.NET web service will not correctly return exceptions to the client machine. The .NET Framework SDK says that a web service should return a SoapException whenever a server-side error occurs, and the client should see some sort of <fault> element. All the client sees, however, is a generic "HTTP 500 Internal server error". I even tried explicitly throwing a new SoapException, but with the same result.

I'm thinking that there is a certain project property that is not set correctly, but I can't find it for the life of me.

What do I need to do to allow the web service to return exceptions to the client?

Thanks.
 
That's not quite the problem I was having, though the solution will definitely come in handy in the future. The issue with my web service is that a SoapException is not even making it back to the client. Instead of returning a <fault> soap message, it returns an HTTP error.
 
Back
Top