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
1
vote
2 answers
Contention, poor performance, and deadlocks when making Web service requests from ASP.NET
I have recently deployed a web application that makes use of many web service calls. During deveolpment I did not notice any deadlock or contention, but now when the website is live and heavily visited I get this error in my event log a couple of…

Martin at Mennt
- 5,677
- 13
- 61
- 89
1
vote
1 answer
Configure managed httpmodule from GAC to work both in Classic and Integrated modes
I've developed a custom managed HttpModule (.NET 2), installed it on GAC and added it in Modules section for IIS 8.5 globally.
For each website with Integrated mode this module is visible in it's Modules section as Inherited and it works as designed…

Reza Mortazavi
- 329
- 3
- 14
1
vote
1 answer
The best way to get a path to machine.config of a different .NET version
Whats the best way to get a path to .net 2.0 machine.config file, if the application is running on .net 4.0?
One way would be to do string manipulation and file system access to replace v4.0* with v2.0* in
new…

kateroh
- 4,382
- 6
- 43
- 62
1
vote
0 answers
How to set web config - machine config settings?
How to set web config - machine config settings:

Micheal
- 90
- 8
1
vote
1 answer
Unable to add behaviorExtension in machine.config via c#
My BizTalk application requires me to add a custom behaviorExtension to my machine.config file. I install my application via MSI, via BizTalk Deployment Framework (BTDF), so I would like this to be done programmatically as well.
Now I cannot seem to…

zurebe-pieter
- 3,246
- 21
- 38
1
vote
1 answer
app.config not working when adding DbProviderFactories entry for ODP.NET
I try to use Oracle.ManagedDataAccess.Client in my application. I added this to my app.config (embedded resource):

Susanne
- 11
- 2
1
vote
1 answer
How can I use machine.config settings in the NLog.config
Is it possible to use a machine.config setting inside the Nlog.config?
Example
...

DazedandConfused
- 357
- 5
- 16
1
vote
1 answer
Centralised Connection String for multiple application asp.net
I have a web server with multiple application running. All the application have their web.config file. If the database password changes due to Policy I have to manually change the password in each of web.config files in the app setting section.
I…

शेखर
- 17,412
- 13
- 61
- 117
1
vote
1 answer
How can I access the underlying libraries that .NET uses for ViewState signing and encryption
I need to thread state through the client, but only for particular get requests (aka links). As such, I don't want to add this state to the client's ViewState, cluttering it up. The state needs to be encrypted. How can I create a new ViewState-like…

Cirdec
- 24,019
- 2
- 50
- 100
1
vote
1 answer
How do I have one location for connection strings machine wide?
I have found that in the Machine.config you can add your connection strings so that you don't need your connection strings in each running apps config file. The down side to this is that you have number of framework versions * 2 machine.config file.…

dko
- 698
- 1
- 6
- 18
1
vote
0 answers
Making machine.config with multiple external config files
I've been trying to make the machine.config to be clean by adding the connectionString section and appSettings section externally.
It works well with just making the connectionString externally only like below.
Machine.config
…

Infinity Challenger
- 1,090
- 10
- 19
1
vote
1 answer
Problem Configuring "Location" Path Security on Machine.config
I'm trying to add something like this in Machine.config:
…

Scott Bedwell
- 31
- 3
1
vote
1 answer
How to add custom WCF behavior extension to machine.config
I'm trying to implement my own version of the Custom Behavior shown here: Using Windows Credentials in WCF-Custom adapter
and here: Impersonate WCF Credentials when calling a WCF Service
BizTalk requires everything to be put in the GAC, which I…

NealWalters
- 17,197
- 42
- 141
- 251
1
vote
1 answer
How do I effectively store a connection string in machine.config only?
We are moving to an environment with multiple engines of SQL Server running on the same server (a test engine and a production engine). We also have separate test and production web servers, and would like for our asp.net applications to…

Scott Bedwell
- 31
- 3
1
vote
1 answer
Clean Web.Config file in Asp.NET 4.0?
Okay,
I am wondering having clear web.config file could be good but you know some shared web hosting companies don't allow us to touch things like machine.config and etc.
So If a lot of things have been moved onto machine.config, then will we be…

Tarik
- 79,711
- 83
- 236
- 349