Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to attach to IIS process (w3wp.exe) on Windows 10/IIS 10?

Using Visual Studio 2013 in Windows 8.1, I've been used to debug applications hosted in IIS by attaching to the w3wp.exe process running the Application Pool.

After upgrading from 8.1 to 10, I can no longer see any w3wp.exe processes in the Attach to Process dialog even if the Show processes from all users checkbox is checked.

What is the process name for application pools in IIS 10? Maybe there's another way to debug IIS applications in Windows 10?

UPDATE: The issue was that all w3wp.exe processes had stopped. Simply hitting the URL by a browser again started the w3wp.exe process, and I was able to debug as usual.

like image 920
Eivind Gussiås Løkseth Avatar asked Aug 18 '15 12:08

Eivind Gussiås Løkseth


People also ask

What is w3wp exe IIS worker process?

“An Internet Information Services (IIS) worker process is a Windows process (w3wp.exe) which runs web applications, and is responsible for handling requests sent to a web Server for a specific application pool.”

Where do I find w3wp exe?

Via the Windows Task Manager, you can see processes named w3wp.exe. Within the IIS management console, you can view more details. Open IIS manager and on the left side click on the name of your computer. You will then see a similar list of icons on the right as shown in the screenshot below.

What is this file w3wp exe?

An Internet Information Services (IIS) worker process is a windows process (w3wp.exe) which runs Web applications, and is responsible for handling requests sent to a Web Server for a specific application pool. It is the worker process for IIS.


1 Answers

Open Visual Studio in Administrator Mode, then Debug -> attach to process -> tick the check box "Show processes from all user", select w3wp.exe. Administration mode is required for debugging the source code.

like image 57
Farah Nawaz Avatar answered Sep 28 '22 08:09

Farah Nawaz