Programing

ID가 #### 인 프로세스가 Visual Studio Professional 2013 업데이트 3에서 실행되고 있지 않습니다.

lottogame 2020. 5. 31. 09:54
반응형

ID가 #### 인 프로세스가 Visual Studio Professional 2013 업데이트 3에서 실행되고 있지 않습니다.


Visual Studio 2013 업데이트 3에서 모든 프로그램을 실행하려고하는데 다음 경고 상자가 나타납니다.

Process with an ID #### is not running . // 다른 ID 번호가 표시 될 때마다

그리고 오류 창 에서이 오류 메시지가 나타납니다.

The program '[3148] iisexpress.exe' has exited with code -1073741816 (0xc0000008) 'An invalid handle was specified'.

때로는 실행되고 브라우저에서 다음 메시지가 표시됩니다. The webpage is not available.

나는 주변을 둘러보고 거의 모든 것을 시도했지만 여전히 문제를 해결할 수는 없습니다.

누구든지 도와주세요


첫 번째 오류

첫 번째 오류의 경우 :

ID가 #### 인 프로세스가 실행되고 있지 않습니다.

다음 단계가 나를 위해 일했습니다.

  1. Visual Studio의 모든 인스턴스를 닫습니다.
  2. IISExpress 폴더의 이름을 바꿉니다 (내 PC는 C : \ Users \ jmelosegui \ Documents에 있습니다).
  3. _CSRUN_DISABLE_WORKAROUNDS 환경 시스템 변수를 값 1로 추가하십시오 .여기에 이미지 설명을 입력하십시오
  4. 관리자 모드에서 Visual Studio를 시작하십시오. ( Windows 에서 실행 파일을 마우스 오른쪽 단추로 클릭하고 관리자로 실행을 선택 하십시오 ).

두 번째 오류

두 번째 오류 :

웹 페이지를 사용할 수 없습니다

이 오류의 원인 :

SSL을 사용하는 동안 IIS Express Development Certificate를 삭제했습니다.

다음 단계가 나를 위해 일했습니다.

  1. 제어판으로 이동하십시오.
  2. 프로그램 추가 / 제거를 선택하십시오.
  3. IIS 8.0 Express를 찾으십시오.
  4. 마우스 오른쪽 버튼으로 클릭 한 다음 복구를 클릭하십시오.
  5. 증명서가 돌아와야합니다!

도움이 되었기를 바랍니다!


다음 단계는 Visual Studio 2015Visual Studio 2017 의 문제를 해결합니다 .

  • VS를 닫습니다.
  • 솔루션 폴더로 이동하여 숨겨진 .vs폴더를 삭제하십시오 .
  • VS를 다시 시작하십시오.
  • Hit F5및 IIS Express는 정상적으로로드되므로 디버깅 할 수 있습니다.

참고 : 내 경험과 의견에 따르면 다른 사람은 워크 스테이션, 환경 또는 Visual Studio 버전간에 프로젝트를 이동하여이 문제가 발생하는 것 같습니다. .vs폴더에 포함 된 환경 특정 정보가 있어야 합니다.


쉽게 해결 :

  1. 관리자 권한으로 Visual Studio 열기
  2. 프로젝트를 마우스 오른쪽 버튼으로 클릭하고 '프로젝트 언로드'를 클릭하십시오.
  3. 다시 프로젝트를 마우스 오른쪽 버튼으로 클릭하고 'PROJECT_NAME.csproj 편집'을 클릭하십시오.
  4. 아래 코드를 찾아 삭제하십시오.

    <DevelopmentServerPort>63366</DevelopmentServerPort>
    <DevelopmentServerVPath>/</DevelopmentServerVPath>
    <IISUrl>http://localhost:63366/</IISUrl>
    
  5. .csproj 파일을 저장하고 닫습니다.

  6. 프로젝트를 마우스 오른쪽 버튼으로 클릭하고 다시로드하십시오.
  7. 작동 확인

첫 번째 오류와 관련하여 :

ID가 #### 인 프로세스가 실행되고 있지 않습니다

이 상황은 때때로 IIS Express가 포트에 바인딩하지 못할 때 발생합니다. 아마도 다른 프로세스가 이미 해당 포트에 바인딩되어 있기 때문일 수 있습니다. Visual Studio에서 IISExpress.exe 프로세스가 시작되고 (포트에 바인딩하지 못하고 다시 종료되지 않음) 이제 종료 된 프로세스에 연결되어 위의 오류가 발생합니다.

확인하려면 프로젝트 설정에서 포트 번호 (예 : 12116)를 기록한 후 다음을 시도하십시오.

