Tuesday, November 10, 2009

Changing aspnet_wp user in IIS 5.1

It's possible that no one will ever have to work with IIS 5.1 in XP again, but here you go just in case:

We needed the asp.net worker process (aspnet_wp.exe) to access a share on a remote machine. By default the "Netowrk Service" runs aspnet_wp and that user doesn't have access to remote shares. The way to change this is by changing the "processModel" attribute in your machine.config file (c:\windows\microsoft.net\framework\v2*\config\machine.config).

Mine ended up looking something like this:

<processModel userName="DOMAIN\username" password="password" autoConfig="true">

Just make sure to restart IIS for the changes to take effect.


Paul Stokes said...

I'll probably be the only one, but I wanted to let you know that this small gem saved me a ton of time!


Tom Hazel said...

Happy to help!