我在Windows 2019上通过IIS Express在VS2019项目中的web.config中的web.config中使用此选项。
<system.webServer>
<security>
<authentication>
<windowsAuthentication enabled="true" />
<anonymousAuthentication enabled="false" />
</authentication>
</security>
</system.webServer>
但是我得到这个错误
This configuration section cannot be used at this path. This happens when the section is locked at a parent level. Locking is either by default (overrideModeDefault="Deny"), or set explicitly by a location tag with overrideMode="Deny" or the legacy allowOverride="false".
我看了互联网尝试了不同的方法,但似乎没有效果。
我已经修改了文件
我不确定还有什么尝试。
有人知道吗?
C:\Users\me\Documents\project\.vs\project\config\applicationhost.config