Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to start process C:\Program Files\dotnet\dotnet.exe. The web server request failed with status code 502. Error in Visual Studio 2017

I am facing a strange issue while building a solution which has web projects. I get the error below. Any solution or thought on it.

enter image description here

like image 992
Madhur Maurya Avatar asked Jan 15 '18 16:01

Madhur Maurya


2 Answers

Fixed by adding forwardWindowsAuthToken="false" in the web.config file.

 <aspNetCore processPath="%LAUNCHER_PATH%" arguments="%LAUNCHER_ARGS%" forwardWindowsAuthToken="false" stdoutLogEnabled="false" />

https://learn.microsoft.com/en-us/aspnet/core/host-and-deploy/aspnet-core-module

like image 172
sofsntp Avatar answered Nov 01 '22 00:11

sofsntp


I faced the same issue here

Error Information

How I fix

(1) Open Event Log. I noticed that there is a warning: 'Static compression is being disabled'.

Event Viewer Image

(2) Follow the 2 links to fix this issue

  • https://forums.iis.net/t/1195656.aspx?The+directory+specified+for+caching+compressed+content+is+invalid+Static+compression+is+being+disabled+

  • https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2008-R2-and-2008/cc735199(v=ws.10)

(3) Open TOOLS -> Options -> Projects and Solutions

Enable 'Use the 64 bit version of IIS Express for web sites and projects' (My system is 64 bit)

Tool Settings in VS2017


I am not very sure what happen exactly. But this helps me to fix this issue. Hope it can help you as well.

like image 25
shiming Avatar answered Oct 31 '22 23:10

shiming