TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Error Page in ASP.NET MVC
Mukesh Kumar
Oct 03
2015
Code
1.3
k
0
0
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
expand
Web.config
<
system.webServer
>
<
httpErrors
errorMode
=
"Custom"
existingResponse
=
"Replace"
>
<
remove
statusCode
=
"404"
/>
<
error
statusCode
=
"404"
path
=
"/Error/NotFound"
responseMode
=
"ExecuteURL"
/>
</
httpErrors
>
</
system.webServer
>
Controller
public
class
ErrorController : Controller
{
public
ActionResult NotFound()
{
Response.StatusCode = 404;
return
View();
}
}
mvc
ASP.NET
Error Page in ASP.NET