Harish Kumar

How to enable/disable ssl for c# project running on visual studio IIS. To make it run on https/http urls.

Published on 3 May 2020 · ssl

Enabled SSL or https urls in a visual studio web application ensures the authenticity of the web site. These days this feature is enabled by default in visual studio 2017 or above.

This setting can cause issue while development where you dont want to use https url. In my case it was the issue while exposing my web application url (https://localhost/myApplication) with ngrok to the web.

So i found over the web and get the following resolution:

Run your project and you will see that the https:// url changed to http://. You can again enable the SSL checkbox to view your web application over secure link