Search code examples
iisasp.net-coreasp.net-core-2.1iis-10asp.net-core-2.2

Failed to Start Process with Commandline VSIISExeLauncher.exe in IIS 10.0


Thursday night, I was working on a project built in ASP.NET Core 2.1 (being prepared for ASP.NET Core 2.2) running on my local IIS 10.0 (not IIS Express) and was able to run it without any issue. Friday morning, after heading into the office, I was met with the following error every time I try to run my solution in Visual Studio:

  • Unable to start process C:\Program Files (x86)\dotnet\dotnet.exe. The web server request failed with status code 502, Bad Gateway. The full response has been written to [file_name].html.

When I open the [file_name].html, I'm given the response:

  • HTTP Error 502.5 - ANCM Out-Of-Process Startup Failure

When I open the Event Viewer, I'm given the response:

  • Application 'MACHINE/WEBROOT/APPHOST/DEFAULT WEB SITE/[Path]' with physical root '[Path]' failed to start process with commandline '[Path]\bin\IISSupport\VSIISExeLauncher.exe -argFile IISExeLauncherArgs.txt', ErrorCode = '0x800700c1' : 0.

I have:

  • Turned off and on the IIS through Windows Features, making sure the correct Internet Information Services features were checked
  • Created an Application Pool where [.NET CLR version] is set to "No Managed Code" and [Managed pipeline mode] is set to "Integrated"
  • Uninstalled and Reinstalled: IIS Url Rewrite to IIS
  • Uninstalled and Reinstalled: Microsoft .NET Core SDK - 2.1.504 (x64)
  • Uninstalled and Reinstalled: Microsoft .NET Core SDK - 2.1.504 (x84)
  • Uninstalled and Reinstalled: Microsoft .NET Core SDK - 2.2.104 (x64)
  • Uninstalled and Reinstalled: Microsoft .NET Core SDK - 2.2.104 (x84)
  • Uninstalled and Reinstalled: Microsoft .NET Core Runtime - 2.1.8 (x64)
  • Uninstalled and Reinstalled: Microsoft .NET Core Runtime - 2.1.8 (x86)
  • Uninstalled and Reinstalled: Microsoft .NET Core Runtime - 2.2.2 (x64)
  • Uninstalled and Reinstalled: Microsoft .NET Core Runtime - 2.2.2 (x86)
  • Uninstalled and Reinstalled: Microsoft .NET Core 2.1.8 - Windows Server Hosting
  • Uninstalled and Reinstalled: Microsoft .NET Core 2.2.2 - Windows Server Hosting
  • Restarted my computer after ever re-installation

What else can I try because none of my other projects are working either.


Solution

  • I found the solution.

    In the root folder of my team's project, there was an empty "file" file titled "The". For the sake of things, our project is called "The Project" with a space between the words. I removed this file and everything built fine.

    My guess is that getting the latest files from our Teams server must have generated a half-formed file and messed with the build of my project.