Process with an ID #### is not running in visual studio professional 2013 update 3

后端 未结 30 2040
再見小時候
再見小時候 2020-11-28 02:22

I am trying to run any program on visual studio 2013 update 3 and I get the following alert box :

Process with an ID #### is not running . // every tim

相关标签:
30条回答
  • 2020-11-28 02:34

    With respect to the first error:

    Process with an ID #### is not running

    This situation will sometimes occur when IIS Express fails to bind to a port. A likely reason for that is that some other process has already bound to that port. Visual Studio will launch the IISExpress.exe process (which will fail to bind to the port and exit again) and then attach to the now-terminated process, resulting in the above error.

    To check, note the port number in your project settings (e.g. 12116) and then try:

    netstat -ano | find "12116"
    

    If another process has the port open, this will give its PID. You can then choose to kill the offending process or reallocate your own port number.

    0 讨论(0)
  • 2020-11-28 02:35

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

    0 讨论(0)
  • 2020-11-28 02:37

    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

    0 讨论(0)
  • 2020-11-28 02:37

    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

    0 讨论(0)
  • 2020-11-28 02:37

    Close VS. Navigate to the folder of the solution and delete the hidden .vs folder. Restart VS. Hit F5 and IIS Express should load as normal, allowing you to debug.

    If this not working, then:

    1. right click your solution and go to properties

    2. Click left menu Web tag

    3. Click checkbox "Override application root Url"

    and run again your project.

    0 讨论(0)
  • 2020-11-28 02:38

    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!

    0 讨论(0)
提交回复
热议问题