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?
Solution for me was to close visual studio 2017, and reopen the solution. :)
iisreset
in cmd as Administrator did the work for me.The solution in my case was deleted web.config from the root of the project. I was working on an ASPnetcore project and after a week the error started. I am unsure how that web.config file got added but once I delete that their error got resolved.
Visual Studio 2017 -> The fix for me was to choose the Project Name instead of IISExpress when debugging/running.
In my case I accidentally install dotnet for x86 platform when my VS 2017 have x64. I reinstall dotnet for platform x64 and it works fine now.
In your startup project be sure that you have selected the option Enable Anonymous Authentication