Linked Questions

1 vote
0 answers
2k views

How to set default errorpage for httpErrors? I want to specify default error page for all status codes in the web.config <httpErrors errorMode="Custom" existingResponse="Replace"> <...
Rana's user avatar
  • 1,218
0 votes
1 answer
610 views

I want to show a custom page if the user tries to go a controller that does not exist. I've tried the method where you have to create the page you want to show in case of an error and turn on custom ...
Rocshy's user avatar
  • 3,509
92 votes
31 answers
203k views

I am running Visual Studio 2010 (as Admin), IIS 7 on Windows 7 x64. I am able to run the ASP.NET web site in IIS 7 without debugging just fine, but when I press F5 to debug it, I get: Unable to ...
Dan C's user avatar
  • 2,231
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
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
12 votes
5 answers
20k views

In my web.config, I have: <system.web> <customErrors mode="On" defaultRedirect="Error.cshtml" /> </system.web> In Views/Shared/Error.cshtml, I have: @model ...
devuxer's user avatar
  • 42.5k
5 votes
2 answers
5k views

I've place this in web.config <system.webServer> <httpErrors errorMode="Custom" defaultResponseMode="ExecuteURL"> <remove statusCode="404" subStatusCode="-1" /> <error ...
TTT's user avatar
  • 1,915
2 votes
1 answer
50k views

In my Web.config I have. <customErrors mode="On" defaultRedirect="~/Errors/Unknown"> <error statusCode="403" redirect="~/Errors/Forbidden"></error> <error statusCode="404" ...
Andrzej Gis's user avatar
  • 14.4k
3 votes
3 answers
8k views

For standard errors I use solution error handle (see code below), and also I tried THIS (without effect) Global.asax.cs protected void Application_Error(object sender, EventArgs e) { var ...
Jan Sršeň's user avatar
  • 1,073
6 votes
2 answers
3k views

I have an internet-facing website that's built using MVC4 and I occasionally get error reports from bots or curious users who send requests for incomplete URLs. For example: public class ...
Drew Noakes's user avatar
5 votes
2 answers
5k views

I have designed a Controller called ErrorController with methods like Forbidden or NotFound, so I could add to Web.config the following lines: <customErrors mode="On" defaultRedirect="~/Error/...
Vicenç Gascó's user avatar
4 votes
1 answer
10k views

I have custom errors enabled in my app. The web config has an entry as follows: <customErrors mode="On" defaultRedirect="~/Views/Shared/Error.cshtml"> <error statusCode="403" redirect="~/...
Water Cooler v2's user avatar
1 vote
2 answers
6k views

I am working to ASP.net MVC-5 project and I am a beginner. As of now I know the basics of MVC and able to display pages and make post and get request. But I am stuck with one issue where I get "504 ...
Unbreakable's user avatar
  • 8,172
0 votes
1 answer
7k views

I have the following code inside my action methods:- public ActionResult ManageCustomerVLANs(string customerName) { if (!repository.IsCustomerExsists(customerName)) { ...
John John's user avatar
  • 7,361
2 votes
1 answer
3k views

I'm trying to follow the answer to this question: How to make custom error pages work in ASP.NET MVC 4 I have the following in my Web.Release.config: <system.web> <customErrors mode="On" ...
RobVious's user avatar
  • 12.9k

15 30 50 per page