Soluga
asked on
try catch
asp.net 2.0, In my catch statement I have
Catch ex As Exception
Throw (ex.InnerException)
Response.Write("An Error Occurred: " & e.ToString())
End Try
but when the error is thrown I get ..
An Error Occurred: System.EventArgsAn
Is there a way to get a more meaningful message?
Thanks
Catch ex As Exception
Throw (ex.InnerException)
Response.Write("An Error Occurred: " & e.ToString())
End Try
but when the error is thrown I get ..
An Error Occurred: System.EventArgsAn
Is there a way to get a more meaningful message?
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Great thanks, obvious now.
Response.Write("An Error Occured: " & ex.message)
This will display the actual error message that has been generated.