I have an asp.net MVC 4 solution. When I try to open it using Visual studio 2012, I get following error:
Microsoft Visual Studio
Configuring Web
https://localhost:
for ASP.NET 4.5 failed. You must manually configure this site for ASP.NET 4.5 in order for the site to run correctly. Could not find the serverhttps://localhost:44300/
on the local machine. Make sure the local IIS server has been configured to support secure communications.OK Help
Although the solution opens. Also, When I try to run it from debug menu, I get following error:
Unable to launch the IIS Express Web server.
The start URL specified is not valid. https://localhost:44300/
and I can not debug the code. how to get rid of these errors and debug/run the web site from VS 2012 ?
Please suggest.
I had the same problem with VS 2013 and even after all possible tries it was not working.My problem was solved by:
At least you can give this a try since it worked for me.
I had a similar problem when running my solution from VS2012:
I had the incorrect project selected as Startup Project. I made the Cloud project the Startup (right click on project -> Set as Startup Project) and everything started working fine.
There is no need to delete the entire IISExpress folder in the directory C:\Users[you]\Documents\IISExpress.
Just comment:
in the applicationhost.config file in the IISExpress folder.
@roblll had it right. But for those of you who didn't want to dig for the answer, here it is:
Note that there's a binding for http with the port you intend to use for https.
Keep in mind, Visual Studio might have supplied different ports than you expected. Just make sure that the ports in the binding correspond to what's in the Web tab of your project's properties.
http://www.hanselman.com/blog/WorkingWithSSLAtDevelopmentTimeIsEasierWithIISExpress.aspx
In my case the project was on network drive and deleting IIS Express folder didn't help as described in other answers. My workaround was copying the project to local drive and it worked!
I had the same problem, thanks to @Jacob for giving information about it.
The Reason is - wrong entry for your project in config file applicationhost located at
It worked for me and hope it should work for you also.