【问题标题】:Authentication Required when running sample MVC project运行示例 MVC 项目时需要身份验证
【发布时间】:2013-03-31 08:38:29
【问题描述】:

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

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

有 3 种解决方案,我在运行网站时收到 Authentication Required

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

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

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

【问题讨论】:

  • 快速查看示例项目。那里没有关于身份验证的内容。您是否在 IIS 中启用了身份验证?能否分享一下您网站的 IIS 设置?

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


【解决方案1】:

找到以下解决方案。

Project properties 中的匿名身份验证设置为 disabled

项目文件:

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2013-07-12
    • 1970-01-01
    • 2018-03-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-07-16
    相关资源
    最近更新 更多