netstat -ano | find "12116"

다른 프로세스에서 포트가 열려 있으면 PID가 제공됩니다. 그런 다음 문제의 프로세스를 종료하거나 자신의 포트 번호를 재 할당 할 수 있습니다.


64 비트 컴퓨터를 사용하는 경우

그런 다음 Visual Studio에서 32 비트 IIS-Express를 사용했기 때문에 문제가 발생했을 수 있습니다.

솔루션 : Visual Studio에서 도구 메뉴> 옵션> 프로젝트 및 솔루션> 웹 프로젝트> "64 비트 버전의 IIS Express 사용"옵션 사용으로 설정하고 확인을 클릭하십시오.


나는 같은 문제가 있었다. Visual Studio를 다시 시작하면 나에게 도움이되었습니다.


@ 킬 라니 대답은 정확합니다. 2015 년 대부분의 컴퓨터는 64 비트이므로 도구 기본 탐색 링크 메뉴 에서 64 비트 옵션을 활성화해야 할 가능성이 많습니다 . 다른 파일이나 하드 코드 포트를 구성 할 필요가 없습니다. 또한 포트 할당은 동적이어야합니다. 이 수정 사항은 2013 With Update 3 및 Visual Studio 2015 Community Edition에 적용됩니다.

미니 튜토리얼을 보려면 아래 이미지를 확인하십시오. (Kilanny의 답변을 개선하고 있습니다)

Visual Studio 도구 메뉴

Visual Studio 웹 프로젝트 옵션


I tried the first error and that didn't help me. However What did work for me was to delete the hidden ".vs" folder which is at the solution root.


It looks like there are many solutions that work and some that don't...

My issue kept surfacing after a few test iterations. Yes restarting the PC and/or VS would resolve the issue...but temporarily.

My solution was to undo a security change I had enabled a couple days earlier to Controlled folder access under Ransomware protection.

I undid this change by:
(right click Start) Setting->Update & Security->Windows Security->Virus & threat protection-> Virus & threat protection settings

Under Controlled folder access Click->Manage Controlled folder access (this is also the Ransomware protection screen)

Turn Controlled folder access off.

This was 100% the issue for me as I was able to run my test without restarting VS.


I had a similar problem with Chrome.

It appears that VS can't attach to the Chrome process for some reason.

Solution: 1. Close Chrome 2. With Chrome closed, start the web project and allow VS to open Chrome.

Hope that helps.


For me, none of the other solutions worked. The things I tried:

  • Updating and patching everything associated with Visual Studio
  • Reinstalling Visual Studio
  • Reinstalling IIS Express
  • Several reboots
  • Adding the _WORKAROUND thing to the PATH
  • Renaming the IIS folder under documents to regenerate the IIS config
  • Manually editing the csproj file and removing the whole IIS settings section
  • Changing the IIS executable usage to 64bit in VS settings
  • Changing the port of IIS in the projects settings

After checking if the problem was persistent over different projects, it turned out that the problem only occurred in one specific projects. I figured that I had to delete all the user specific files in the solutions folder (such as bin, obj, *.suo, ...) I just deleted the whole solution folder and reverted the files in git.

TLDR: Try deleting user specific files/folders like bin, obj, *.suo, ...


go to Properties of the start up project, increment port number of the Project Url is probably the quickest way to get around this problem which I didn't read anyone mentioned yet.

And you don't need to restart VS as it can be a pain sometimes if you needed a few other instances needed to be running.


I found the solution here:

https://www.codeproject.com/Tips/1029540/Solved-Process-With-An-Id-Of-Is-Not-Running

Edited the project file and deleted the lines:

<DevelopmentServerPort>xxxxx</DevelopmentServerPort>
<DevelopmentServerVPath></DevelopmentServerVPath>
<IISUrl>http://localhost:xxxxx/</IISUrl>

I had the same problem, and what needed to be done was setup IIS Express properly.

I right clicked on my project Properties => Web (tab) and on Servers: Project URL was already pre-populated and I clicked the button "Create Virtual Directory".

I had just reinstalled (refreshed) windows and the IIS was not setup b/c it was new.

Hope this helps.


I also had the same problem, doing the above didn't work for me. What my error turned out to be was twofold.

  1. I had Opera as my default browser and it couldn't attach to that.
  2. I had multiple startup projects so it wouldn't let me switch to IE until I change the default startup project back to just the MVC shell.

I set that project specifically as the startup, then I switched it back to launching IE and it started debugging again.

Hope that helps


