Linked Questions

139 votes
6 answers
172k views

Possible Duplicate: How can I properly handle 404 in ASP.NET MVC? I've made the changes outlined at 404 Http error handler in Asp.Net MVC (RC 5) and I'm still getting the standard 404 error page. ...
Clearly's user avatar
  • 1,624
-1 votes
1 answer
4k views

Possible Duplicate: How can I properly handle 404 in ASP.NET MVC? Suppose I have a site www.microsoft.com And I try to open the url www.microsoft.com/anytext www.microsoft.com/anytext/anynumber ...
Bingo's user avatar
  • 41
2 votes
0 answers
57 views

I am using the latest version of ASP.NET MVC 5 for my web application and it is running through IIS 7.5 which came with Windows 7. I am struggling to implement httpErrors in the web.config and to have ...
Brendan Vogt's user avatar
  • 26.1k
122 votes
10 answers
170k views

I am trying to make a custom HTTP 404 error page when someone types in a URL that doesn't invoke a valid action or controller in ASP.NET MVC, instead of it displaying the generic "Resource Not Found" ...
dswatik's user avatar
  • 9,219
77 votes
7 answers
83k views

In trying to get my application to produce 404 errors correctly, I have implemented a catch all route at the end of my route table, as shown below: routes.MapRoute( "NotFound", _ ...
Sean Taylor's user avatar
  • 5,028
83 votes
7 answers
90k views

After trying to setup my site for Google Webmaster Tools I found that my Custom ASP.NET 404 page was not returning the 404 status code. It displayed the correct custom page and told the browser that ...
Bobby Cannon's user avatar
  • 6,953
53 votes
8 answers
100k views

Is it possible to create a final route that catches all .. and bounces the user to a 404 view in ASP.NET MVC? NOTE: I don't want to set this up in my IIS settings.
Pure.Krome's user avatar
  • 87.5k
42 votes
6 answers
40k views

Is there a way to return the same view every time a HttpNotFoundResult is returned from a controller? How do you specify this view? I'm guessing configuring a 404 page in the web.config might work, ...
Dave Brace's user avatar
  • 1,809
35 votes
5 answers
22k views

Is there a built in or a proper way to handle errors in asp.net mvc 3? This is what I want to do: If the application crashes, or throws an error, it goes to a specific error page. I can throw my own ...
Shawn Mclean's user avatar
  • 57.5k
20 votes
4 answers
18k views

How can I Handler 404 errors without the framework throwing an Exception 500 error code?
MrByte's user avatar
  • 313
15 votes
6 answers
26k views

I have an MVC 4 app, using a custom HandleErrorAttribute to handle only custom exceptions. I would like to intercept the default 404 and other non-500 error pages and replace them with something more ...
therealmitchconnors's user avatar
28 votes
5 answers
21k views

I'm working on some error handling in my MVC app, and I'd like to change asperrorpath to something that doesn't give away the fact that I'm using .NET... something like path Can anyone give me some ...
Chase Florell's user avatar
18 votes
4 answers
16k views

I have implemented errors handling in ASP.NET MVC site in a way like suggests this post. With 404 errors all works fine. But how correctly show user friendly screen for a 401 error? They usually do ...
Roman's user avatar
  • 4,641
14 votes
2 answers
9k views

I'm having an issue with custom errors on an ASP.NET MVC app I've deployed on my shared host. I've created an ErrorController and added the following code to Global.asax to catch unhandled exceptions, ...
Bryan's user avatar
  • 2,855
12 votes
5 answers
18k views

In my asp.net web site I have custom error pages defined as following in my web.config file. <customErrors mode="On" defaultRedirect="~/defaulterror.htm" > <error statusCode="404" redirect="~...
DSharper's user avatar
  • 3,227

15 30 50 per page
1
2 3 4 5
7