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?
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.
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
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
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.
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With