OK, yeah, it looks like the process architecture on IIS6 is very different.
Try looking at the IIS Admin service, setting the envvars for that user,
and restarting that service as well as ASP.NET.
Jonathan
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
| X-Tomcat-ID: 768939107
| References: <OlXeeGzIEHA.3988@tk2msftngp13.phx.gbl>
<0iJ9ZX$IEHA.308@cpmsftngxa10.phx.gbl>
<#LwsiNAJEHA.624@TK2MSFTNGP09.phx.gbl>
| MIME-Version: 1.0
| Content-Type: text/plain
[quoted text clipped - 34 lines]
| | NNTP-Posting-Host: ip67.tonic.com 216.54.231.67
| | Path:
cpmsftngxa10.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP09
| .phx.gbl
| | Xref: cpmsftngxa10.phx.gbl microsoft.public.dotnet.framework.clr:10287
[quoted text clipped - 52 lines]
| | > | NNTP-Posting-Host: ip67.tonic.com 216.54.231.67
| | > | Path:
cpmsftngxa06.phx.gbl!TK2MSFTNGXA06.phx.gbl!TK2MSFTNGXA05.phx.gbl!TK2MSFTNGP0
| | > 8.phx.gbl!tk2msftngp13.phx.gbl
| | > | Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.clr:10213
[quoted text clipped - 23 lines]
| | > |
| | > | Brian
Brian Tyler - 20 Apr 2004 16:05 GMT
Unfortunately no luck.
The IIS Admin Service (inetinfo) is running under Local System and W3SVC
(iissvcs under svchost.exe) runs under Local System also. The ASP.NET
process (w3wp.exe) is run under Network Service (but I've tried Local System
also). Thus setting the envvars in SYSTEM should get them to all these
processes.
Here are the various techniques I used to try to "restart"
1. Used iisreset /restart
2. Used Services control to stop IIS Admin, W3SVC and HTTP SSL.
3. Used IIS Manager to stop the Default Application Pool and the Default Web
Site, and then started them again.
I am most surprised that iisreset didn't do the trick.
For grins, I rebooted the box with enable=1 and got the tracing running.
Then I set it to 0 and tried to see if I could get it to shut off (just in
case there was something funny with the tracing), but I couldn't get that to
work either. Definately the envvar not getting propogated into the right
process.
Brian
> OK, yeah, it looks like the process architecture on IIS6 is very different.
> Try looking at the IIS Admin service, setting the envvars for that user,
[quoted text clipped - 49 lines]
> | | NNTP-Posting-Host: ip67.tonic.com 216.54.231.67
> | | Path:
cpmsftngxa10.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP09
> | .phx.gbl
> | | Xref: cpmsftngxa10.phx.gbl microsoft.public.dotnet.framework.clr:10287
[quoted text clipped - 59 lines]
> | | > | NNTP-Posting-Host: ip67.tonic.com 216.54.231.67
> | | > | Path:
cpmsftngxa06.phx.gbl!TK2MSFTNGXA06.phx.gbl!TK2MSFTNGXA05.phx.gbl!TK2MSFTNGP0
> | | > 8.phx.gbl!tk2msftngp13.phx.gbl
> | | > | Xref: cpmsftngxa06.phx.gbl
[quoted text clipped - 28 lines]
> | | > |
> | | > | Brian
Brian Tyler - 24 May 2004 20:55 GMT
I've done some more research...
The following is a MS KB issue which indicates that services run under Local
System require a system reboot to see new env vars:
http://support.microsoft.com/default.aspx?scid=kb;en-us;821761
However, here is the result of some experiements I did. This shows that
under 2000, W3SVC does see the env var even though it is a service under
Local System. These are two virgin machines with 2000 and 2003 installed,
along with IIS, .NET 1.1 and all critical updates/service packs. The "test"
is an ASPX page that prints out the value of the env var I am looking for.
Windows 2000
============
1. Add Env Var through System dialog.
2. Run "test"
a. Nothing
3. Restart W3SVC, run "test"
a. Shows Env Var
Windows 2003
============
1. Add Env Var through System dialog
2. Run "test"
a. Nothing
3. Restart W3SVC, run "test"
a. Nothing
4. Recycle App Pool, run "test"
a. Nothing
5. Start/Stop Web Site, run "test"
a. Nothing
6. Start/Stop W3SVC, HTTPS, IIS Admin, run "test"
a. Nothing
7. Restart Box, run "test"
a. Shows Env Var
I also tried to get W3SVC to "run as" Administrator under 2003, but I
received an "Access Denied" error when I tried to start it up again. I don't
know what permission it is missing...