在运行示例MVC项目时需要进行身份验证

本文关键字:身份验证 项目 运行 MVC | 更新日期: 2023-09-27 18:06:46

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

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

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

所有的解在webconfig中都有<authentication mode="None" />

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

谁能告诉我我需要做什么来禁用这种身份验证,如果它是可能的?

在运行示例MVC项目时需要进行身份验证

找到以下解决方案

Project properties中的匿名认证设置为disabled

项目文件:

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