L
Lars Netzel
I'm trying to make my own custom error page... but when using
Try
lblErrormessage.Text = Server.GetLastError.Message
lblErrormessage.Text += "<br>" & Server.GetLastError.StackTrace
lblErrormessage.Text += "<br>" & Server.GetLastError.Source
Catch ex As Exception
lblErrormessage.Text = ex.Message
End Try
It goes into the Catch and says "Object reference not set to an instance of
an object." I have debugged alittle and Server is avaliable.. but
GetLastError gives the error..
Do I need to enable something in order to use this?
Regards/Lars Netzel
Try
lblErrormessage.Text = Server.GetLastError.Message
lblErrormessage.Text += "<br>" & Server.GetLastError.StackTrace
lblErrormessage.Text += "<br>" & Server.GetLastError.Source
Catch ex As Exception
lblErrormessage.Text = ex.Message
End Try
It goes into the Catch and says "Object reference not set to an instance of
an object." I have debugged alittle and Server is avaliable.. but
GetLastError gives the error..
Do I need to enable something in order to use this?
Regards/Lars Netzel