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

时间:2013-03-31 08:38:29

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

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

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

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

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

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

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

1 个答案:

答案 0 :(得分:3)

找到以下解决方案。

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

项目文件:

<IISExpressAnonymousAuthentication>enabled</IISExpressAnonymousAuthentication>
<IISExpressWindowsAuthentication>disabled</IISExpressWindowsAuthentication> 
相关问题