【发布时间】:2014-01-24 20:29:38
【问题描述】:
我正在尝试使用 IIS Express 构建我的第一个 ASP.NET MVC 4、Intranet 应用程序。但是当我使用这个配置运行默认项目时:
<compilation debug="true" targetFramework="4.5" />
<httpRuntime targetFramework="4.5" />
<authentication mode="Windows" />
<authorization>
<deny users="?" />
</authorization>
Web 应用程序需要用户名和密码才能访问。请问我在哪里可以找到?我该如何配置?
提前感谢!
【问题讨论】:
-
您使用的是哪个浏览器? IE 应该获取您的 Windows 凭据,但其他浏览器并没有那么好。
-
@Mike Cheel:谷歌浏览器
-
你使用IE时是否有效(排除其他问题)?
-
另外,请看这篇文章:stackoverflow.com/a/7813778/426422
标签: c# asp.net-mvc-4 intranet