IIS 上的 ASP.NET MVC3 和 Windows Auth 不断重定向到/Account/Login [英] ASP.NET MVC3 and Windows Auth on IIS keeps redirecting to /Account/Login

查看:43
本文介绍了IIS 上的 ASP.NET MVC3 和 Windows Auth 不断重定向到/Account/Login的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在运行 MVC3 和 Windows 身份验证 Web 应用程序.当我部署到 IIS6 时,它运行良好,直到我点击需要身份验证的页面.当我的应用程序中没有任何踪迹并且我的 web.config 被配置为 windows auth 时,它会自动重定向到/Account/Login.

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.

这篇关于IIS 上的 ASP.NET MVC3 和 Windows Auth 不断重定向到/Account/Login的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