views:

38

answers:

1

I'm trying to get a custom HTTP 401 error working on asp mvc 2 on the development server with no luck.

In my root web.config i have

<authentication mode="Windows">
</authentication>

and

<customErrors mode="On">
      <error statusCode="401" redirect="/Home/NotAuthorized"/>
</customErrors>

and i've defined the Action on the Home controller, but i'm just getting a HTTP 401 with a blank white page.

Any ideas what i am missing?!

A: 

Ive instead used this approach stackoverflow.com/questions/977071/

Paul Creasey