I have a problem in as much as my message that is being thrown from my class, to my webservice, to my application isn't showing in the friendly format - it is showing a large box with things like system.web.services.protocols.soapexception.......
It does contain the text of my error, but I need it to look nice to the users.
My code is as follows :
Class
Code:
Try
IF
Do stuff...
Else
Throw New System.Exception("An Employee with this Reference already exists!")
End If
Catch ex As Exception
Throw ex
End Try
WebService
Code:
Try
Call Class.....
Catch ex As Exception
Throw ex
End Try
Application
Code:
Try
Do Stuff......
Catch ex As Exception
MessageBox.Show(ex.Message)
End Try
Mru 20 17S, 57 33E Goal: Get out of the BOX Status: In The Shadows!!! Target Posts: 3,000,000,000
Posts
378
Re: [2005] Throw Exception From Web Service
Can you please post the exact error message? I think that the problem maybe that you are not passing the correct SOAP message to or from the web service. Either types or names are different.