Unable to start process dotnet.exe

2019-01-18 07:56发布

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?

22条回答
smile是对你的礼貌
2楼-- · 2019-01-18 08:58

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.

查看更多
Lonely孤独者°
3楼-- · 2019-01-18 08:59

Solution for me (without administrator rights) was to:

  • Close all instances of visual studio 2017
  • Open project
  • Clean
  • Rebuild
  • Run
查看更多
相关推荐>>
4楼-- · 2019-01-18 09:01

The issue in my case was

1- I upgrade (ported) my project (console/website) from .net 4.5 framework to donetcoreapp 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.

查看更多
小情绪 Triste *
5楼-- · 2019-01-18 09:01

This is what worked for me:

I've had the same issue, and it turned out that I simply didn't have the right version of the runtime (1.1.0); instead I was trying to use 1.1.0 assemblies with 1.0.1 runtime.

The resolution is simple - download and install SDK from here, but pick the right version! It turned out that if you want version 1.1.0 you should select "Current" option (button).

Basically the problem is caused by stupid interface at the referenced page - if you don't pay attention you'll download v1.0.1 since it is "LTS" version, and "LTS" option is default there. What to say... Yet another disappointment from .NET team in this crazy-versioning, crazy-moniker, crazy-platform times...

The quotes are from peske: https://github.com/aspnet/Home/issues/1719

查看更多
登录 后发表回答