Unable to start process dotnet.exe

前端 未结 29 1941
广开言路
广开言路 2020-12-05 22:14

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 Expres

相关标签:
29条回答
  • 2020-12-05 22:54
    1. Close VS 2015 (it seems that the issue is resolved in VS 2017).
    2. Remove all files in \bin and \obj. Remove project.lock.json.
    3. Run VS.
    4. Rebuild.

    If the above solution doesnt work in VS2017 .Net Core, Run as VS2017 as ADMIN. If no ADMIN access to your machine, you can change the 'launchSettings.json' to work on port 8080 like below and after that follow above 4 steps.

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

    0 讨论(0)
  • 2020-12-05 22:54

    My problem resolved by:

    Goto: .vs\config\applicationhost.config file and set overrideModeDefault to Allow instead of Deny

    <section name="windowsAuthentication" overrideModeDefault="Allow" />
    
    0 讨论(0)
  • 2020-12-05 22:55

    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.

    0 讨论(0)
  • 2020-12-05 22:55

    If using IIS instead of IIS Express, just restart the service or:

    1. open IIS
    2. open your project folder from Sites tree view
    3. select site
    4. in Manage Websiteclick on Restart button
    0 讨论(0)
  • 2020-12-05 22:56

    Solution for me (without administrator rights) was to:

    • Close all instances of visual studio 2017
    • Open project
    • Clean
    • Rebuild
    • Run
    0 讨论(0)
  • 2020-12-05 22:56

    In my case, I just change modules="AspNetCoreModuleV2" to modules="AspNetCoreModule" and working fine. The final web.config looks like as 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 讨论(0)
提交回复
热议问题