C
Chris Leffer
Hi.
I have the following code in my Global.asax Application_error event:
Dim lgEntryLog As New Logs.Custom
Dim exApp As Exception = Server.GetLastError.GetBaseException
Try
With lgEntryLog
.LogFile = "Site.log"
.LogPath = Request.PhysicalApplicationPath
.Message = exApp.Message
.Source = exApp.Source
.MethodName = exApp.TargetSite.Name
.Url = Request.Url.ToString
.WriteData()
End With
Catch Ex As Exception
Throw Ex
End Try
That code works pretty well in my Windows 2000 workstation. It uses a
custom class that creates a text file and writes in it the information
collected above.
When I run the application in Windows 2003, under production, and some
error is thrown, the file is not created. My site is under
DefaultAppPool in IIS 6.0.
Could it be permissions issues?
Regards,
Chris Leffer
I have the following code in my Global.asax Application_error event:
Dim lgEntryLog As New Logs.Custom
Dim exApp As Exception = Server.GetLastError.GetBaseException
Try
With lgEntryLog
.LogFile = "Site.log"
.LogPath = Request.PhysicalApplicationPath
.Message = exApp.Message
.Source = exApp.Source
.MethodName = exApp.TargetSite.Name
.Url = Request.Url.ToString
.WriteData()
End With
Catch Ex As Exception
Throw Ex
End Try
That code works pretty well in my Windows 2000 workstation. It uses a
custom class that creates a text file and writes in it the information
collected above.
When I run the application in Windows 2003, under production, and some
error is thrown, the file is not created. My site is under
DefaultAppPool in IIS 6.0.
Could it be permissions issues?
Regards,
Chris Leffer