1

I have made an mvc application and tried adding SSL to it.

The site works fine on http, but when I navigate to the https url, it just says that the site cannot be reached(ERR_CONNECTION_RESET).

I have correct bindings in the (IIS Express) applicationhost.config file.

            <bindings>
                <binding protocol="http" bindingInformation="*:3426:localhost" />
                <binding protocol="https" bindingInformation="*:44341:localhost" />
            </bindings>

I can see the https in the IISExpress.

I tried starting visual studio as administrator.

I tried disabling and enabling ssl.

I've tried suggestions in this thread.

Nothing works.

What can be the problem? What am I missing?

Thanks.

Community
  • 1
  • 1
master2080
  • 366
  • 3
  • 15
  • Did you really put the `` into the csproj file?? They belong in the [ApplicationHost.config file](https://www.iis.net/configreference/system.applicationhost/sites/site/bindings). SSL is a feature of IIS (or another web server), not a feature of Visual Studio. – NightOwl888 May 03 '16 at 09:41
  • My bad, I meant the applicationhost.config file – master2080 May 03 '16 at 09:44
  • Which applicationHost.config is it? Show the full path. IIS Express or full IIS? Those are the details you should provide. And then you can use Jexus Manager to do some initial troubleshooting, https://jexus.lextudio.com/en/latest/tutorials/ssl-diagnostics.html – Lex Li May 03 '16 at 14:05
  • The IIS Express applicationHost.config. Added to the main post – master2080 May 03 '16 at 16:12

0 Answers0