J
jvcoach23
I've got a global.aspx file that works in my dev environment (vs 2005).
When i publish the site to a windows 2000 sp4 box running IIS, the global
does not seem to fire. Since it's a test server, i've tried granting the
user that IIS is using with all kinds of rights, that didn't work.... so is
there some setting i'm missing somewhere.
Sub Application_Error(ByVal sender As Object, ByVal e As EventArgs)
' Code that runs when an unhandled error occurs
Dim olog As New dempsey.TextFile
With olog
.FileName = "500Errors.txt"
..SaveText("-------------------------------------------------------------")
Dim err As Exception = Server.GetLastError()
.SaveText(Err.ToString)
.SaveText(err.StackTrace)
End With
Response.Redirect("~/500Error.htm")
end sub
and an bit from the web.config file
<compilation debug="false" strict="false" explicit="true">
hope someone can help out...
just to be more complete.. in the appliction_error, i'm also writing some
info out to a sql database... again.. that works running things out of visual
studio.. but not when the code is published..
thanks
shannon
When i publish the site to a windows 2000 sp4 box running IIS, the global
does not seem to fire. Since it's a test server, i've tried granting the
user that IIS is using with all kinds of rights, that didn't work.... so is
there some setting i'm missing somewhere.
Sub Application_Error(ByVal sender As Object, ByVal e As EventArgs)
' Code that runs when an unhandled error occurs
Dim olog As New dempsey.TextFile
With olog
.FileName = "500Errors.txt"
..SaveText("-------------------------------------------------------------")
Dim err As Exception = Server.GetLastError()
.SaveText(Err.ToString)
.SaveText(err.StackTrace)
End With
Response.Redirect("~/500Error.htm")
end sub
and an bit from the web.config file
<compilation debug="false" strict="false" explicit="true">
hope someone can help out...
just to be more complete.. in the appliction_error, i'm also writing some
info out to a sql database... again.. that works running things out of visual
studio.. but not when the code is published..
thanks
shannon