I am attempting to setup a new work space and transfer all of my projects from my old computer to the new one. However, I am getting this error when I try to run IIS Express:
Unable to start process C:\Program Files\dotnet\dotnet.exe. The web server request failed with status code 500.
I am working in Visual Studio 2015, update 3 and I am using .NET Core RC2. Does anyone have any idea how to fix this and get my old projects running on this new machine?
in my case. i choose "ProjectName" instead of "IIS Express" while running/debugging. and it works/open with a console output window and selected browser, keep console output window open while debugging. Hope this will work.
Solution for me (without administrator rights) was to:
The issue in my case was
1- I upgrade (ported) my project (console/website) from
.net 4.5 framework
todonetcoreapp 2.0
2- .NET Framework 4.5 project had Web.Config
3- dotnetcore 2.0 does not have concept of maintaining web.config.
4- So whenever I ran the project I got the same error
solution:
Just deleted
'Web.Config'
and it started working for me.This is what worked for me:
The quotes are from peske: https://github.com/aspnet/Home/issues/1719