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
78
votes
7 answers
The remote server returned an error: (407) Proxy Authentication Required
I'm getting this error when I call a web service:
"The remote server returned an error: (407) Proxy Authentication Required".
I get the general idea and I can get the code to work by adding
myProxy.Credentials = NetworkCredential("user", "password",…

chris
- 821
- 1
- 6
- 5
28
votes
6 answers
Connection Strings for Entity Framework
I want to share same Database information across multiple entities in Silverlight.. but I want the connection string to be named xyz and have everyone access that connection string from machine.config...
The meta data part of the entities will be…

Rico
- 1,258
- 4
- 17
- 35
21
votes
4 answers
Adding machineKey to machine.config
I would like to add the machineKey to my machine.config since I am working with programmatic encryption of web.config connection strings in a web farm scenario.
My question is, where do I place the machineKey in the machine.config file? There isn't…

Rami Alhamad
- 281
- 1
- 3
- 9
12
votes
3 answers
Unable to modify machine.config file
I want to improve performance of my ASP.NET web application and want to change "processModel" tag in machine.config. But I am unable to modify "machine.config" file located at framework directory. Though I have disabled "readonly" permission for the…

kanna
- 151
- 1
- 1
- 4
12
votes
2 answers
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?

Guy
- 65,082
- 97
- 254
- 325
9
votes
2 answers
Is Forms Authentication Ticket safe enough?
When a user logs in based on default Forms Authentication method, the server creates a cookie containing encrypted data (using Machine Key as key for encryption).
It means that if someone find/guess/access Machine Key for the server, he will be…

Amir Pournasserian
- 1,600
- 5
- 22
- 46
9
votes
2 answers
how to set enableVersionHeader to false globally on IIS7
I've got several dozen sites that I wish to lock down running ASP.Net and part of the job is to turn off the bloody headers (saying what version of ASP.Net is running). This involves going to each and every web.config file and setting

MC9000
- 2,076
- 7
- 45
- 80
9
votes
4 answers
The 'DbProviderFactories' section can only appear once per config file
We are receiving this error when calling a WCF .net 4.0 service using entity framework.
The 'DbProviderFactories' section can only appear once per config file
It is the first app on the server using EF and other .net 4.0 WCF services are not…

Chad
- 1,512
- 1
- 16
- 40
8
votes
1 answer
machine.config appSettings are null
In my machine.config file I have the following
....
I am trying to retrieve it on an asp page by…

harryovers
- 3,087
- 2
- 34
- 56
7
votes
1 answer
machine.config processModel autoConfig="true or false" for Explicit values in .net 4.0
Hi I want to update processModel of my Server's machine.config file. Currently its value is as below:
I want to update it with below new changes:

Ashar
- 181
- 1
- 1
- 6
6
votes
2 answers
I have two machine.config files on my server, which one do I edit and how do I verify they are being used?
I need to do some performance tuning and need to modify the following settings: processModel, httpRuntime, and connectionManagement. Simple enough I suppose, but I'm not sure which of the two machine.config files to edit, or do I edit…

John
- 9,254
- 12
- 54
- 75
6
votes
3 answers
IIS 7.5 - Change Application Pool Start Mode to Always Running
I have IIS 7.5 and I have installed the Application Initialization Module for it. Now, I am trying to change the StartMode of an application pool, but do not see the StartMode option in the IIS Manager. I have looked under Basic and Advanced…

ADH
- 2,971
- 6
- 34
- 53
6
votes
1 answer
appSettings not being read from machine.config in Vista
I've recently moved up to Vista x64, and suddenly, my machine.config appSettings block isn't being read by any .NET assemblies.
Right after configSections, and before configProtectedData in…

Chris Doggett
- 19,959
- 4
- 61
- 86
5
votes
1 answer
machine.config' is denied
My application is running on windows server 2000 and IIS 6.
Up until this morning the application was working fine. But now I'm getting the error below:
Configuration Error
Description: An error occurred during the processing of a configuration…

slash shogdhe
- 3,943
- 6
- 27
- 46
5
votes
2 answers
Updating .net 4.0 machine.config seems to have no effect
I'm feeling stupid.
I've just created my first ASP.net 4.0 site after working my way though over the years from 1.1 upwards. We have several settings at the machine.config level that I need to migrate to the new 4.0 machine.config. I though I had be…

Jon P
- 19,442
- 8
- 49
- 72