Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is w3wp.exe?

I have a WCF service running under a service user on my local system. Every time I try to debug it is giving me a message Attach Security warning.

In Visual Studio, by default (even without attaching), I get this error:

Attaching to this process can potentially harm your computer. If the information below looks suspicious or you are unsure, do not attach to this process

Name: C:\Windows\System32\inetsrv\w3wp.exe

What is w3wp.exe? According to a Google search, I think it is related to IIS. But what does it do? What setting should be changed so that this won't give this message everytime I try to debug on my local system?

like image 549
katie77 Avatar asked Oct 19 '11 14:10

katie77


People also ask

What is w3wp exe high memory?

In this scenario, the memory usage for the W3wp.exe worker process of Internet Information Services (IIS) increases. When the memory usage increases to a high value, you have to manually recycle the IIS application pool that the Commerce Server site runs.

How do I stop w3wp exe?

You need to run taskkill in an elevated command prompt.

How do I run a w3wp exe?

Open Visual Studio in Administrator Mode, then Debug -> attach to process -> tick the check box "Show processes from all user", select w3wp.exe.


2 Answers

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. Each application pool creates at least one instance of w3wp.exe and that is what actually processes requests in your application. It is not dangerous to attach to this, that is just a standard windows message.

like image 183
Chris Kooken Avatar answered Sep 28 '22 09:09

Chris Kooken


Chris pretty much sums up what w3wp is. In order to disable the warning, go to this registry key:

HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\10.0\Debugger 

And set the value DisableAttachSecurityWarning to 1.

like image 31
Zann Anderson Avatar answered Sep 28 '22 09:09

Zann Anderson