0

Have switched to windows authentication in the debug mode, set NLTM in the project options but when i press play it just gives me a blank screen! Any ideas what I can do now?

thanks!

bergin
  • 1,584
  • 2
  • 13
  • 21
  • reading this: http://stackoverflow.com/questions/2672535/simple-web-parts-in-asp-net-show-as-blank-page seems to shed a little light.... – bergin Jun 15 '10 at 11:02
  • 1
    read about: Exactly what happens when you attempt to invoke a controller action without being the right permissions depends on the type of authentication enabled. By default, when using the ASP.NET Development Server, you simply get a blank page. The page is served with a 401 Not Authorized HTTP Response Status. ive added: to my config but no redirection... – bergin Jun 15 '10 at 11:08

1 Answers1

0

If anyone comes to this put just [authorize] rather than say

[Authorize(Roles = "Administrator")]

The blank screen is some kind of 401 response. if youre logged in you'll alwasy get through the [authorize] filter

Roles would seem to be a tricky area to get right

bergin
  • 1,584
  • 2
  • 13
  • 21