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

Visual Studio-2013Iis Express

Visual Studio-2013 Problem Overview


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 time there is different ID number showing

and in the error windows I get this error msg:

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

Sometimes it runs and in the browser i get the following message : The webpage is not available.

I have looked around and try almost everything and I stil cannot fix the problem.

Please help anyone

Visual Studio-2013 Solutions


Solution 1 - Visual Studio-2013

The following steps fix the problem for Visual Studio 2015 and Visual Studio 2017:

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

> Note: Based on my experience and others in the comments, this problem seems to be caused by moving a project between workstations, environments, or versions of Visual Studio. There must be some environment specific information contained in the .vs folder.

Solution 2 - Visual Studio-2013

Easily solved:

  1. Open Visual Studio as an administrator

  2. Right-click your project and click on 'Unload Project'

  3. Again, right-click your project and click on 'Edit PROJECT_NAME.csproj'

  4. Find the code below and delete it:

     <DevelopmentServerPort>63366</DevelopmentServerPort>
     <DevelopmentServerVPath>/</DevelopmentServerVPath>
     <IISUrl>http://localhost:63366/</IISUrl>
    
  5. Save and close the file .csproj

  6. Right-click your project and reload it

  7. See its working

Solution 3 - Visual Studio-2013

First Error

For the first error:

> Process with an ID #### is not running.

The following steps worked for me:

  1. Close all instances of Visual Studio.
  2. Rename the IISExpress folder (in my PC is in C:\Users\jmelosegui\Documents).
  3. Add the _CSRUN_DISABLE_WORKAROUNDS Environment System variable with the value of 1. enter image description here
  4. Start Visual Studio in administrator mode. (In Windows, right click the executable file and select Run as administrator).

Second Error

The second error:

> The webpage is not available

What caused this error:

I deleted IIS Express Development Certificate while playing with the SSL.

The following steps worked for me:

  1. Go to Control Panel.
  2. Select Add/Remove Programs.
  3. Locate IIS 8.0 Express.
  4. Right click on it then click Repair.
  5. Your certificate should be back!

Hope this helps!

Solution 4 - Visual Studio-2013

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.

Solution 5 - Visual Studio-2013

If you are using a 64-bit machine

Then the problem maybe due to Visual Studio use of 32-bit IIS-Express.

Solution: In Visual Studio, go to Tools menu > Options > Projects and Solutions > Web Projects > Enable the option "Use the 64 bit version of IIS Express" and click ok

Solution 6 - Visual Studio-2013

I had the same problem. Just restarting Visual Studio worked for me.

Solution 7 - Visual Studio-2013

@Kilanny your answer is correct. Most machines in 2015 are 64bit, so there's a lot of chances that you just need to enable the 64bit option under the Tools main navigation link menu. No need to configure other files or hard code ports. Besides, port assignment should be dynamic. This fix applies to 2013 With Update 3 and Visual Studio 2015 Community Edition.

Check the images below for a mini tutorial: (I'm just improving Kilanny's answer)

Visual Studio Tools Menu

Visual Studio Web Project Options

Solution 8 - Visual Studio-2013

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>

Solution 9 - Visual Studio-2013

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

Solution 10 - Visual Studio-2013

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.

Solution 11 - Visual Studio-2013

My fix was simple, I was missing prerequisites. I needed to install .NET Core SDK

Solution 12 - Visual Studio-2013

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.

Solution 13 - Visual Studio-2013

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

Solution 14 - Visual Studio-2013

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.

Solution 15 - Visual Studio-2013

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.

Solution 16 - Visual Studio-2013

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.

Solution 17 - Visual Studio-2013

Reboot your computer before trying any of these!

Some of these may be helpful. Doing the netstat trick

netstat -ano | find

helped me as another application was using my port, but didn't completely solve my problem. IIS Express still kept crashing. It wasn't until I rebooted my win 10 PC (first time in over a week), that my problem completely cleared up.

Solution 18 - Visual Studio-2013

My solution to this on a new machine and fresh install of VS 2022 was to install the 3.1 framework. So check to make sure whatever framework the project is expecting is installed on your local machine.

Solution 19 - Visual Studio-2013

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.

Solution 20 - Visual Studio-2013

I had a similar issue, but mine was the presence of deleted image files in the drive.

I removed it, deleted .vs hidden folder, now it works

Solution 21 - Visual Studio-2013

For me this was the solution,

  1. Close all running Visual studio instances
  2. Open the solution folder and remove the .vs folder (hidden folder)
  3. Open Run Command
  4. Type iisreset and press Ok, and you may see a command prompt and wait for it to complete and it will close automatically

Now Open visual studio and run your project, it should run.

Solution 22 - Visual Studio-2013

So, nothing worked for me and this happened to happen to me when I got a new machine. Apparently it didn't have the older versions of .Net on it. Went into VS Installer and checked the box for .Net 5 Runtime (VS 2022). Working fine now on all .Net 5 Projects.

Solution 23 - Visual Studio-2013

