Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

system env vars aren't reflected with IIS 5.0, without re-..

 
   Web Hosting and Web Master Forums (Home) -> IIS RSS
Next:  Confused with the use of out-of-process component  
Author Message
od488gw02

External


Since: Sep 08, 2003
Posts: 2



(Msg. 1) Posted: Sat Aug 23, 2003 4:54 pm
Post subject: system env vars aren't reflected with IIS 5.0, without re-boot
Archived from groups: microsoft>public>inetserver>iis (more info?)

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

 >> Stay informed about: system env vars aren't reflected with IIS 5.0, without re-.. 
Back to top
Login to vote
anilr1

External


Since: Aug 28, 2003
Posts: 6



(Msg. 2) Posted: Fri Aug 29, 2003 1:39 pm
Post subject: Re: system env vars aren't reflected with IIS 5.0, without re-boot [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

IIS (inetinfo.exe) is launched by services.exe which does not pick up system
environment variable changes until reboot, the reason all the executables
you launch interactively pick up the changes is because they are alunched by
explorer.exe which picks them up on the fly.
--
This posting is provided "AS IS" with no warranties, and confers no rights.

"chris" <od488gw02.RemoveThis@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-.. 
Back to top
Login to vote
user684

External


Since: Aug 29, 2003
Posts: 1



(Msg. 3) Posted: Fri Aug 29, 2003 3:25 pm
Post subject: Re: system env vars aren't reflected with IIS 5.0, without re-boot [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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-.. 
Back to top
Login to vote
Display posts from previous:   
   Web Hosting and Web Master Forums (Home) -> IIS All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]