更新.NET 4.0 machine.config中似乎没有任何效果 [英] Updating .net 4.0 machine.config seems to have no effect
问题描述
我觉得自己很笨。
我的工作我的方式,虽然在1.1以上的年后刚刚创建我的第一个ASP.net 4.0站点。我们已经在machine.config的水平了几种设置,我需要迁移到新的4.0 machine.config中。不过,我觉得我已经被添加所需的连接字符串到以下两个文件的连接字符串部分:
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:
- C:\ WINDOWS \ Microsoft.NET \ Framework64 \ v4.0.30319 \ machine.config的
- C:\ WINDOWS \ Microsoft.NET \框架\ v4.0.30319 \ machine.config的
当我创建IIS中的新网站并将其分配给ASP.net 4.0应用程序池我只得到了默认LocalSqlServer连接字符串。我想编辑这两个文件的这名以上,表明该文件,它是,但没有改变。
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.
有没有在我应该看什么?其他地方的Machine.config文件
Are there machine.config files in other locations I should be looking at?
推荐答案
由于微软把machine.config中的几个位置,我其实想的位置是奇迹:
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\Framework64\v4.0.3031\CONFIG\machine.config
C:\ WINDOWS \ Microsoft.NET \框架\ v4.0.30319 \ CONFIG \ machine.config的
C:\Windows\Microsoft.NET\Framework\v4.0.30319\CONFIG\machine.config
这篇关于更新.NET 4.0 machine.config中似乎没有任何效果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!