简体   繁体   English

安装 Visual Studio 2017 Enterprise 后的 ERR_CONNECTION_RESET

[英]ERR_CONNECTION_RESET after installing Visual Studio 2017 Enterprise

I have a project made in ASP.NET 4.5 which I run locally with the local IIS Server (Version 10.0.15, the one that comes with Windows 10).我有一个在 ASP.NET 4.5 中制作的项目,我使用本地 IIS 服务器(版本 10.0.15,Windows 10 附带的版本)在本地运行该项目。 I used to work on this project using Visual Studio 2015 Enterprise and everything was working, I could access and debug the website on http://local.project.com even https worked.我曾经使用 Visual Studio 2015 Enterprise 在这个项目上工作,一切正常,我可以访问和调试http://local.project.com上的网站,甚至 https 工作。 After I installed Visual Studio 2017, opened the project (no migration needed) and ran it I started to get the connection reset error: ERR_CONNECTION_RESET安装 Visual Studio 2017 后,打开项目(不需要迁移)并运行它我开始收到连接重置错误:ERR_CONNECTION_RESET

In the web.config of my project, I have a rewrite rule to force https, which never caused any problem for me to access locally and when I wanted to debug I just had to comment.在我的项目的 web.config 中,我有一个强制 https 的重写规则,这从来没有给我在本地访问造成任何问题,当我想调试时,我只需要发表评论。 Rewrite lines below:重写下面的行:

<httpRedirect enabled="false" destination="https://project.com" httpResponseStatus="Permanent" />
<rewrite>      
  <rules>
    <rule name="RedirectToNonwww" stopProcessing="true">
      <match url="^(www\.)?(.*)$" />
      <conditions>           
        <add input="{HTTPS}" pattern="off" />
        <add input="{HTTP_HOST}" pattern="^(www\.)?(.*)$" />
      </conditions>
      <action type="Redirect" url="https://{C:2}" />
    </rule>
  </rules>
</rewrite>

I'm clueless on this issue.我对这个问题一窍不通。 I have no idea what VS 2017 changed on my machine that could make this happen.我不知道 VS 2017 在我的机器上发生了什么变化,可能会发生这种情况。 Would you have any tips to help me solve this issue?你有什么提示可以帮助我解决这个问题吗?

Thanks for any help谢谢你的帮助

I found the solution, for some reason when running the project with VS 2017 it messed the configuration of the website bindings.我找到了解决方案,出于某种原因,在使用 VS 2017 运行项目时,它弄乱了网站绑定的配置。 I did this do solve:我这样做确实解决了:

  1. Right click the website and go to Edit Bindings右键单击该网站并转到“编辑绑定”
  2. Edit the binding with SSL使用 SSL 编辑绑定
  3. Select the certificate and save选择证书并保存

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM