我正在尝试运行以下示例项目。
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/