HTTP Error 404.0 - Not Found -IIS8
Hi,
Custom404 Redirecting is Successfully Redirecting in local system, But its not Working in Server(windows server 2012, IIS8),
Here is my code:
<customErrors mode="On" defaultRedirect="~/not-found">
<error statusCode="404" redirect="~/custom404" />
<error redirect="~/not-found" statusCode="403"/>
</customErrors>
Please help me how to Solve this,Here I'm Attaching Error Screen Shot,
Thanks & Advance
Ajay
Hi Ajay,
We are aware of this behavior, but it has to do with IIS 8 and .net, not our system. In order to avoid the non-functioning redirect I can suggest excluding the custom errors from the web.config and doing a 404 and 403 redirect in your global.asax file. There are abundant resources online on how to achieve this.
Regards,
Ivan D. Dimitrov
Telerik