Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Changing a value in the machine.config

What is the effect of changing a value in the machine.config file? Will this trigger the equivalent of IISReset on the machine? If not, will a running application immediately pick up new values added to this file?

like image 940
Guy Avatar asked Sep 15 '09 22:09

Guy


People also ask

What are the machine configuration settings?

Machine configuration settings apply to the whole computer and all applications that reside on it, unless overridden for the local application. Machine configuration settings are read from the Machine.config file of the currently running version of the .NET Framework.

How to open machine config in PowerShell?

Open Windows Run command. Shortcut=> windows key + r Open "Framework"/"Framework64" folder (based on your processor). Machine.config will be available there. Cheers. This is a late reply, but if anyone is still looking to open machine.config and view/update configs, here's an example with IIS config using powershell

Is it possible to access the machine config file?

It is not possible to access the Machine.config file for other versions of the .NET Framework that might be installed on the computer. 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8

How do I update a configuration file?

To update a configuration file, your code must additionally have write permissions for both the configuration file and the directory in which it exists. It is not possible to access the Machine.config file for other versions of the .NET Framework that might be installed on the computer.


2 Answers

Editing the machine.config will cause all AppDomains to recycle on the server. For all intents and purposes, it's the same as an IIS reset from an ASP.Net application's point of view. An IIS full reset does accomplish a bit more though.

Note that editing the web.config file for an application will only cause that application's AppDomain worker process to recycle, not the entire server.

like image 90
womp Avatar answered Sep 23 '22 01:09

womp


Just wanted to say, there is one exception from the auto-value-pickup behaviour from MSDN: The IIS server does not have to be restarted for the changes to take effect unless the processModel section has been changed

BenS

like image 34
BenS Avatar answered Sep 22 '22 01:09

BenS