How to throw Application_Errors as SOAP-Exception

G

Guest

Hello NG!

Within the global.asax of my WebService I can catch unahandled exceptions:

Sub Application_Error(ByVal sender As Object, ByVal e As EventArgs)

In my opinion an exception always is caused by a client-request. So is it
possible within that method to force excectly that request (which is maybe
one of some at the same time) to throw a (SOAP)-Exception (which can be
catched at the client) ?

My problem until now is, that ASP.NET tries to send an HTML-formatted error
description to the client, but there it can't be handled, because the
WebMethod call expects XML (SOAP) not HTML. So I see no chance to get the
"reel" exception on the client and present it to the user.

Thanks, D.Barisch
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,048
Latest member
verona

Latest Threads

Top