Override <customErrors mode="Off"/> message from .NET Framework even when in web.config detailed err

Posted by GrZeCh on Server Fault See other posts from Server Fault or by GrZeCh
Published on 2010-03-22T14:02:49Z Indexed on 2010/03/22 14:11 UTC
Read the original article Hit count: 773

Filed under:
|

Hello,

is this possible to override .NET Framework error:

Server Error in '/' Application.
Runtime Error
Description: An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.

...

<!-- Web.Config Configuration File -->

<configuration>
    <system.web>
        <customErrors mode="Off"/>
    </system.web>
</configuration>

even if web.config (IIS7.5) is set to

<httpErrors errorMode="Detailed"/>

? I'm asking because my default setting for IIS7 is

<deployment retail="true" />

so no error is being showed and only adding additional error handling module to website will allow to see errors generated by this application and thats why I want to override this message to inform users about it.

Any ideas?

Thanks

© Server Fault or respective owner

Related posts about iis7.5

Related posts about custom-errors