Web Wiz - Solar Powered Eco Web Hosting

  New Posts New Posts RSS Feed - How to prevent IIS7 for handling HTTP status code
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to prevent IIS7 for handling HTTP status code

 Post Reply Post Reply
Author
SoulMaster View Drop Down
Newbie
Newbie


Joined: 20 November 2010
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote SoulMaster Quote  Post ReplyReply Direct Link To This Post Topic: How to prevent IIS7 for handling HTTP status code
    Posted: 05 December 2010 at 10:51am

I'm working my ASP.NET MVC 2 project. I create exception filter for catching unauthorized access exception that occur when user does not has permission to view some action.

[CustomError(typeof(UnauthorizedAccessException), "Error", "UnauthorizedAccess")]
public class MyController : BaseController
{
}

After exception has been thrown, my filter will transfer to configured controller/action that is the following method.

public ActionResult UnauthorizedAccess(ExceptionContext context
   
  
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.07
Copyright ©2001-2024 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Policy

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2024 Web Wiz Ltd. All rights reserved.