[<!--web.config-->
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<location path="." inheritInChildApplications="false">
<system.webServer>
<handlers>
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModuleV2" resourceType="Unspecified" preCondition="bitness64" />
</handlers>
<validation validateIntegratedModeConfiguration="false" />
<aspNetCore processPath="bin\IISSupport\VSIISExeLauncher.exe" arguments="-argFile IISExeLauncherArgs.txt" stdoutLogEnabled="false" hostingModel="InProcess">
<environmentVariables>
<environmentVariable name="ASPNETCORE_ENVIRONMENT" value="Development" />
</environmentVariables>
</aspNetCore>
</system.webServer>
</location>
</configuration>
改好后如出现
HTTP Error 401.2 - Unauthorized
由于身份验证头无效,您无权查看此页。
点击运行IIS Express的三角下标选择属性在最后勾选启用匿名验证,并且确保在IIS管理器中双击身份验证,在出现的匿名身份验证中点击编辑选择@应用程序池标识
01-06
534
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)