Another reason this can happen is for a .NET Core Web app if you upgrade the Microsoft.AspNetCore.Components.* NuGet package to a new version but don't install the new SDK,

In my case it was upgrading Microsoft.AspNetCore.Components.WebAssembly from 6.0.0 to 6.0.1 and didn't install .NET 6.0.1 SDK

Solution 24 - Visual Studio-2013

TL;DR: if you do have the right .NET Core (or .NET I guess) runtime installed, install any patch updates or reinstall the latest version if there aren't any.

Detail: Similar to a couple of other answers where they just didn't have the right .NET core installed. I was trying to run a .NET Core 3.1 web app which had worked fine previously for months, and this suddenly started happening.

I did have 3.1 (runtimes 3.1.21 and 3.1.22) installed. However a new one (3.1.23) had been released 12 days earlier, and installing that fixed the problem.

I have no idea if this was because it's aware that there's a new patch and I didn't have it so it wouldn't run, or if there was just something wrong with my 3.1.22 installation. Worth trying installing latest patch, or reinstalling existing installations.

Solution 25 - Visual Studio-2013

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

Solution 26 - Visual Studio-2013

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

Solution 27 - Visual Studio-2013

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!

Solution 28 - Visual Studio-2013

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.

Solution 29 - Visual Studio-2013

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

Computer restarted.

worked for me!

Solution 30 - Visual Studio-2013

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.

Solution 31 - Visual Studio-2013

Tried most of the things here to no avail, but finally found a fix for my machine, so thought I'd share it:

Following previous advice in another question, I had used netsh to add :: to iplisten. It turns out undoing that was my solution, by simply replacing add in their advice:

netsh http delete iplisten ipaddress=::

You can also do this manually by deleting HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\HTTP\Parameters\ListenOnlyList from the registry and restarting the service/your PC.

Solution 32 - Visual Studio-2013

I update my Visual Studio to 2019 version and has this problem, I tried all solution from this question but it doesn't help to start my ASP.NET MVC 5 project with IIS Express. After I remove IIS Express (using Control Panel), download last version from www.microsoft.com and install it. After this everything works fine.

After some weeks i got update for Visual Studio and I got this problem again. I remove IIS Express and reinstall and it works fine now. p.s. repair didn't help me, only uninstall and install.

Solution 33 - Visual Studio-2013

Found the solution!

I had something similar:

It took a while to figure this out. Have tried:

1. Reinstalling the whole VS2019 web development environment
2. Deleting `%userprofile%\Documents\IISExpress`
3. Deleting projects' `.vs` folders
4. Removing `IIExpress 10` from `Programms` in Win10
5. Changing projects' settings/properties

The main problem was a registry entry Start located at

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\HTTP

So, changing value of a key Start from 4 to 3 and rebooting fixed the issue.

One of possible reason I would recall is running the Laragon which required changing this value to 4 to start an Nginx web server.

Solution 34 - Visual Studio-2013

I have the same problem. Here are some of the things I've done that haven't worked:

  1. Delete the .vs folder in my project
  2. Delete the IIS Express folder in My Documents
  3. Add _CSRUN_DISABLE_WORKAROUNDS to environment variable
  4. Restart the computer
  5. Restart Visual Studio
  6. Change the port
  7. Even re-install visual studio
  8. Uninstall IIS 10.0 Express via Control Panel, then reinstall

I've tried almost all the solutions I got from several forums and none of them have worked.

Finally I found the source of the problem. The source of the problem is not from my project nor from my visual studio, but from my IIS.

When I open iisexpress.exe from C:\Program Files\IISExpress, the command prompt closes immediately. If your IIS Express is fine, then what will appear is as shown below.

iisexpress.exe if success

What I do is reset or reinstall IIS Express via Turn Windows Features on or off in Control Panel. And follow the step by step contained in the following link

> My Worked Solution

This is the only way that worked for me, and hopefully it will help the others too.

Solution 35 - Visual Studio-2013

I encountered this while trying to run a project I'd run many times on a machine I'd used for the project many times. Cleaning up my IIS Express directory and my .vs directory didn't work, nor did setting environment variables. I even tried re-cloning my repository to a different folder, but no success.

By trying to run via command line, I found a more useful message:

dotnet run --project [startup project path]

I saw that the project was trying to run using .NET 6.0.5, but I only had .NET 6.0.4 installed. Installing the latest .NET 6.0.5 from the Microsoft website worked.

Solution 36 - Visual Studio-2013

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!

Solution 37 - Visual Studio-2013

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

Solution 38 - Visual Studio-2013

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!

Solution 39 - Visual Studio-2013

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

Solution 40 - Visual Studio-2013

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.

Solution 41 - Visual Studio-2013

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)

Solution 42 - Visual Studio-2013

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

Solution 43 - Visual Studio-2013

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

Solution 44 - Visual Studio-2013

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.

Solution 45 - Visual Studio-2013

In my situation Adobe was using the same port. After stopping the Adobe Creative Cloud Desktop process, VS functioned as expected.

