我有一个刚刚部署到 IIS 的 ASP.NET MVC 4 项目。当我尝试从 IIS 浏览网页时,它总是重定向到 login.aspx(我相信我的项目中没有这样的文件,我试图在我的项目中搜索 login.aspx 文件但没有找到)。我收到此错误消息:
404 - File or directory not found.
The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.
我知道那里有一些与我的问题相似的问题,但没有提供的解决方案适用于我。你能帮忙吗?谢谢!
更多信息:顺便说一句,我正在使用 Windows 身份验证。这是我的 web.config 文件中的代码:
<authentication mode="Windows"/>
<identity impersonate="true"/>
<authorization>
<deny users="?"/>
</authorization>