我有一个应用程序在Asp.net MVC完美运行在Visual Studio 2015,与IIS EXPRESS(本地计算机)。IIS 7.5 - Erro HTTP 401.0 - 未授权
我尝试在其他计算机(Windows Server 2008 R2 w/IIS 7.5)中执行此应用程序。我做了部署,我把文件夹放在“C:\ inetpub \ wwwroot \ testsite”中。
在执行localhost/testsite时,索引页显示正常,但在提交表单(它是一个登录页面)时,我的IIS显示“401.0错误”。
我使用 “身份验证模式形式”:
<system.web>
<compilation debug="true" targetFramework="4.5.2" />
<httpRuntime targetFramework="4.5.2" />
<authentication mode="Forms">
<forms loginUrl="~/User/Login" timeout="2880" />
</authentication>
</system.web>
池的应用是 “默认应用”。身份验证:“匿名= ON”,“Forms = ON”,其他选项= OFF。
我试图从这里从StackOverflow的其他职位的各种技巧,但我不可能解决我的问题=(
谢谢!
显示完整的401.0错误页面。如果仔细检查,SO上的其他帖子是401.(其他内容),或者它们的错误页面不同。在尝试某人的小费之前,请确保首先遇到完全相同的问题。 –