By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,016 Members | 2,265 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,016 IT Pros & Developers. It's quick & easy.

Error message different than Context.Server.GetLastError.Message

P: n/a
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 = "tf*@ftsolutions.com"
objMail.To = "tf*@ftsolutions.com"
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\SkillsTest Display.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

Nov 19 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.