Author: davide128 | Posted on: 9/1/2010 12:39:04 PM | Views : 239

I have this code in my global.asax page. the  server.getlasterror line is getting a Object reference not set to an instance og an object. I'm think it may have something to do with the server.transfer which I moved down in the code but not sure.
 
Sub Application_Error(ByVal sender As Object, ByVal e As EventArgs) ' Code that runs when an unhandled error occurs 'Response.Redirect("ErrorPages/ApplicationError.html") Dim objErr As Exception = Server.GetLastError().GetBaseException() Dim err As String = "Error Caught in Application_Error event" & vbLf & "Error in: " _ & Request.Url.ToString() & vbLf & "Error Message:" & objErr.Message.ToString() & vbLf _ & "Stack Trace:" & objErr.StackTrace.ToString() EventLog.WriteEntry("Archi ...

Go to the complete details ...