添加身份服务器身份验证后无法访问该站点

时间:2021-02-16 15:40:09

标签: visual-studio ssl asp.net-web-api identityserver4 blazor-webassembly

我通过 Secure an ASP.NET Core Blazor WebAssembly hosted app with Identity Server 在 Windows 10 Pro Build 19042.630 中使用 Visual Studio 2019 创建了一个程序,没有对默认模板应用任何更改。我按了 F5 或 Ctrl+F5,但浏览器没有在 localhost 中显示主页并说 This site can’t be reached ERR_CONNECTION_REFUSED。在调试选项卡 SSL was Enable 中,但在我禁用它之后呈现的主页。现在我需要 SSL 用于安全性、身份服务器和无法工作..

这些解决方案对我没有帮助

  1. Visual Studio not debugging
  2. Enable SSL in Visual Studio - not prompted to install certificate
  3. https://www.hanselman.com/blog/working-with-ssl-at-development-time-is-easier-with-iisexpress
  4. https://www.pluralsight.com/guides/visual-studio-2017-resolving-ssl-tls-connections-problems-with-iis-express

非常感谢您的建议....

1 个答案:

答案 0 :(得分:0)

通过格式化 Windows 驱动器并安装 Windows 和 Visual Studio,它终于工作了。