入门“”已添加错误 [英] The entry '' has already been added error
本文介绍了入门“”已添加错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在ASP.net一个web.config给我配置错误。
I have a web.config in ASP.net giving me configuration error.
<connectionStrings>
<add name="conn1" connectionString="Data Source=test;database=test;uid=test;pwd=test"/>
<add name="conn2" connectionString="Data Source=123.123.1.123;database=test2;uid=test;pwd=test"/>
...
这抛出入门CONN2已经被添加。错误。我知道,我只加一次。不知道它是错的。
It throws "The entry 'conn2' has already been added." error. I know I only added it once. Not sure what it is wrong with.
推荐答案
它可以在web.config中是父母这一个。只需添加
it can be in web.config that is parent to this one. just add
<remove name="conn2" />
您添加之前(再次):)
before your add it (again) :)
另外明确使用所有连接字符串
alternatively clear all connection string using
<clear />
这篇关于入门“”已添加错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文