title: Getting error "Unable to get the process ID of the IIS application pool 'xyz' hosting project 'abc'" when running ASP.Net core app from Visual Studio
body: <p>I have an ASP.Net core app hosted by my localhost IIS server. I can run it without issue by pointing the browser to the IIS site. But when I try to run it from Visual Studio in debug mode, I am getting this error &quot;Unable to get the process ID of the IIS application pool 'DEV_MVC' hosting project 'MvcClient'&quot;, where DEV_MVC is the app pool I am targeting and MvcClient is my project name. Here is the app pool as shown in IIS manager
  <a href="https://i.stack.imgur.com/Xv9uB.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Xv9uB.png" alt="enter image description here" /></a></p>
  <p>and here is the application contained in that app pool
  <a href="https://i.stack.imgur.com/TR5X0.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/TR5X0.png" alt="enter image description here" /></a></p>
  <p>here is how I have my MvcCleint project configured
  <a href="https://i.stack.imgur.com/S7y2K.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/S7y2K.png" alt="enter image description here" /></a></p>
  <p>Can somebody show me what I am missing here?</p>