IIS中的Asp.Net MVC核心应用程序Windows身份验证

时间:2018-12-12 17:20:17

标签: iis asp.net-core windows-authentication

我的Asp.Net Core mvc Web应用程序需要匿名身份验证。 下面是launchSettings.json代码

 "iisSettings": {
    "windowsAuthentication": false,
    "anonymousAuthentication": true,
    "iisExpress": {
      "applicationUrl": "http://localhost:61545/",
      "sslPort": 0
    }
  }

但是,部署后,IIS身份验证设置不会基于launchSettings.json更改,而是基于web.config上的身份验证标记更改,该标记会在发布时自动生成。我尝试在具有正确身份验证的解决方案中手动添加web.config设置。但是,我无法调试该解决方案。如何在不重命名/删除web.config文件的情况下调试该应用程序?或者请提出解决此问题的任何其他解决方案。

0 个答案:

没有答案