I keep coming across web examples of setting up custom error pages, and people do things like this:
<customErrors mode="RemoteOnly" defaultRedirect="GeneralError.aspx">
<error statusCode="401.2" redirect="4012Error.htm"/>
</customErrors>
I know that a 401.2 redirect has its own set of headaches, but IIS isn't complaining about that. This is what it's giving me when I browse my site:
Parser Error Message: The value of the property 'statusCode' cannot be parsed. The error is: 401.2 is not a valid value for Int32.
If I change it to "401", it works fine. Even the Intellisense complains that statusCode needs to be Int32.
How are people using the subcodes? I sure can't!
Many thanks!