#24 Custom Error Not Working in IIS7

open
nobody
None
5
2010-07-27
2010-07-27
webwiz
No

If you set the default for custom error messages in IIS 7 is set to 'Detailed Errors' then custom error messages can not be set correctly in WSP 1.0 and 1.0.1. This is on Windows 2008 x64 IIS7.0 and IIS7.5

WSP sets the following in the web.config file:-

<httpErrors>
<clear />
<error statusCode="404" subStatusCode="-1" path="HTTPerrors\404page.asp" responseMode="File" />
</httpErrors>

When it needs to be:-

<httpErrors errorMode="Custom">
<clear />
<error statusCode="404" subStatusCode="-1" path="HTTPerrors\404page.asp" responseMode="File" />
</httpErrors>

The errorMode="Custom" part needs to be set so that the custom error message will work.

This was fixed in DNP last year in January when I paid for a support ticket on this but got broken again in the last version of DNP. I did have another paid support ticket on this but DNP stopped responding to all the paid support tickets I had with them when they went open source, so never did get a resolution to this issue, so posting here instead in the hope it gets fixed in WSP.

Discussion