Reputation: 7322
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). 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. 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
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. 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. Would you have any tips to help me solve this issue?
Thanks for any help
Upvotes: 2
Views: 3052
Reputation: 7322
I found the solution, for some reason when running the project with VS 2017 it messed the configuration of the website bindings. I did this do solve:
Upvotes: 1