相关疑难解决方法(0)

使用Visual Studio的内置ASP.NET开发服务器进行HTTPS

有没有办法通过HTTPS访问Visual Studio的内置ASP.NET开发服务器?

asp.net visual-studio-2008 visual-studio

107
推荐指数
3
解决办法
9万
查看次数

来自 Visual Studio 调试的本地主机的 ERR_SSL_PROTOCOL_ERROR

我正在运行一个简单的 ASP.net Web 应用程序。运行此程序后,Chrome 显示以下错误。

localhost sent an invalid response.
Try running Windows Network Diagnostics.
ERR_SSL_PROTOCOL_ERROR
Run Code Online (Sandbox Code Playgroud)

但我的应用程序是在 http 上,而不是 https 上。

在此处输入图片说明

但 URL 正在加载 https://localhost:54056/

config 也仅指向 http。

 <site name="tan-square" id="2">
            <application path="/" applicationPool="Clr4IntegratedAppPool">
                <virtualDirectory path="/" physicalPath="C:\Users\Myfolder\OneDrive\Downloads\tan-square" />
            </application>
            <bindings>
                <binding protocol="http" bindingInformation="*:54056:localhost" />
            </bindings>
        </site>
Run Code Online (Sandbox Code Playgroud)

我不明白问题出在哪里。为什么用https加载?

.net asp.net iis google-chrome iis-express

16
推荐指数
2
解决办法
2万
查看次数

ERR_SSL_PROTOCOL_ERROR 无法在 Chrome 浏览器中看到 https localhost 页面

无法在 chrome 中正确看到 localhost https 页面。它说 :

**This site can’t provide a secure connection**
localhost sent an invalid response.
Try running Windows Network Diagnostics.
ERR_SSL_PROTOCOL_ERROR
Run Code Online (Sandbox Code Playgroud)

我试过 -deleting domain localhost from -chrome://net-internals/#hsts 但没有帮助。

browser google-chrome localhost

15
推荐指数
7
解决办法
5万
查看次数