H
hansiman
In my web.config I have:
<customErrors defaultRedirect="/error.aspx" mode="On">
in error.aspx I try to get the last error and do something with it:
Dim ex As Exception = Server.GetLastError
I get Nothing (ex = Nothing)
Is the reason for ex = Nothing that Server.GetLastError only gets
exceptions manually thrown?
If not how do I then access the last error?
/M
<customErrors defaultRedirect="/error.aspx" mode="On">
in error.aspx I try to get the last error and do something with it:
Dim ex As Exception = Server.GetLastError
I get Nothing (ex = Nothing)
Is the reason for ex = Nothing that Server.GetLastError only gets
exceptions manually thrown?
If not how do I then access the last error?
/M