Machine.config changes

  • Thread starter Thread starter Mike Newton
  • Start date Start date
M

Mike Newton

Hi,

I modified the machine.config file to lengthen the
system.web->processModel->responseDeadlockInterval to 15 minutes from 3.
I'm wondering if the changes made to machine.config go into effect
immediately, or will I have to restart IIS?

Mike
 
AFAICT, they go into effect immediately. You shouldn't have to restart IIS
for config files changes.

Hope this helps!
 
You need to restart IIS. Because, that part is not read by the managed code
but the unmanaged aspnet_isapi.dll.
 
I must respectively disagree. ASPNET_WP runs independently of IIS, so there
is no need to restart IIS when only making changes to a config file. You
have to restart the web application itself to create a new Application that
will use the new configuration.

At worst, you would kill ASPNET_WP and let it restart on its own. This
would only affect ASP.NET applications and would not affect any other
websites hosted by IIS.

You may be right, but this has not been my experience. If you or anyone
else could enlightened me if I'm incorrect, I would greatly appreciate it.

Thanks!
 
The aspnet_wp process doesn't die, since it is continuously being used.
IIS is it's parent process, though. Killing the process in a
production environment is not a wise idea, there are a number of mission
critical applications that are dependant upon their session states being
persisted. The majority of my sites are ASP.NET based.

It is better to restart IIS at a time where the server load is low,
which automatically kills the aspnet_wp process. IIS will then spawn
that process at the next time an ASP.NET app is spawned.

The reason why I asked the question is that I didn't know if the process
re-loaded the configuration or not. After some searching, it appears
that the configuration is loaded only when the process spawns. The
specific part (processModel) pertains directly to the aspnet_wp process
itself, and can't be included in a web.config file, for instance. I
wouldn't say that the structure of the machine.config file is designed
very well, since there are a number of reconfigurable elements in there
that can be included in the web.config file, but some can't.
 
Back
Top