Updating .net 4.0 machine.config seems to have no effect

Posted by Jon P on Stack Overflow See other posts from Stack Overflow or by Jon P
Published on 2011-06-22T23:57:40Z Indexed on 2011/06/23 0:22 UTC
Read the original article Hit count: 179

Filed under:
|

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?

© Stack Overflow or respective owner

Related posts about .net-4.0

Related posts about machine.config