Use this tag for questions about Machine.config, a configuration file used by various incarnations of the .NET Framework. Questions should also be tagged with the appropriate framework, for example [.net].
Questions tagged [machine.config]
121 questions
3
votes
1 answer
ASP.net machine config file
If I put configuration settings (like membership provider) DB Connnection, etc. in the
"machine.config", and remove the "web.config" file from my current application, will my application work without any trouble? Is it an accepted practice in .NET?

user274364
- 1,797
- 2
- 20
- 27
3
votes
1 answer
About Security of machinekey
We have a scenario using asp.net Forms Authentication in a web farm and need to setup identical sections on each servers .config file.
Is it better to store the section in machine.config rather then web.config? what's…

Claysson
- 349
- 1
- 4
- 10
3
votes
3 answers
API to modify the machine.config file - 'DbProviderFactories' section can only appear once per config file
I've recently encountered the following error on a client machine:
The 'DbProviderFactories' section can only appear once per config file.
It appears that the machine config contains a duplicate DbProviderFactories element.
…

bobbo
- 845
- 2
- 14
- 24
3
votes
1 answer
How to update both 32 & 64 bit machine.config
Our solution is a suite of windows and web services that can all run on one machine or be fully distributed.
We need only one piece of config to tie all of these together (it happens to be a RabbitMq endpoint but that's not important).
Some of our…

Binary Worrier
- 50,774
- 20
- 136
- 184
3
votes
1 answer
Clearing DbProviderFactories in App.config
I have an App.config where I would like to replace the provider specified in machine.config with a different version of the provider. I have tried removing the provider by name with remove and have now tried removing them all with clear.
This…

Brian
- 6,910
- 8
- 44
- 82
3
votes
1 answer
ClickOnce error message 'Access to the path 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Config\machine.config' is denied'
Our ClickOnce application has been working fine. However, one of our users gets the following error:
+ Configuration system failed to initialize
+ An error occurred loading a configuration file: Access to the path…

PeterX
- 2,713
- 3
- 32
- 42
3
votes
1 answer
How can I enable by default on Windows Azure?
It seems that using is an accepted best practice for ASP.NET applications, but it does not seem to be enabled by default on Windows Azure. Is it possible to enable by default on Web Roles and/or Web Sites?

Mack Male
- 77
- 1
- 6
3
votes
1 answer
.NET using wrong 2.0 machine.config instead of 4.0
I have a .NET web application install on IIS 7.0 Windows Server 2008 R1. I have installed .NET 4.0 on the server and configured an app pool for 4.0 and integrated pipeline. For some reason I am getting the following error:
(500.19) The…

user1661270
- 31
- 2
2
votes
0 answers
Multiple versions of same GAC'ed assembly, how to handle custom configurationSection in machine.config
I have an assembly with two different versions (v1 and v2). Both versions of these assemblies have a custom ConfigurationSection. We set portions of this configuration section at the machine.config level. Everything works as you would expect for…

Jay
- 2,644
- 1
- 30
- 55
2
votes
1 answer
Opening the machine/base Web.Config (64bit) through code
I am looking to write code to open and edit the base web.config files for a machine (as part of an installer for an HttpModule).
the files i want to edit are located commonly at:
C:\Windows\Microsoft.NET\Framework\v2.0.50727\CONFIG\web.config …

Doug
- 6,460
- 5
- 59
- 83
2
votes
3 answers
How do I modify machine.config via an .msi package
I'm trying to create an installer that will deploy a .NET Managed data provider. In order for the data provider to appear as a provider in application drop-downs, I have to add the provider in the machine.config's section:
…

Eli
- 1,315
- 1
- 16
- 29
2
votes
0 answers
override machine.config by web.config HttpRuntime tag
I have problem related about
I am trying to deploy an MVC5 Website to an IIS Server, but…

user1870169
- 33
- 4
2
votes
1 answer
AppCmd: Framework vs Framework64
I have a batch of new server getting installed and I'm finally trying to automate as much of at process as possible. Part of that includes making some changes to machine.config, like setting configSource on connectionStrings and setting the machine…

claco
- 739
- 1
- 8
- 18
2
votes
0 answers
IIS HTTP Response Header unique to each server using Shared Configuration
I am running a web farm using shared config and would like to add something to every response to identify which node in the farm it has come from.
I was of the understanding that the inheritance of IIS configurations would mean that I could add my…

Matt
- 1,436
- 12
- 24
2
votes
1 answer
WCF errors in VS 2010/.Net 4 using sample publish/subscribe app from IDesign website
I am attempting to compile/run a sample WCF application from Juval Lowy's website (author of Programming WCF Services & founder of IDesign). The application is an example of a publish/subscribe 'traffic-light' application that requires using VS…

Bill
- 335
- 1
- 4
- 21