Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Thursday, October 30, 2014 6:10 AM
please help me out to setp 404 error page web.config
All replies (3)
Thursday, October 30, 2014 6:15 AM ✅Answered
Hi, you may check the link
Thursday, October 30, 2014 2:36 PM ✅Answered
<customErrors defaultRedirect="~/Error/Error.htm" mode="on">
<error statusCode="500" redirect="~/Error/error.htm" />
<error statusCode="404" redirect="~/Error/filenotfound.htm" />
<error statusCode="403" redirect="~/Error/forbidden.htm" />
<error statusCode="400" redirect="~/Error/400badrequest.cshtml" />
<error statusCode="401" redirect="~/Error/401Unauthorizederror.htm" />
</customErrors>
Thursday, October 30, 2014 11:05 AM
Include the following in web.config and create your 404.cshtml page:
<customErrors mode="On">
<error statusCode="404" redirect="404.cshtml" />
</customErrors>