调试程序时出现连接字符串错误 [英] connection string error while debugging the program

查看:107
本文介绍了调试程序时出现连接字符串错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我在调试项目无法识别的配置部分connectionString时收到的错误消息。



这是我的网页配置代码:



< connectionstring>

< add name =DBConnectconnectionstring =Datasource = DELL-PC; Initial Catalog = RealEstate; Integrated Security = True>

< connectionstring>



需要帮助来解决这个问题。

here is the error message I got while debugging my project "Unrecognized configuration section connectionString".

Here is my web config code :

<connectionstring>
<add name="DBConnect" connectionstring="Datasource=DELL-PC;Initial Catalog=RealEstate;Integrated Security=True">
<connectionstring>

Need help to fix this issue.

推荐答案

这意味着你的web.config文件中没有connectionstring属性。

如何做到这一点 [ ^ ]。
It means that you con''t have a connectionstring property in your web.config file.
How to do this[^].


请参考以下链接:

在web.config中存储连接字符串

获取ConnectionString的链接


请参阅:

http://blog.tanist.co.uk/2008/12/unrecognized-configuration-section-connectionstrings/ [< a href =http://blog.tanist.co.uk/2008/12/unrecognized-configuration-section-connectionstrings/target =_ blanktitle =New Window> ^ ]



http://praveenbattula.blogspot.in /2009/05/unrecognized-configuration-section.html [ ^ ]
Refer these :
http://blog.tanist.co.uk/2008/12/unrecognized-configuration-section-connectionstrings/[^]

http://praveenbattula.blogspot.in/2009/05/unrecognized-configuration-section.html[^]


这篇关于调试程序时出现连接字符串错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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