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.
Try following steps:
Have a good luck!
If using VS2015 or above
Make sure iisexpress process is not running.
Make sure no other process is using your desired port. You can do that by executing
netstat -a -b
in the console (as Administrator).Then delete the following file
note the
.vs
folder may be hiddenthen find
<<project-name>>.csproj.user
file, open it with text editor (notepad) and make sureIISUrl
underWebProjectProperties
is configured to<IISUrl>http://localhost:XXXXX/</IISUrl>
whereXXXXX
is your desired port.after doing this and trying to start the app you may get
Then go to {Project Properties} -> Web and Press the "Create Virtual Directory" button
I had the exact same problem.
The reason - bad IIS config file.
Try deleting the automatically-created
IISExpress
folder, which is usually located at%userprofile%/Documents
, e.g.C:\Users\[you]\Documents\IISExpress
.Don't worry, VS should create it again - correctly, this time - once you run your solution again.
EDIT: Command line for deleting the folder:
I had the same problem after installing Visual Studio 2013 Update 3.
VS 2013 can not load Microsoft.VisualStudio.TraceLogPackage.dll
Unable to launch the IIS Express Web server
My problem solved by doing the following steps :
1. Repair
Visual Studio 2013 Update 3
2. Start the
Developer Command Prompt
as administrator.3. Type
devenv.exe /setup
then press enterI had the same issue. I had deleted a lot of folders under
C:/users/
path to free some space on my machine. After which I started getting this error.I just had to restart my machine and it all worked fine.
In my case after I allowed external request to my IIS Express website and configured windows firewall to allow iisexpress.exe, I can't start it from within Visual Studio 2013. I can still start it with command line, and it serves local and external requests well.
I tried to create a firewall rule to allow my port, after that VS worked.