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.
After disabling the firewall I was able to run it without any issues.
Well none of the above mentioned steps worked for me. In my case my
applicationhost.config
file was somehow missing the following two line of codeHope this can help some one.
Jason's Shavers series of articles here http://jasonrshaver.com/?tag=/Client+Certificates explain exactly how to set up your applicationhost.config site entry to allow the app to run in either ssl or standard http.
One of the things he recommends is putting two binding entries for the site. This is what I did.
He also recommends changing other settings as well. It worked on two of my three machines. Each time I am told to manually configure a site in the application host it usually has to do with the bindings. (example using same port for multiple web apps.)
My issue required a 3-fold solution:
My problem was eventually solved when I looked at the IIS Express registry key:
I had an entry
CustomUserHome
pointing to My Web Sites which was causing havoc.The only solution that worked for me was to create another test project. Then following the next steps:
Right click the project and go to Properties -> Web
Under the project URL in the Use Local IIS Web Server section, copy the project URL(http:// localhost:59002/) - this is from the test project.
Navigate to the project which is giving this error. Right click the project and go to Properties -> Web.
Paste the project URL in the Use Local IIS Web Server section (URL copied from the test project). Close the test project and save.
Delete the test project and run the project that gave the error. Works after that...
Maybe not the best way but it was the only way I could get this to work. I received this error message after I reloaded my laptop (hard drive crashed) and got all of my projects from the server of where they where hosted.