Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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 adding the required connection strings to the connection string section of the following two files:

  1. C:\Windows\Microsoft.NET\Framework64\v4.0.30319\machine.config
  2. C:\Windows\Microsoft.NET\Framework\v4.0.30319\machine.config

When I created a new website in IIS and assigned it to the ASP.net 4.0 Application pool I only get the default LocalSqlServer connection string. I tried editing the name of this in the two files above to indicate which file it was in, but there was no change.

Are there machine.config files in other locations I should be looking at?

like image 907
Jon P Avatar asked Jun 22 '11 23:06

Jon P


1 Answers

Due to the wonders of microsoft putting the machine.config a few location the locations I actually wanted was:

C:\Windows\Microsoft.NET\Framework64\v4.0.3031\CONFIG\machine.config

C:\Windows\Microsoft.NET\Framework\v4.0.30319\CONFIG\machine.config

like image 151
Jon P Avatar answered Oct 22 '22 10:10

Jon P