Failed to start dotnet.exe process

I am trying to set up a new workspace and transfer all my projects from the old computer to the new one. However, I get this error when trying to start IIS Express:

Cannot start the process C: \ Program Files \ dotnet \ dotnet.exe. Web server request failed with status code 500.

I work in Visual Studio 2015 Update 3 and I am using .NET Core RC2. Does anyone know how to fix this and run my old projects on this new machine?

+68
c # visual-studio .net-core
Jul 20 '16 at 18:46
source share
29 answers

I had the same problem. I am looking for dotnet.exe in this directory, but it exists, but the debugger cannot execute it, so I will restart Visual Studio 2015 as an administrator and it works!

+101
Jul 21 '16 at 17:47
source share

Just close VS, delete the project.lock.json file, open VS, the file will be restored, and you will have no more problems.

+34
Aug 28 '16 at 8:28
source share

In my case, the problem was

1- I am updating (porting) my project (console / website) from .net 4.5 framework to donetcoreapp 2.0

2. The .NET Framework 4.5 project had Web.Config

3 dotnetcore 2.0 has no concept of web.config support.

4- So, whenever I started the project, I got the same error

Decision:

Just uninstalled 'Web.Config' and it started working for me.

+19
Aug 21 '17 at 7:16
source share

in my case. I select "ProjectName" instead of "IIS Express" during runtime / debugging. and it works / opens with the console window and the selected browser, during debugging the console output window opens. Hope this works.

+12
Apr 26 '17 at 7:42 on
source share
  1. Close VS 2015 (it seems that the problem is resolved in VS 2017).
  2. Delete all files in \ bin and \ obj. Remove project.lock.json.
  3. Launch VS.
  4. Rebuild.

If the above solution does not work in VS2017.Net Core, start from VS2017 as ADMIN. If you do not have ADMIN access to your computer, you can modify the launchSettings.json file so that it works on port 8080, as shown below, and then follow the 4 above steps.

"applicationUrl": " http: // localhost: 8080 / ",

+9
Jun 15 '17 at 15:51
source share

Visual Studio 2017 -> The fix for me is to select the project name instead of IISExpress when debugging / starting.

+8
Jun 19 '18 at 16:55
source share

Here is what worked for me:

I had the same problem, and it turned out that I just did not have the correct version of the runtime (1.1.0); instead, I tried to use builds 1.1.0 with runtime 1.0.1.

The solution is simple - download and install the SDK from here , but select the correct version! It turned out that if you want version 1.1.0, you need to select the "Current" option (button).

Basically, the problem is caused by the stupid interface on the specified page - if you do not pay attention, you will download v1.0.1, since this is the version of “LTS”, and the “LTS” option is there by default. What can I say ... Another disappointment from the .NET team at this time of crazy versions, crazy names, crazy platforms ...

Quotes from Sand: https://github.com/aspnet/Home/issues/1719

+5
May 01 '17 at 15:24
source share

this is an answer to a question slightly different from what the OP posted. If the error message has only "dotnet.exe" and not the full path to dotnet.exe ("C: \ ProgramFiles \ DotNet \ dotnet.exe"), then check if dotnet.exe is in the System.Environment path if do not add it and run VS as administrator

+4
Jun 03 '17 at 10:55 on
source share

The solution for me was to close the visual studio 2017 and reopen the solution. :)

+3
Jun 13 '17 at 18:38
source share

This is caused by the wrong Way in the applicationhost.config file, you can find this file in the project folder. Go to the project folder. There you will find a folder named .vs if you cannot find it, and then in the folder is open. You must uncheck the "Remove hidden folder." After you find it in the config folder, you will find applicationhost.config . Open this file in notepad and indicate the location of the project as follows: -

<virtualDirectory path="/" physicalPath="c:\users\*****\documents\visual studio 2015\Projects\<ProjectFolderName>\<Projectname>" />

Hope this helps you.

+3
Nov 22 '17 at 12:26
source share

In your startup project, make sure you select the Enable anonymous authentication option. enter image description here

+3
Mar 06 '18 at 16:52
source share

The solution in my case was removed by web.config from the project root. I was working on an ASPnetcore project and after a week an error started. I am not sure how this web.config file was added, but as soon as I delete that their error has been resolved.

+3
Mar 19 '18 at 5:54
source share

I have this problem right after updating Microsoft Visual Studio 2017 pro, so far I have found 3 potential solutions:

  • Restarting Visual Studio works, sometimes

  • Delete% USERPROFILE% .nuget may fix the problem,

  • Uninstall, then reinstall the dotnet SDK,

