handleerror Questions
6
Solved
How do I go about the [HandleError] filter in asp.net MVC Preview 5?
I set the customErrors in my Web.config file
<customErrors mode="On" defaultRedirect="Error.aspx">
<error statusCode=...
Scaphoid asked 8/10, 2008 at 15:12
4
Solved
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 d...
Girhiny asked 5/11, 2009 at 11:17
4
Solved
I'm trying to implement exception handling in ASP.NET MVC3 using the HandleError attribute.
The code that I'm using looks like this:
[HandleError(Order = 1, ExceptionType = typeof(SocketsOfflineE...
Ori asked 21/2, 2011 at 22:18
7
Solved
I believe I have set up our MVC app to use [HandleError] properly. This is my controller:
[HandleError]
public class SupportController : BaseController {
public ActionResult Toss() {
throw new ...
Columbarium asked 15/6, 2009 at 22:55
6
Solved
In two different application, one a custom the other the sample MVC application you get with a new VS2008 MVC project, [HandleError] is not catching exceptions.
In the sample application I have:
...
Badalona asked 6/3, 2009 at 16:54
2
In my web.config I have included:
<customErrors mode="On" />
Now the yellow screen of death isn't shown anymore.
I thought I'd have to include the HandleError attribute to my controller me...
Alvardo asked 29/7, 2013 at 6:36
2
Solved
In my Site.Master file, I have 3 simple ViewData parameters (the only 3 in my entire solution). These ViewData values are critical for every single page in my application. Since these values are us...
Decameter asked 25/11, 2009 at 5:53
1
Solved
I've an MVC 3 web app in which I'm using "HandleError" Action Filter for exception handling. I've this action filter implemented as follows:
[HandleError]
public class BaseController : Controller ...
Migraine asked 29/8, 2012 at 17:48
6
Solved
I've currently got a BaseController class that inherits from System.Web.Mvc.Controller. On that class I have the HandleError Attribute that redirects users to the "500 - Oops, we screwed up" page. ...
Mucus asked 7/8, 2010 at 16:39
6
Solved
I am having problems using the [HandleError] attribute on my Controller Actions - it doesn't seem to work at all (i.e. it doesn't matter if the filter is there or not - I get the same results...). ...
Cytaster asked 8/2, 2009 at 0:55
1
Solved
I'm revisiting some old code, and have found it doesn't work with jQuery 1.6 because it cannot find $.handleError(). A quick search of the jQuery code shows nothing, so I guess this function has be...
Odetteodeum asked 13/6, 2011 at 11:7
1
Solved
I am using MVC 3 with VS2010 and trying to get [HandleError] working. I created a test in the controller to simulate a crash as follows:
[HandleError]
public ActionResult Crash()
{
throw new Appl...
Predestination asked 28/2, 2011 at 2:17
1
Solved
In my ASP.NET MVC 2 application I use HandleErrorAttribute to display a custom error page in case of unhandled exceptions, and it works perfectly unless the exception happens in an action called by...
Nikos asked 18/7, 2010 at 8:17
1
© 2022 - 2024 — McMap. All rights reserved.