更新.NET 4.0 machine.config中似乎没有任何效果 [英] Updating .net 4.0 machine.config seems to have no effect

查看:584
本文介绍了更新.NET 4.0 machine.config中似乎没有任何效果的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我觉得自己很笨。

我的工作我的方式,虽然在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:

  1. C:\ WINDOWS \ Microsoft.NET \ Framework64 \ v4.0.30319 \ machine.config的
  2. 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