T
tshad
I have an error routine in my Global.asax that gives me a different message
than asp.net when you let it give you the error page.
My error routine looks like:
*******************************************************
Sub Application_Error
Dim objMail As New MailMessage
objMail.From = "(e-mail address removed)"
objMail.To = "(e-mail address removed)"
objMail.Subject = "Error at Web site"
objMail.Body = Request.Path
objMail.Body &= vbNewLine
objMail.Body &= Context.Server.GetLastError.Message
SmtpMail.Send(objMail)
Context.Server.ClearError()
End Sub
************************************************
The message sent to me is:
/development/staffing/SkillsTestDisplay.aspx
External component has thrown an exception.
The page that asp displays is:
**************************************************
Description: An error occurred during the compilation of a resource
required to service this request. Please review the following specific error
details and modify your source code appropriately.
Compiler Error Message: BC30451: Name 'Global' is not declared.
Source Error:
Line 34: Sub Page_Load(sender as Object, e as EventArgs)
Line 35: dim temp as string
Line 36: temp = Global.tom()
Line 37:
Line 38: response.write("temp = ")
Source File: c:\inetpub\wwwroot\development\staffing\SkillsTestDisplay.aspx
Line: 36
********************************************************************
Why don't I get the error:
Compiler Error Message: BC30451: Name 'Global' is not declared.
The message that an exception was thrown doesn't tell me anything.
Thanks,
Tom
than asp.net when you let it give you the error page.
My error routine looks like:
*******************************************************
Sub Application_Error
Dim objMail As New MailMessage
objMail.From = "(e-mail address removed)"
objMail.To = "(e-mail address removed)"
objMail.Subject = "Error at Web site"
objMail.Body = Request.Path
objMail.Body &= vbNewLine
objMail.Body &= Context.Server.GetLastError.Message
SmtpMail.Send(objMail)
Context.Server.ClearError()
End Sub
************************************************
The message sent to me is:
/development/staffing/SkillsTestDisplay.aspx
External component has thrown an exception.
The page that asp displays is:
**************************************************
Description: An error occurred during the compilation of a resource
required to service this request. Please review the following specific error
details and modify your source code appropriately.
Compiler Error Message: BC30451: Name 'Global' is not declared.
Source Error:
Line 34: Sub Page_Load(sender as Object, e as EventArgs)
Line 35: dim temp as string
Line 36: temp = Global.tom()
Line 37:
Line 38: response.write("temp = ")
Source File: c:\inetpub\wwwroot\development\staffing\SkillsTestDisplay.aspx
Line: 36
********************************************************************
Why don't I get the error:
Compiler Error Message: BC30451: Name 'Global' is not declared.
The message that an exception was thrown doesn't tell me anything.
Thanks,
Tom