Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IISExpress cannot find ssl page running localhost with Visual Studio 2013

When I access the site as http://localhost:26049, the site runs fine. If I try to access the site with https://localhost:44319, I get page not found.

This is my project properties:

project properties

This is from my IISExpress application config:

<site name="MVC Authentication" id="2">     <application path="/" applicationPool="Clr4IntegratedAppPool">         <virtualDirectory path="/" physicalPath="F:\Projects\MySite\Test" />     </application>     <bindings>         <binding protocol="https" bindingInformation="*:44319:localhost" />         <binding protocol="http" bindingInformation="*:26049:localhost" />     </bindings> </site> 
like image 751
garethb Avatar asked Mar 05 '15 03:03

garethb


People also ask

How do I fix SSL connection error in Visual Studio?

Open Visual Studio and open the solution containing the web project you'd like to run in IIS Express with SSL. Verify that SSL Enabled is set to True . If you are working with a web project for which SSL has not yet been enabled, set SSL Enabled to True .

How do I enable SSL Certificate in Visual Studio?

NET project, you have to enable SSL property using Visual Studio. Before enabling this property, make sure that your properties window is visible by navigating to View menu and selecting the option Properties Window. You can also enable this window by using the keyboard shortcut F4.

Where is the IISExpress folder?

This file is located in the %userprofile%\Documents\IISExpress\config folder or %userprofile%\My Documents\IISExpress\config folder, depending on your OS. When you run a site from a configuration file, you can specify which site to run.


1 Answers

Please, for the love of g*d, try this, before you get mired in some unnecessary craziness!

(Apparently IIS Express has reserved port range of 44300 - 44399 for simulating SSL)

Change to port 44300 (https://localhost:44300/)

like image 155
DaniDev Avatar answered Sep 30 '22 21:09

DaniDev