I came across the same problem and found that somehow the file 'applicationhost.config' (in ..\Documents\IISExpress\config) had a different localhost port number (in the 'sites' section) to the one specified in project\properties\web. Changed them to the same number and the problem went away


What I did to make this go away:

Open C:\Users\gr_mext1\Documents\IISExpress\config\applicationhost.config and remove all <site> entries in <sites> do not remove <siteDefaults>!

In your project, go to Properties, Web and click "Create Virtual Directory".

Close and re-open visual studio, load your project and run

Fixed!


None of the listed solutions worked for me. Problem was some sort of conflicting state in local applicationhost.config file. Fix is easy, just delete one in your solution. For VS2015 it should be located in <path_to_your_solution>\Solution\.vs\config\. When you launch Debug, VS will recreate that file based on settings in your project file.


Resolution I found;

Head to the following directory

%userprofile%\documents\IISExpress\Config directory

Delete all files within that folder. Restart visual studio and works like a charm.


Deleting the hidden .vs folder didn't work for me since the port specified in my app was being used by another app. Doing the following worked for me:

  1. Went to properties and then click the web tab.
  2. Changed the port number in the Start Url and the Project URL.
  3. Clicked Create Virtual Directory.
  4. Save and Press F5.

I recently had the same issue with VS 2013 and IIS Express:

"Process with an ID #### is not running ." // every time there is different ID number showing.

Here was the solution I found that worked for me:

1) Go into the Documents -> IIS Express -> config -> applicationhost.config

2) I opened applicationhost.config in Notepad++

3) Under the tag , there are lines of code that looks like this:

    <add name="Clr4IntegratedAppPool" managedRuntimeVersion="v4.0" managedPipelineMode="Integrated" CLRConfigFile="%IIS_USER_HOME%\config\aspnet.config" autoStart="true">
                 <processModel loadUserProfile="true" />
        </add>

4) Remove these two lines

                <processModel loadUserProfile="true" /> 
        </add>

5) Change the END of the first line to

            <add name="Clr4IntegratedAppPool" managedRuntimeVersion="v4.0" managedPipelineMode="Integrated" CLRConfigFile="%IIS_USER_HOME%\config\aspnet.config" autoStart="true" />

Notice that all I did was close the tag by adding ' /' after "true".

I am now able to run my projects in a web browser AND debug my code.

Also, I had updated to Update 4, but was having the same issue. I believe appending the applicationhost.config file was what fixed the problem.

I hope this helps!


Same error Process with an ID #### is not running using visual studio 2015 RC.

Only go rid of the message after repair IIS 10 in Control Panel - Programs and Features

Renato


This can happen for various reasons, helpfully - if you run IISExpress.exe (\Program Files (x86)\IISExpress\iisexpress.exe for 32-bit, \Program Files\IISExpress\iisexpress.exe for 64-bit) in the command line, you'll get some more details. In my case:

C:\Program Files\IIS Express>iisexpress.exe

Filename: \\?\C:\Users\My.Username\Documents\IISExpress\config\applicationhost.config
Line number: 15
Error: Configuration file is not well-formed XML

Nice and easy to fix, that one my was my fault though!


For me, VS uses Firefox for the default browser. Restarting VS and closing all Firefox windows seems to resolve this issue.


If you're using git as source control, you should also make sure that any user specific files are ignored.

[Dd]ebug/
[Dd]ebugPublic/
[Rr]elease/
[Rr]eleases/
x64/
x86/
bld/
[Bb]in/
[Oo]bj/
[Ll]og/

If they're already tracked, then use git -r rm --cached

This resolved the error for me.


startMode="alwaysRunning" in $SOLUTION_DIR/bis/.vs/config/applicationhost.config caused it for me. Try to remove that string and everything will work again (even without restart of VS)


Close your instance of Visual studio. Start it again in Administration mode. "Run as Admin"


Running as administrator didn't seem to make a difference when I got this.

  • Make sure all iisexpress.exe processes had been closed
  • Edit <path_to_your_solution>\Solution\.vs\config\applicationhost.config
  • Change the site name.

    <site name="MySite" id="1" serverAutoStart="true">

    to :

    <site name="MySite2" id="1" serverAutoStart="true">

  • That fixed it for me

cmd - regedit-HKEY_LOCAL_MACHINE-SYSTEM-CurrentControlSet-Services-HTTP-START=3

Computer restarted.

worked for me!


What fixed it for me was running the project from a different file in my solution. Specifically, 2 of my files are named web.config, so I just ran from the other one.

참고 URL : https://stackoverflow.com/questions/26424902/process-with-an-id-is-not-running-in-visual-studio-professional-2013-update

반응형