D
David Lozzi
Howdy,
I found a nice little book called ASP.NET 2.0 Cookbook by Michael A Kittel
and Geoffrey LeBlond. Anyway, they have some instructions on how to setup
application level error handling. Most of my functions have try..catch to
email me about an error, then I want the application level to fire off to
send the user to a custom page AND log it in the app log. When an error
occurs on my page, i get a server error
Server Error in '/newcart' Application.
--------------------------------------------------------------------------------
Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code. Exception Details:
System.NullReferenceException: Object reference not set to an instance of an
object.Source Error: Line 4:
Line 5: Protected Sub Page_Error(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Me.Error
Line 6: Throw Server.GetLastError()
Line 7: End Sub
Line 8: Source File: c:\inetpub\wwwroot\newcart\addtobag.aspx.vb Line:
6 Any ideas?Also, I'm under the impression that if an actual error occurs,
it will not send me to the error page as specified b/c I'm on my development
machine. is that correct?Thanks!!-- David
Lozzidlozzi@(remove)delphi-ts.comwww.delphi-ts.com
I found a nice little book called ASP.NET 2.0 Cookbook by Michael A Kittel
and Geoffrey LeBlond. Anyway, they have some instructions on how to setup
application level error handling. Most of my functions have try..catch to
email me about an error, then I want the application level to fire off to
send the user to a custom page AND log it in the app log. When an error
occurs on my page, i get a server error
Server Error in '/newcart' Application.
--------------------------------------------------------------------------------
Object reference not set to an instance of an object.
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code. Exception Details:
System.NullReferenceException: Object reference not set to an instance of an
object.Source Error: Line 4:
Line 5: Protected Sub Page_Error(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Me.Error
Line 6: Throw Server.GetLastError()
Line 7: End Sub
Line 8: Source File: c:\inetpub\wwwroot\newcart\addtobag.aspx.vb Line:
6 Any ideas?Also, I'm under the impression that if an actual error occurs,
it will not send me to the error page as specified b/c I'm on my development
machine. is that correct?Thanks!!-- David
Lozzidlozzi@(remove)delphi-ts.comwww.delphi-ts.com