Monday, November 9, 2015

The Web Application Project is configured to use IIS. Could not find the server 'https://localhost/SampleApp' on the local machine. Make sure the local IIS server has been configured to support secure communications.

After configuring a new Windows 10 machine, I loaded my first solution to start fixing some bugs. However the web project in my solution failed to load with the following error message:

C:\projects\SampleApp/WebUI.csproj : error  : The Web Application Project SampleApp.WebUI is configured to use IIS.  Could not find the server 'https://localhost/SampleApp' on the local machine. Make sure the local IIS server has been configured to support secure communications.

Whoops! Seems that I forgot to configure something in IIS. I didn’t enable the SSL binding on my local IIS instance.

Let’s fix this!

  • Open up the Internet Information Services(IIS) Manager
  • Click on the Default Website

image

  • Click on Bindings… in the Action pane on the right

image

  • Click on the Add… button to open up the Add Site Binding dialog

image

  • Specify https in the Type dropdown and choose an appropriate SSL certificate from the list

image

  • Click OK to close the dialog. The SSL binding is added to the list

image

  • Click on Close

Now I can reload the web project in Visual Studio without any error…

4 comments:

Abdul Bari Chanessra said...

Create a free website with easysite.com. Customize with easysite.com' free website builder, no coding skills needed. Choose a design, begin customizing and be online today www.easysite.com!

Smith Cole said...

Hi, Nice update. The local IIS server has been configured to support secure communications. I have a website and I hosted this through Myasp.net,which is a good and trustworthy webhosting site. Thanks for sharing and keep blogging new updated blogs like this.

Robert F. Crocker said...

I’m not that much of a internet reader to be honest but your blogs really nice, keep it up! I’ll go ahead and bookmark your site web design westchester ny

Wayne said...

Thanks - that was it!