ASP.NET MVC3和Windows身份验证在IIS上不断重定向到/帐号/登录 [英] ASP.NET MVC3 and Windows Auth on IIS keeps redirecting to /Account/Login
问题描述
我运行MVC3和Windows验证Web应用程序。当我部署到IIS6它运行伟大,直到我打了需要身份验证的页面。然后,它是自动重定向到/帐号/登录时,我有我的应用程序没有,微量和我的web.config配置为Windows验证。
I'm running MVC3 and a windows auth web application. When I deploy to IIS6 it runs great until I hit a page that requires authentication. It then is auto-redirecting to /Account/Login when I have no trace of that in my application and my web.config is configured to windows auth.
任何想法?
下面是我的整个web.config文件: http://pastie.org/1568510
Here is my entire web.config file: http://pastie.org/1568510
推荐答案
检查是否有 WebMatrix.Data.dll 和/或 WebMatrix.WebData.dll 部署应用程序的bin目录中。如果他们在那里(你知道你不使用它们),然后尝试删除它们和访问需要身份验证的页面。
Check whether you have WebMatrix.Data.dll and/or WebMatrix.WebData.dll deployed in the bin directory of your application. If they are there (and you know you don't use them) then try removing them and accessing a page that requires authentication.
这篇关于ASP.NET MVC3和Windows身份验证在IIS上不断重定向到/帐号/登录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!