我有一个在 IIS Express 和 Visual Studio 2013 上运行的 ASP.NET MVC5 项目。我想向本地主机添加 SSL 支持以进行测试。我已按照许多博客中详细说明的步骤进行操作。具体this one from Hanselman .
当我通过端口 44300 测试我的网站时,我在 Chrome 中收到“此网页不可用”的响应,在 IE 中收到“此页面无法显示”的响应,以及来自 Postman 的“无法获得任何响应”(响应 0) .
我已确认 applicationhost.config 中的绑定(bind)信息正确。我已通过 netsh 确认了 sslcert 绑定(bind)。我已通过 netsh 确认了 urlacl 绑定(bind)。我尝试过在管理员权限下运行。我已经禁用了防火墙。我不知道下一步该做什么。
我已使用管理员权限从命令提示符运行 IISExpress。我收到以下错误:
iisexpress.exe/site:MvcApplication1
Successfully registered URL "localhost:52033/" for site
Failed to register URL "localhost:44300/" for site "MvcApplication1" application "/". Error description: Cannot create a file when that file already exists. (0x800700b7)
Failed to register URL "https://*:44300/" for site "MvcApplication1" application "/". Error description: Cannot create a file when that file already exists. (0x80070 0b7)
编辑
我已经删除了端口 44300 的 urlacl 绑定(bind)。它解决了 iisexpress 命令行错误...也就是说,当我运行并查看我的网站时,我仍然没有得到任何响应。
最佳答案
我成功了。我的路走错了。我正在导航至
localhost:44300
而不是
https://localhost:44300
关于asp.net - IIS Express SSL 该网页不可用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19775390/