Questions tagged [machine.config]

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].

121 questions
2
votes
1 answer

C# Graphics.RotateTransform works on localhost, but not on remote server

It works on my machine... I have a problem with using a C# Graphics method on my ASP.NET web host. I'm combining two map pins into a single image. I load an empty pin image and write a number on top of it. I then combine two of these, having rotated…
harriyott
  • 10,505
  • 10
  • 64
  • 103
2
votes
1 answer

Override machine.config with web.config

I have recently decided to move my connection strings to machine.config as this seems to be by far the most elegant approach for managing multiple environments. However, I would still like to be able to override these settings in my local web.config…
Jim Mitchener
  • 8,835
  • 7
  • 40
  • 56
2
votes
3 answers

asp.net It is an error to use a section registered as allowDefinition='MachineOnly' beyond machine.config

Hey guys i've been trying to upload my website to a remote server, but i keep getting this error. i have changed every 'allowDefinition' to 'Everywhere' in two machine configs, but i did not help. It highlights ' deployment retail="true"/ ' as the…
Rennos
  • 93
  • 1
  • 3
  • 11
2
votes
0 answers

Visual studio 2012 error. cant find .net data provider

I am currently developing a project in MVC3 Visual Studio 2012. I am connecting to an external database but when I try to add a new controller I get this error. Unable to retrieve metadata for 'Project.Models.Class'. Unable to find the requested…
2
votes
2 answers

ConnectionString management for many projects on one server, should I make my own ConnectionString provider for our code

I have on a single Windows Server about 10 different .NET projects, mostly .NET 4.0 but some .NET 2.0 Some of these projects are asp.net, some are background utilities/services. These projects interact with over a hundred different databases in our…
Ryan Weir
  • 6,377
  • 5
  • 40
  • 60
1
vote
1 answer

How to add appSetting to machine.config?

So I'm trying to add a 'ServerType' AppSetting. It works when I add it to a web.config. web.config before:
Sarov
  • 545
  • 6
  • 17
1
vote
2 answers

aspnet_wp.exe restart automatically

Our web-application is on .net 1.1 and we have some legacy code that hangs-up IIS after every couple of days. I was thinking about modifying machine.config settings to restart aspnet process after every couple of days, but the problem is it's going…
Ali
  • 309
  • 1
  • 5
  • 20
1
vote
0 answers

What is the relationship between ServicePointManager.DefaultConnectionLimit and system.net connectionManagement maxconnection?

Do these two settings refer to the same limit or seperate limits? (don't fixate on the number, I put that in at random) System.Net.ServicePointManager.DefaultConnectionLimit = 20; The above property which can be set in code, and the optional…
Andrew M
  • 9,149
  • 6
  • 44
  • 63
1
vote
1 answer

Overriding values of Machine.config in web.config in .net 4.5

I am using .net 4.5 ASP.NET Web API application. How can i overwrite following settings in web.config file. •maxWorkerThreads •minWorkerThreads •maxIoThreads •minFreeThreads •minLocalRequestFreeThreads •maxconnection •executionTimeout
SharpCoder
  • 18,279
  • 43
  • 153
  • 249
1
vote
2 answers

How do I open the machine.config from .NET v2.0.50727

The application I want to read settings from writes to the section of the machine.config in C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\CONFIG. But when I use the following code: Configuration myMC =…
1
vote
1 answer

How to replace the "oracle.manageddataaccess.client" section of machine.config with web.config section

Good morning, my application uses oracle.manageddataaccess.client, when installing oracle.managedDataAccess via Nuget, a reference was created in my web.config as below:
André Luiz
  • 307
  • 5
  • 11
1
vote
0 answers

Linq to SQL data class, use conneciton string from machine.config

We have developed many asp.net web applications on our intranet server. Each has their own connection strings in their own web.configs We are having to upgrade a lot of servers due to OS end of life, including intranet servers & SQL servers. What I…
Mike Beale
  • 101
  • 1
  • 8
1
vote
1 answer

How do I check the changes in machine.config file are consumed by the IIS?

I have added some params in machine.config file in C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Config.
user10807821
1
vote
0 answers

BizTalk WCF LOB Adapter: Can I have customizable scheme name

WCF Lob adapter project item creates this file. I want to keep the SCHEME and SERVICENAMSPACE values in a machine.config or BTSNTSvc64.exe.config Is it possible? If not how can I keep it customizable setting. using…
Ziaullah Khan
  • 2,020
  • 17
  • 20
1
vote
3 answers

Weird things with machine.config

I am trying to tune IIS to reduce contention, and following many articles on the .net I am trying to locate this in the file to no result: ... .... …
dexter
  • 7,063
  • 9
  • 54
  • 71
1 2 3
8 9