title | description | ms.date | ms.topic | dev_langs | helpviewer_keywords | author | ms.author | manager | ms.subservice | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Run a worker process under a user account |
Set up your computer so that you can run the ASP.NET worker process (aspnet_wp.exe or w3wp.exe) under a user account in Visual Studio. |
11/04/2016 |
how-to |
|
|
mikejo5000 |
mikejo |
mijacobs |
debug-diagnostics |
To set up your computer so that you can run the ASP.NET worker process (aspnet_wp.exe or w3wp.exe) under a user account, follow these steps.
Important
Starting with Windows Server 2008 R2, we recommend the use of the ApplicationPoolIdentity as the identity for each application pool.
-
Open the machine.config file, located on your computer in the CONFIG folder under the path where you installed the runtime.
-
Find the <processModel> section and change the user and password attributes to the name and password of the user account you want aspnet_wp.exe to run under.
-
Save the machine.config file.
-
On Windows Server 2003, IIS 6.0 is installed by default. The corresponding worker process is w3wp.exe.To run in IIS 6.0 mode with aspnet_wp.exe as the worker process, you must follow these steps:
-
Click Start, click Administrative Tools and then choose Internet Information Services.
-
In the Internet Information Services dialog box, right-click the Web Sites folder and choose Properties.
-
In the Web Sites Properties dialog box, choose Service.
-
Select Run WWW service in IIS6.0 isolation mode.
-
Close the Properties dialog box and Internet Services Manager.
-
-
Open a Windows Command Prompt and reset the server by running:
iisreset
— or —
net stop iisadmin /y net start w3svc
-
Locate the Temporary ASP.NET Files folder, which should be in the same path as the CONFIG folder. Right-click the Temporary ASP.NET Files folder and choose Properties on the shortcut menu.
-
In the Temporary ASP.NET Files Properties dialog box, click the Security tab.
-
Click Advanced.
-
In the Advanced Security Settings for Temporary ASP.Net Files dialog box, click Add.
The Select User, Computer, or Group dialog box appears.
-
Type the user name in the Enter the object name to select box, and then click OK. The user name must follow this format: DomainName\UserName.
-
In the Permission Entry for Temporary ASP.NET Files dialog box, give the user Full Control, and then click OK to close the Entry for Temporary ASP.NET Files dialog box.
-
A Security dialog box will appear, and asks if you really want to change the permissions on a system folder. Click Yes.
-
Click OK to close the Temporary ASP.NET Files Properties dialog box.