+2
May 15 '17 at 14:16
source share

The solution for me (without administrator rights) was:

  • Close all instances of visual studio 2017
  • Open project
  • Clean
  • Rebuild
  • Run
+2
Sep 13 '17 at 9:32 on
source share

I was able to fix the error by deleting $ (solutionDir) .vs \ config \ applicationhost.config . After restarting, VS 2017 recreated the file.
After I moved the solution from one place to another, the file became invalid.

Thanks https://elanderson.net/2016/09/unable-to-start-process-dotnet-exe/ for this idea.

+2
Sep 25 '17 at 21:41
source share

VS2017 and the solution has .NET Core 1.1 web applications.

This did not help: Delete the .VS folder, delete all bin directories, restart VS.

This helped: Installed the latest SDK (.NET Core SDK 1.0.4), this problem was resolved.

I got this problem all of a sudden after rebooting my computer, after which I installed PHP for IIS, URL Rewrite for IIS. But try reinstalling the SDK - it can work fine with it itself, instead of following the latest SDK.

+1
Jul 12 '17 at 18:14
source share

I found a solution by reinstalling the .NET CORE SDK

+1
Aug 15 '17 at 10:25
source share

iisreset in cmd as administrator did the job for me.

+1
Aug 22 '18 at 8:42
source share

In my case, I accidentally install dotnet for the x86 platform when x64 is installed on my VS 2017. I am reinstalling dotnet for the x64 platform and now it works fine.

+1
Sep 05 '18 at 8:30
source share

If you are using IIS Express instead of IIS Express , simply restart the service or:

  1. open IIS
  2. open your project folder from the Sites tree
  3. select site
  4. in the Manage Website click the " Restart " button
+1
Apr 30 '19 at 15:25
source share

If an error occurs in the Web.config file, this will result in an error.

0
Jul 24 '17 at 22:10
source share

In my case, I have several projects in one solution, and not one of them has been configured as a launch project.

So, just right-click on the project (and not on the solution!), Select "Set as StartUp Project".

0
Oct 26 '17 at 9:53 on
source share

Fix from the program and functions allowed in my case (Windows Server 2012)

0
Oct 30 '17 at 13:30
source share

In my case, there was a setting in web.config and the wait time was not defined properly, instead of the actual value there was requestTimeout="00:06:00" TFS requestTimeout="00:06:00"

Here is how it looks. I hope it will be useful

 <system.webServer> <handlers> <remove name="aspNetCore"/> <add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModule" resourceType="Unspecified"/> </handlers> <aspNetCore processPath="%LAUNCHER_PATH%" arguments="%LAUNCHER_ARGS%" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" requestTimeout="00:06:00" /> <httpRedirect enabled="false" /> </system.webServer> 
0
May 30 '18 at 7:21
source share

I had this, and it turned out that I was in Release build. Changed to Debug build and it worked.

0
Nov 23 '18 at 15:43
source share

In my case, I just change modules="AspNetCoreModuleV2" to modules="AspNetCoreModule" and work fine. The final web.config looks like the one below.

 <?xml version="1.0" encoding="utf-8"?> <configuration> <system.webServer> <handlers> <add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModuleV2" resourceType="Unspecified" /> </handlers> <aspNetCore processPath="%LAUNCHER_PATH%" arguments="%LAUNCHER_ARGS%" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" forwardWindowsAuthToken="false" startupTimeLimit="3600" requestTimeout="23:00:00"> <environmentVariables /> </aspNetCore> <httpProtocol> <customHeaders> <remove name="X-Powered-By" /> </customHeaders> </httpProtocol> </system.webServer> </configuration> 
0
Mar 01 '19 at 10:40
source share

For those who have a problem with Visual Studio 2019, since they used the previous version of Visual Studio, simply delete the .vs folder located in the root directory of the project and restart the application, the problem should be solved. It worked for me.

0
Sep 18 '19 at 11:23
source share

I had to do a repair installation of .net core 2.2 sdk to fix this problem. Using VS 2017

0
Sep 26 '19 at 17:49
source share

My problem is solved with

Go to: the .vs \ config \ applicationhost.config file and set the overrideModeDefault parameter to Allow instead of Deny

 <section name="windowsAuthentication" overrideModeDefault="Allow" /> 
0
Sep 27 '19 at 9:46
source share



All Articles