views:

1136

answers:

2

I've just installed windows 7 and i'm trying to get my mvc app that was working in IIS 7 working in IIS 7.5.

The problem I have is that when it tries to load any static files (css, gif, jpg...) it requires authentication. So if i try to go to

http://mydomain.com/Content/site.css

It redirects to

http://mydomain.com/Account/LogIn?ReturnUrl=/Content/site.css
A: 

It looks like you've messed up with something.

If you take the ASP.NET MVC template application (the one created when you start a new MVC Project), it won't require authorization to download static content.

If you provide more information, like your routes, or something else, it will be easier to understand your problem and find a solution for it.

Bruno Reis
+7  A: 

I ended up finding the problem. It seems that i need the IIS_USRS & IUSR accounts to have read access. I'm sure in vista i only had the IIS_USRS account.

Alex