If you compile your code in debug mode this may be possible. Catch an exception then drill down in to InnerException of your exception to see if this information is useful. But as soon are you compile as a release you lose this line numbers and other debug information in return for much better performance.
Jay -----Original Message----- From: dotnet discussion [mailto:[EMAIL PROTECTED]] On Behalf Of C, Langlois Sent: Thursday, April 18, 2002 11:03 AM To: [EMAIL PROTECTED] Subject: [DOTNET] The error page of ASPNET Hi, i am writing a centralize error handler in a httpmodule. I need to gather some informations in order to log that information in the event log. I would like to have the same informations that the error page of aspnet gave me. I was able to gather almost everything i need except the source error part that show the lines of code (vb or c#) where the error occur. Is there a way to have access to this information? How the error page of aspnet is generated? I would love to have all the information the error page gave me and put it in the event log. Thanks Chris You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com. You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.