无法识别的配置节"connectionStrings" [英] Unrecognized configuration section 'connectionStrings'

查看:173
本文介绍了无法识别的配置节"connectionStrings"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的朋友

大家好,我已经在.net 2003(带有asp.net 1.1的c#)中开发了我的项目.之后,我已上传到我们的服务器.当我尝试访问该页面时,它会显示一些错误消息,如下所示,

配置错误
说明:在处理服务于此请求所需的配置文件期间发生错误.请查看下面的特定错误详细信息,并适当地修改您的配置文件.

解析器错误消息:无法识别的配置部分"connectionStrings"


如果有人知道请帮助我...

问候,
Saja Nassar

Dear friends

Hi all, i have developed my project in .net 2003(c# with asp.net 1.1). After that i have uploaded to our server. when i try to access that page it wil show some error msg like below,

Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: Unrecognized configuration section ''connectionStrings''


If any one Knows Pls Help Me...

regards,
Saja Nassar

推荐答案

这是区分大小写的.尝试将其更改为< connectionStrings>.

祝你好运!
It is case sensitive. Try changing it to <connectionStrings>.

Good luck!


请检查您的配置文件是否看起来像这样.

->
< configuration>
< appSettings/>
< connectionStrings>
< add name ="MainConnStr" connectionString ="server = localhost; database = myDb; Integrated Security = SSPI;" providerName ="System.Data.SqlClient"/>
</connectionStrings>
< system.web>

</system.web>

</configuration>

已更新:

看起来您已经将.net Framework 1.1和2.0应用程序托管在一起.
检查一下.
http://forums.asp.net/t/1080128.aspx [
Please check whether your config file looks like this.

-->
<configuration>
<appSettings />
<connectionStrings>
<add name="MainConnStr" connectionString="server=localhost;database=myDb;Integrated Security=SSPI;" providerName="System.Data.SqlClient"/>
</connectionStrings>
<system.web>

</system.web>

</configuration>

updated:

it looks like you have .net framework 1.1 and 2.0 application hosted together.
Check this.
http://forums.asp.net/t/1080128.aspx[^]


这篇关于无法识别的配置节"connectionStrings"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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