programing

dotnet.exe 프로세스를 시작할 수 없습니다.

nasanasas 2020. 11. 6. 08:22
반응형

dotnet.exe 프로세스를 시작할 수 없습니다.


새 작업 공간을 설정하고 기존 컴퓨터에서 새 컴퓨터로 모든 프로젝트를 전송하려고합니다. 그러나 IIS Express를 실행하려고하면이 오류가 발생합니다.

C : \ Program Files \ dotnet \ dotnet.exe 프로세스를 시작할 수 없습니다. 웹 서버 요청이 상태 코드 500으로 실패했습니다.

Visual Studio 2015, 업데이트 3에서 작업 중이며 .NET Core RC2를 사용하고 있습니다. 누구든지이 문제를 해결하고 이전 프로젝트를이 새 컴퓨터에서 실행하는 방법을 알고 있습니까?


나는 같은 문제를 겪고 있었다. 해당 디렉토리에서 dotnet.exe를 찾고 존재하지만 디버거가 실행할 수 없으므로 관리자 권한으로 Visual Studio 2015를 다시 시작하면 작동합니다!


VS를 닫고 project.lock.json 파일을 삭제하고 VS를 열면 파일이 복원되고 더 이상 문제가 발생하지 않습니다.


제 경우의 문제는

1- 내 프로젝트 (콘솔 / 웹 사이트)를에서 .net 4.5 framework업그레이드 (이동) 했습니다.donetcoreapp 2.0

2- .NET Framework 4.5 프로젝트에는 Web.Config가 있습니다.

3- dotnetcore 2.0에는 web.config를 유지하는 개념이 없습니다.

4- 그래서 프로젝트를 실행할 때마다 같은 오류가 발생했습니다.

해결책:

방금 삭제 'Web.Config'하고 나를 위해 작동하기 시작했습니다.


나의 경우에는. 실행 / 디버깅하는 동안 "IIS Express"대신 "ProjectName"을 선택합니다. 콘솔 출력 창과 선택한 브라우저에서 작동 / 열기, 디버깅하는 동안 콘솔 출력 창을 열어 둡니다. 이것이 효과가 있기를 바랍니다.


  1. VS 2015를 닫습니다 (VS 2017에서 문제가 해결 된 것 같습니다).
  2. \ bin 및 \ obj의 모든 파일을 제거하십시오. project.lock.json을 제거하십시오.
  3. VS를 실행합니다.
  4. 재건.

위의 솔루션이 VS2017 .Net Core에서 작동하지 않으면 VS2017로 ADMIN으로 실행하십시오. 머신에 대한 관리자 액세스 권한이없는 경우 'launchSettings.json'을 아래와 같이 포트 8080에서 작동하도록 변경할 수 있으며 그 후 위의 4 단계를 따릅니다.

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


Visual Studio 2017-> 수정 사항은 디버깅 / 실행시 IISExpress 대신 프로젝트 이름을 선택하는 것이 었습니다.


이것은 나를 위해 일한 것입니다.

저도 같은 문제가 있었는데, 그저 올바른 버전의 런타임 (1.1.0)이 없었습니다. 대신 1.0.1 런타임과 함께 1.1.0 어셈블리를 사용하려고했습니다.

해결 방법은 간단합니다. 여기 에서 SDK를 다운로드하여 설치 하지만 올바른 버전을 선택하십시오! 1.1.0 버전을 원할 경우 "현재"옵션 (버튼)을 선택해야합니다.

기본적으로 문제는 참조 페이지의 어리석은 인터페이스로 인해 발생합니다.주의를 기울이지 않으면 v1.0.1이 "LTS"버전이고 "LTS"옵션이 기본값이므로 다운로드하게됩니다. 할 말 ...이 미친 버전, 미친 모니 커, 미친 플랫폼 시대에 .NET 팀의 또 다른 실망 ...

인용구는 peske에서 가져온 것입니다 : https://github.com/aspnet/Home/issues/1719


