Jump to content
Xtreme .Net Talk

Recommended Posts

  • *Experts*
Posted

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.

"Being grown up isn't half as fun as growing up

These are the best days of our lives"

-The Ataris, In This Diary

  • *Experts*
Posted
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.

"Being grown up isn't half as fun as growing up

These are the best days of our lives"

-The Ataris, In This Diary

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...