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
1
vote
2 answers

Adding ADO.Net Entity Data Model using machine.config connection string

I am at the beginner level of learning MVC5 using EF6. Basically I am trying to use a connection string defined in machine.config rather than using web.config whilst creating the ADO.NET Entity Data Model. The reason why I am using machine.config…
1
vote
2 answers

Can't find httpModules and httpHandlers inside machine.config

I've read a post about httpHandlers and httpModules in ASP.NET and it said that there are such nodes ( and ) defined by default inside machine.config but when I looked they are not there. I've searched the machine.config…
yagni
  • 23
  • 5
1
vote
1 answer

InstallScript and machine.config

I'm having a couple of issues with InstallScript that I can not seem to figure out. The main one is that I need to add the following to the machine.config file:
1
vote
0 answers

Use machine.config setting and ignore web.config setting

I have some important settings in the machine.config file and I need to prevent that websites can modify them in thier web.config files. In other words, I need those setting in the web.config files to be ignored. I know I can lock elements but I…
lontivero
  • 5,235
  • 5
  • 25
  • 42
1
vote
1 answer

How to set up shared `system.webServer` settings for all sites on an IIS server

I'm setting up a new webserver in our hosting environment. It's a new VM that will only ever be used by us, so I can do what I want with it (within reason). It's running IIS 7 on Windows 2008 R2, with ASP.Net 4.0 installed on the system. I'd quite…
Owen Blacker
  • 4,117
  • 2
  • 33
  • 70
1
vote
0 answers

ClickOnce and configuration for a C# application

What and how should I put into an app.config file. The scenario is this, I have created a C# Windows Forms application (.NET 4.0), and it runs fine on the development computer. When I deploy it using ClickOnce on other computers I get a permission…
1
vote
1 answer

asp.net / MySQL: Access denied for user ''@'localhost' (using password: NO)

I'm a web dev rookie and I'm hoping someone with more experience can help sort this out. I was ambushed by a MySQL upgrade. Background: I have two XP PCs (let's ambitiously call them "web server" and "MySQL server"). I recently built and…
1
vote
2 answers

Reading custom machine.config elements using XmlDocument?

In machine.config file there are elements written there by 3rd party software so it looks like this: ... ... ...
w128
  • 4,680
  • 7
  • 42
  • 65
1
vote
0 answers

Wanted to number of the Worker Threads in used for my Web Application currently

As per my knowledge, the value of the Worker Threads is controlled using the ProcessModel tag of Machine.Config in one of the two ways: 1. If AutoConfig value is true, then, it will be taking default 100 per CPU 2. If AutoConfig value is false, then…
0
votes
1 answer

Assembly Binding Redirection: v4 app using v2 libraries, need to be using v2 redirects

What is the best way to configure my .Net 4 application to use the third party library redirects located in the .Net 2 machine.config other than copying the entries? If copying the entries is the only way, how can I do that using InnoSetup?
LSU.Net
  • 829
  • 6
  • 17
0
votes
2 answers

Cannot resolve SQL Server CE provider factory by invariant name

This line of code DbProviderFactory factory = DbProviderFactories.GetFactory("Microsoft.SqlServerCe.Client"); throws this exception System.Configuration.ConfigurationErrorsException: Failed to find or load the registered .Net Framework Data…
Anthony Mastrean
  • 21,850
  • 21
  • 110
  • 188
0
votes
1 answer

Start 64bit process during 32bit installer to modify 32bit and 64bit .NET machine.config

I have created an ADO.NET data provider that is built using AnyCPU. When referenced directly it works fine on both 64 and 32 bit Windows OS. However, in my installer, I register my DbProviderFactory with the .NET machine.config and place my…
codyzu
  • 541
  • 3
  • 18
0
votes
1 answer

How to patch a config section into machine.config on an Azure AppService

I need to patch in the following node into the machine.config of an Azure AppService (this is per Sitecore CMS requirements here). I've seen this article https://aaronstannard.com/how-to-modify-machineconfig-on-windows-azure-web-roles/ which…
Matthew Dresser
  • 11,273
  • 11
  • 76
  • 120
0
votes
1 answer

Edit machine.config at deployment

I'd like to know what's the best way to add keys in the machine.config file at the application deployment ? We have a series of WinForm apps that will need to use some keys that we wnat to store in the machine.config. Thanks for your advices !
Patrice Cote
  • 3,572
  • 12
  • 43
  • 72
0
votes
3 answers

Regional settings IIS6 and ASP.Net 2 - {0:c} returning too many decimals in gridview

I am currently moving my website from an existing web server to a new machine. The new machine is WIN Sever 2003 running IIS6. The site is using ASP.Net 2. I added the following to the section in my machine.config file to get the…
Nils
  • 1,237
  • 3
  • 11
  • 28
1 2 3
8 9