p2p.wrox.com Forums

Need to download code?

View our list of code downloads.

  Return to Index  

aspdotnet_website_programming thread: Trapping Errors in VB.NET Web Applications

Message #1 by "Fred Nelson" <fred@a...> on Tue, 18 Mar 2003 10:14:57 -0500

I have a VB.NET web app that calls "errorpage.aspx" if an error occurs -
this is defined in the web.config file.

I would like to obtain all the information that you see when you are running
an application and it encounters problems and write this to a file while
giving the user some message that doesn't show the crash details.

I have my program setup as follows:


dim currentError as New Exception
currentError = Server.GetLastError

I am unable to obtain the values that I should be able to get:


Each of these causes its own crash!

This is how its done in the book - I'm obviously missing something here -
any help would be GREATLY appreciated.


  Return to Index