this is NOT an IIS problem. I've since found that a VC 6.0 C++ executable
running outside IIS doesn't see new sys env var settings either. I've moved
this discussion over to microsoft.public.vc groups.
chris
"chris" <od488gw02.TakeThisOut@sneakemail.com> wrote in message
news:c452700a.0308231254.360aa07b@posting.google.com...
> On win2k, I have a CGI Visual C++ executable that does a GetEnv.
>
> My problem is that I cannot get IIS to read new environment
> variables/values NO MATTER WHAT, without PC re-boot.
>
> I'm using SETX.EXE utility to change the SYSTEM env vars. After
> running setx, I can verify that the system vars do exist or have
> changed.
>
> After changing or adding a SYSTEM env var, I've tried the following to
> force IIS to read new value:
>
> 1) Run IISRESET from GUI AND command line. Still can't see new env
> variable.
>
> 2) Manually stop w3svc and IISadmin service, stop IIS web server,
> restart all. Still can't see new environment variable.
>
> I now suspect that the IIS metabase somehow has to be forced to
> refresh/reload. Is there a way to do this? Any other ideas?
>
> thanks, chris<!-- ~MESSAGE_AFTER~ -->
>> Stay informed about: system env vars aren't reflected with IIS 5.0, without re-..