Thanks for the response. I tried your suggestion but it didn't work. Javascript still returns a 500 error code regardless of the error I raise in my web service:
- error {...} Object
+ get_exceptionType {...} Object
+ get_stackTrace {...} Object
+ get_message {...} Object
+ get_statusCode {...} Object
+ get_timedOut {...} Object
_timedOut false Boolean
_message "aaa" String
_stackTrace " at Microsoft.VisualBasic.ErrObject.Raise(Int32 Number, Object Source, Object Description, Object HelpFile, Object HelpContext)
at WebService.UserExists(String UserName) in c:\inetpub\wwwroot\App\App_Code\WebService.vb:line 271" String
_exceptionType "System.Exception" String
_statusCode 500 Long
+ userContext {...} Object
methodName "UserExists" String