Custom Error Problem

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
 
D

dave_93_98

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).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top