IIS Express 上的基本身份验证

2024-03-26

我已经搜索了一段时间但似乎找不到答案。有多种方法可以禁用/启用匿名和 Windows 身份验证。有谁知道如何在 Visual Studio 2013 中的 IIS Express (8.0) 上启用基本身份验证?


Update ApplicationHost.config

ApplicationHost.config文件中,找到以下节点并更新值:

<sectionGroup name="authentication">
   <basicAuthentication enabled="false" /> <!-- set to false -->
</sectionGroup>

<!-- ... -->

<authentication>
   <section name="basicAuthentication" overrideModeDefault="Allow" /> <!-- set to allow -->
</authentication>

Locate ApplicationHost.config

  • VS 2015 以上(根据乔斯特的回答):

    sln_folder/.vs/applicationhost.config
    
  • VS 2013 及以下:

    %UserProfile%\Documents\IISExpress\config\applicationhost.config
    

    据我所知,没有办法只为一个项目启用它。

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

IIS Express 上的基本身份验证 的相关文章

随机推荐