0

I have an ASP.NET MVC project in Visual Studio. When running the project, Google Chrome launches but a 'This site can’t be reached' error is shown, and I notice that the https prepended to the URL instead of http. Can anyone advise?

Steps I have taken:

IIS Manager:

  • Added binding http://mysite.local on Port 80
  • Set physical path to the project folder root (the same level as the 'App_Data' folder), and set permissions to the IIS_IUSRS group to this folder

Visual Studio:

Windows Hosts file:

  • Added entry: 127.0.0.1 mysite.local
user2181948
  • 1,646
  • 3
  • 33
  • 60

2 Answers2

0

Please check whether in your project SSL is enabled or not? You can find it in the properties section of your project like below image:

enter image description here

Tanjeer
  • 89
  • 4
0

In Visual studio select the project in solution explorer and set the SSL to false. Check same in project settings and set the project url to HTTP one there too.

In your MVC Controller :- make sure you didn't apply things like RequireHttps

Anirudha Gupta
  • 9,073
  • 9
  • 54
  • 79