IIS 7.5 MVC requires authentication to get static files

后端 未结 3 1399
广开言路
广开言路 2021-02-20 09:47

I have just installed windows 7 and I\'m trying to get my MVC application that was working in IIS 7 working in IIS 7.5.

The problem I have is that when it tries to load

相关标签:
3条回答
  • 2021-02-20 09:49

    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.

    0 讨论(0)
  • 2021-02-20 09:57

    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.

    0 讨论(0)
  • 2021-02-20 10:03

    For me it ended up being specific static content files that required authentication, while other static content files did not require it. Turns out that those files were green in Windows Explorer. I went to properties, Advanced, on the files and turned off "Encrypt contents to secure data" and my problem was solved.

    0 讨论(0)
提交回复
热议问题