Custom Error Problem

  • Thread starter Thread starter dave_93_98
  • Start date Start date
D

dave_93_98

Hello,
I am trying to use my apps global.asax and web.config to log an error
message and move to a custom error page. This works great locally but
does not work on a Win2K3 server (it redirects to the error page but
does not log the error). Here is the relevant code -

-- web.config --
<customErrors defaultRedirect="~/Error.aspx" mode="On" />

-- global.asax.vb --
Sub Application_Error(ByVal sender As Object, ByVal e As EventArgs)

Microsoft.ApplicationBlocks.ExceptionManagement.ExceptionManager.Publish(Server.GetLastError().GetBaseException())
End Sub


Any suggestions would be greatly appreciated.

Thanks,
Dave
 
This seems to be a problem with permissions. When I add the
customErrors tag to the web.config and the MicrosoftApplicationBlocks
publisher writes to the event log I am receiving a permission denied
(this isn't the case when the customErrors tag is commented out).
 
Back
Top