c# - 运行示例 MVC 项目时需要身份验证

标签 c# asp.net asp.net-mvc authentication iis

我正在尝试运行以下示例项目。

https://github.com/Wintellect/Angular-MVC-Cookbook

有 3 个解决方案,我得到 Authentication Required当我运行网站时。

所有解决方案都有 <authentication mode="None" />webconfig .

我使用默认的 IIS Express 服务器在 VS2012 中运行。

如果可能的话,谁能告诉我需要做什么才能禁用此身份验证?

最佳答案

找到以下解决方案。

项目属性中的匿名身份验证已设置为禁用

项目文件:

<IISExpressAnonymousAuthentication>enabled</IISExpressAnonymousAuthentication>
<IISExpressWindowsAuthentication>disabled</IISExpressWindowsAuthentication> 

关于c# - 运行示例 MVC 项目时需要身份验证,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15727816/

相关文章:

c# - SQL Azure 的限制不是搬起石头砸自己的脚吗?

c# - 在 webgrid 中调用 javascript

c# - Paypal TLS 安全更改

asp.net-mvc - Visual Studio 2012 - 将 "Views"和 "Content"复制到项目输出路径

asp.net-mvc - 使用 ASP.NET MVC 中的内置 JsonResult 对 NHibernate 实体进行 JSON 序列化会产生循环依赖错误

asp.net - 在处理潜在的覆盖后,如何遵循 ASP.NET MVC 的 "default"HttpHandler?

c# - 返回 Json,但它包含反斜杠 "\",我不想要

c# - ServiceStack,如何接入业务逻辑Pocos?

c# - 如何删除字符串中的每第二个字符?

asp.net - 将 JSON 数据转换为 VB.NET 多维数组