Solution 46 - Visual Studio-2013

In my case first I have installed the visual studio 2022 version then I have tried to run my existing .net core application it was throwing the error process with id ... then I have install the visual studio 2019 then the project ran perfectly without the error after that without done nothing visual studio 2022 also working fine.

Solution 47 - Visual Studio-2013

So mine was different again. I'd uninstalled VS 2017 as I'd upgraded to 2022 and didn't have .NET Core 3.1 installed. The clue was in the console which told me that it could only find .NET 6 installed.

I simply insatalled 3.1 via the VS 2022 installer.

Solution 48 - Visual Studio-2013

If nothing works, then RESTART YOUR COMPUTER :)

It worked for me.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionBeslinda N.View Question on Stackoverflow
Solution 1 - Visual Studio-2013theyetimanView Answer on Stackoverflow
Solution 2 - Visual Studio-2013ali abidView Answer on Stackoverflow
Solution 3 - Visual Studio-2013Juan M. EloseguiView Answer on Stackoverflow
Solution 4 - Visual Studio-2013uglybuggerView Answer on Stackoverflow
Solution 5 - Visual Studio-2013user586399View Answer on Stackoverflow
Solution 6 - Visual Studio-2013Martin StaufcikView Answer on Stackoverflow
Solution 7 - Visual Studio-2013Full ArrayView Answer on Stackoverflow
Solution 8 - Visual Studio-2013Manuel AlvesView Answer on Stackoverflow
Solution 9 - Visual Studio-2013Chris CatignaniView Answer on Stackoverflow
Solution 10 - Visual Studio-2013Alec BuchananView Answer on Stackoverflow
Solution 11 - Visual Studio-2013thatOneGuyView Answer on Stackoverflow
Solution 12 - Visual Studio-2013EricksonGView Answer on Stackoverflow
Solution 13 - Visual Studio-2013Fabian BView Answer on Stackoverflow
Solution 14 - Visual Studio-2013LaurenceView Answer on Stackoverflow
Solution 15 - Visual Studio-2013ransemsView Answer on Stackoverflow
Solution 16 - Visual Studio-2013muhammet gürbüzView Answer on Stackoverflow
Solution 17 - Visual Studio-2013Dan CsharpsterView Answer on Stackoverflow
Solution 18 - Visual Studio-2013JIntroView Answer on Stackoverflow
Solution 19 - Visual Studio-2013user7138697View Answer on Stackoverflow
Solution 20 - Visual Studio-2013Arun Prasad E SView Answer on Stackoverflow
Solution 21 - Visual Studio-2013Dilan WickramarathnaView Answer on Stackoverflow
Solution 22 - Visual Studio-2013Kylar182View Answer on Stackoverflow
Solution 23 - Visual Studio-2013dbmullerView Answer on Stackoverflow
Solution 24 - Visual Studio-2013jsabrookeView Answer on Stackoverflow
Solution 25 - Visual Studio-2013MinView Answer on Stackoverflow
Solution 26 - Visual Studio-2013quilkinView Answer on Stackoverflow
Solution 27 - Visual Studio-2013NebulaView Answer on Stackoverflow
Solution 28 - Visual Studio-2013SherlockView Answer on Stackoverflow
Solution 29 - Visual Studio-2013Emrullah KorkusuzView Answer on Stackoverflow
Solution 30 - Visual Studio-2013LenView Answer on Stackoverflow
Solution 31 - Visual Studio-2013StormFooView Answer on Stackoverflow
Solution 32 - Visual Studio-2013Константин ЗолинView Answer on Stackoverflow
Solution 33 - Visual Studio-2013FaitherView Answer on Stackoverflow
Solution 34 - Visual Studio-2013Ruddy CahyantoView Answer on Stackoverflow
Solution 35 - Visual Studio-2013A NView Answer on Stackoverflow
Solution 36 - Visual Studio-2013bgibbs17View Answer on Stackoverflow
Solution 37 - Visual Studio-2013khallaView Answer on Stackoverflow
Solution 38 - Visual Studio-2013RDuttonView Answer on Stackoverflow
Solution 39 - Visual Studio-2013PhillyNJView Answer on Stackoverflow
Solution 40 - Visual Studio-2013Greg R TaylorView Answer on Stackoverflow
Solution 41 - Visual Studio-2013lukyerView Answer on Stackoverflow
Solution 42 - Visual Studio-2013Maria QumayoView Answer on Stackoverflow
Solution 43 - Visual Studio-2013Simon_WeaverView Answer on Stackoverflow
Solution 44 - Visual Studio-2013jmrpinkView Answer on Stackoverflow
Solution 45 - Visual Studio-2013Some Guy With a PCView Answer on Stackoverflow
Solution 46 - Visual Studio-2013Hoque MD ZahidulView Answer on Stackoverflow
Solution 47 - Visual Studio-2013Guy LoweView Answer on Stackoverflow
Solution 48 - Visual Studio-2013kgzdevView Answer on Stackoverflow