이것은 OP가 게시 한 것과 약간 다른 문제에 대한 답변입니다. 오류 메시지에 dotnet.exe ( "C : \ ProgramFiles \ DotNet \ dotnet.exe")의 전체 경로가 아니라 "dotnet.exe"만있는 경우 dotnet.exe가 System.Environment 경로에 있는지 확인합니다. 추가하지 않고 VS를 관리자로 실행하십시오.


저에게 해결책은 Visual Studio 2017을 닫고 솔루션을 다시 여는 것이 었습니다. :)


이는 applicationhost.config 파일 의 잘못된 경로로 인해 발생 합니다.이 파일은 프로젝트 폴더에서 찾을 수 있습니다. 프로젝트 폴더로 이동하십시오. 당신은이 찾을 수 .vs에게 폴더의 선택을 취소 숨겨진 폴더에 당신이 열 당신이 다음을 찾을 수없는 경우라는 폴더에 있습니다. 찾으면 config 폴더로 이동하여 applicationhost.config 를 찾습니다 . 메모장에서이 파일을 열고 다음과 같은 프로젝트 위치를 제공하십시오.

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

이것이 당신을 도울 것입니다.


시작 프로젝트에서 익명 인증 사용 옵션을 선택했는지 확인하십시오. 여기에 이미지 설명 입력


제 경우 솔루션은 프로젝트의 루트에서 web.config를 삭제했습니다. 나는 ASPnetcore 프로젝트에서 일하고 있었고 일주일 후에 오류가 시작되었습니다. web.config 파일이 어떻게 추가되었는지 확실하지 않지만 삭제하면 오류가 해결되었습니다.


Microsoft Visual Studio 2017 pro를 업데이트 한 직후이 문제가 발생하여 지금까지 3 가지 잠재적 솔루션을 찾았습니다.

  • Visual Studio 다시 시작이 작동하는 경우가 있습니다.

  • % USERPROFILE % .nuget을 삭제하면 문제가 해결 될 수 있습니다.

  • dotnet SDK를 제거한 다음 다시 설치합니다.


나를위한 솔루션 (관리자 권한 없음)은 다음과 같습니다.

  • Visual Studio 2017의 모든 인스턴스를 닫습니다.
  • 프로젝트 열기
  • 깨끗한
  • 재 구축
  • 운영

I was able to fix the error by removing $(solutionDir).vs\config\applicationhost.config. After restart VS 2017 recreated the file.
The file became invalid after I moved the solution from one location to another.

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


VS2017 and solution has .NET Core 1.1 web applications.

This did not help: Deleting .VS folder, removing all bin directories, restarting VS.

This helped: Installed latest SDK (.NET Core SDK 1.0.4) this issue got resolved.

I got this issue all of a sudden after a machine reboot followed by installing PHP for IIS, IIS URL Rewrite. But just try reinstalling the SDK – it might work fine with that itself, instead of going for the latest SDK.


I found the solution by reinstalling .NET CORE SDK


iisreset in cmd as Administrator did the work for me.


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.


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

In my case I have a few projects in one solution and none of them has been set up as startup project.

So, just right-click on project (not solution!) as choose Set as StartUp Project.


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

Here is what it looks like. Hope it will be helpfull

<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>

I had this and it turns out I was in Release build. Changed to Debug build and it worked.


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> 

For whom is having problem with Visual Studio 2019 because was using the previous version of Visual Studio, jus delete the .vs folder that is in the root of the project and rerun the application, the problem must be resolved. That worked for me.


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


내 문제는 다음과 같이 해결되었습니다.

이동 : .vs \ config \ applicationhost.config 파일 및 overrideModeDefault를 거부 대신 허용으로 설정

<section name="windowsAuthentication" overrideModeDefault="Allow" />

참고 URL : https://stackoverflow.com/questions/38488503/unable-to-start-process-dotnet-exe

반응형