B
Blasting Cap
I had some old code set to throw an email to me when a user hit an
exception.
VS 2003 worked fine with the code, VS 2005 when I run it in debug mode
pauses over the code each time, and gives me the message:
"HTTPException was unhandled by user code. Request Not Available in
this context."
This is the code that it says it doesn't like:
log2.WriteEntry("Remlink" & _
"MESSAGE: " & ex.Message.ToString & _
"\nURL: " & Request.Path & _
"\nSOURCE: " & ex.Source.ToString & _
"\nFORM: " & Request.Form.ToString() & _
"\nQUERYSTRING: " & Request.QueryString.ToString() & _
"\nTARGETSITE: " & ex.TargetSite.ToString & _
"\nSTACKTRACE: " & ex.StackTrace.ToString & _
EventLogEntryType.Error)
Basically, all I am doing is determining which log to write the event to
above, and then the code for the mail follows this code here.
Why is this thing now barfing on that particular line of code? Anything
I've found referencing the specific message has not been of any help.
Any ideas?
exception.
VS 2003 worked fine with the code, VS 2005 when I run it in debug mode
pauses over the code each time, and gives me the message:
"HTTPException was unhandled by user code. Request Not Available in
this context."
This is the code that it says it doesn't like:
log2.WriteEntry("Remlink" & _
"MESSAGE: " & ex.Message.ToString & _
"\nURL: " & Request.Path & _
"\nSOURCE: " & ex.Source.ToString & _
"\nFORM: " & Request.Form.ToString() & _
"\nQUERYSTRING: " & Request.QueryString.ToString() & _
"\nTARGETSITE: " & ex.TargetSite.ToString & _
"\nSTACKTRACE: " & ex.StackTrace.ToString & _
EventLogEntryType.Error)
Basically, all I am doing is determining which log to write the event to
above, and then the code for the mail follows this code here.
Why is this thing now barfing on that particular line of code? Anything
I've found referencing the specific message has not been of any help.
Any ideas?