John Lam 1997 — 2026

Recycling w3wp.exe and non-admin development on Win2K3

First observation: I still have to recycle the IIS worker process (now w3wp.exe instead of aspnet_wp.exe) in Win2K3 during development. This is due to the fact that my security code lives in strong-named assemblies. These assemblies are deployed into the GAC where, by default (I’m going to lock this down later), they have Full Trust.

Unfortunately (or fortunately, depending on your point of view) ASP.NET loads all GAC-installed assemblies as domain-neutral assemblies. This forces me to recycle the w3wp.exe worker process EVERY time that I recompile my security code. Sometimes I forget … which means I’m tracking down bugs that aren’t really there because I fixed them already. It would so rock if ASP.NET would have a flag that doesn’t load GAC-installed assemblies as domain-neutral assemblies. This flag would be dangerous in the general (say, ISP) case, but would rock for local development.

Second observation: it’s much easier to run as a non-admin under Win2K3. But to do ASP.NET debugging, there’s a subtle trick. First, you want to either reconfigure the Default App Pool to run under your login, or create a new App Pool that runs under your login. Next, (and this was the part that I missed out on initially), you must add your account to the IIS_WPG (IIS Worker Process Group) group. Once you have done this, you can safely take your account out of the Local Administrator’s group and you will be running with non-administrator goodness AND you’ll be able to debug your ASP.NET apps. This is much better (and far more secure) than things were with WinXP/Win2K.

2 archived reader comments

Tor (2003-09-12)

Wow. This certainly makes the idea of running Windows 2003 on the desktop more appealing. The non-admin-friendliness, that is. I’m still having doubts, however, regarding compatibility with third-party software. I hope you will continue blogging about your experiences, because it would be great if you could convince me :-)

Mike Richardson (2003-09-14)

You should consider writing a book, perhaps an in-depth intense view of asp.net