安装sql server2008 r2 报“配置节‘connectionStrings’具有意外声明”的错 求大神帮忙解决一下

u010155129 2014-04-08 10:55:45


************** 异常文本 **************
System.Configuration.ConfigurationErrorsException: 配置节“connectionStrings”具有意外的声明。
在 System.Configuration.ConfigurationManager.get_ConnectionStrings()
在 System.Configuration.PrivilegedConfigurationManager.get_ConnectionStrings()
在 System.Configuration.LocalFileSettingsProvider.GetPropertyValues(SettingsContext context, SettingsPropertyCollection properties)
在 System.Configuration.SettingsBase.GetPropertiesFromProvider(SettingsProvider provider)
在 System.Configuration.SettingsBase.GetPropertyValueByName(String propertyName)
在 System.Configuration.SettingsBase.get_Item(String propertyName)
在 System.Configuration.ApplicationSettingsBase.GetPropertyValue(String propertyName)
在 System.Configuration.ApplicationSettingsBase.get_Item(String propertyName)
在 Microsoft.SqlServer.Configuration.LandingPage.Properties.Settings.get_WindowPlacement()
在 Microsoft.SqlServer.Configuration.LandingPage.LandingPageForm.OnLoad(EventArgs e)
在 System.Windows.Forms.Form.OnCreateControl()
在 System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
在 System.Windows.Forms.Control.CreateControl()
在 System.Windows.Forms.Control.WmShowWindow(Message& m)
在 System.Windows.Forms.Control.WndProc(Message& m)
在 System.Windows.Forms.ScrollableControl.WndProc(Message& m)
在 System.Windows.Forms.ContainerControl.WndProc(Message& m)
在 System.Windows.Forms.Form.WmShowWindow(Message& m)
在 System.Windows.Forms.Form.WndProc(Message& m)
在 System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
...全文
992 12 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
12 条回复
切换为时间正序
请发表友善的回复…
发表回复
  • 打赏
  • 举报
回复
大哥 ,在哪里去看有没有非法字符啊?
Tiger_Zhao 2015-07-14
  • 打赏
  • 举报
回复
这是 .config 文件中有非法内容。
检查下有没有非法字符?是不是connectionStrings下面有其它的键值加进来了?
  • 打赏
  • 举报
回复
求大神 快快 告诉我啊
  • 打赏
  • 举报
回复
大神 ,为什么 我装了 . net4 还是这样啊 根本没啥变化
Tiger_Zhao 2015-07-14
  • 打赏
  • 举报
回复
既然程序中已经在调用 get_ConnectionStrings() 了,.config 文件至少得有类似下面得内容啊。
<configuration>
<connectionStrings>
<add name="NorthWind" connectionString="Provider=SQLOLEDB;Integrated Security=SSPI;Initial Catalog=da;Data Source=bar" />
</connectionStrings>
</configuration>

  • 打赏
  • 举报
回复


有关调用实时(JIT)调试而不是此对话框的详细信息,
请参见此消息的结尾。

************** 异常文本 **************
System.Configuration.ConfigurationErrorsException: 配置节“connectionStrings”具有意外的声明。
在 System.Configuration.ConfigurationManager.get_ConnectionStrings()
在 System.Configuration.PrivilegedConfigurationManager.get_ConnectionStrings()
在 System.Configuration.LocalFileSettingsProvider.GetPropertyValues(SettingsContext context, SettingsPropertyCollection properties)
在 System.Configuration.SettingsBase.GetPropertiesFromProvider(SettingsProvider provider)
在 System.Configuration.SettingsBase.GetPropertyValueByName(String propertyName)
在 System.Configuration.SettingsBase.get_Item(String propertyName)
在 System.Configuration.ApplicationSettingsBase.GetPropertyValue(String propertyName)
在 System.Configuration.ApplicationSettingsBase.get_Item(String propertyName)
在 Microsoft.SqlServer.Configuration.LandingPage.LandingPageForm.OnLoad(EventArgs e)
在 System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
在 System.Windows.Forms.Control.CreateControl()
在 System.Windows.Forms.Control.WmShowWindow(Message& m)
在 System.Windows.Forms.Control.WndProc(Message& m)
在 System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** 已加载的程序集 **************
mscorlib
程序集版本: 2.0.0.0
Win32 版本: 2.0.50727.5485 (Win7SP1GDR.050727-5400)
基本代码: file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll
----------------------------------------
mscorlib.resources
程序集版本: 2.0.0.0
Win32 版本: 2.0.50727.5485 (Win7SP1GDR.050727-5400)
基本代码: file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll
----------------------------------------
LandingPage
程序集版本: 10.0.0.0
Win32 版本: 10.50.1600.1 ((KJ_RTM).100402-1539 )
基本代码: file:///D:/SQLServer2008R2安装程序/SQLFULL_CHS/x64/LandingPage.exe
----------------------------------------
System.Windows.Forms
程序集版本: 2.0.0.0
Win32 版本: 2.0.50727.5491 (Win7SP1GDR.050727-5400)
基本代码: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
程序集版本: 2.0.0.0
Win32 版本: 2.0.50727.5485 (Win7SP1GDR.050727-5400)
基本代码: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
程序集版本: 2.0.0.0
Win32 版本: 2.0.50727.5491 (Win7SP1GDR.050727-5400)
基本代码: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
Microsoft.SqlServer.Configuration.Sco
程序集版本: 10.0.0.0
Win32 版本: 10.50.1600.1 ((KJ_RTM).100402-1539 )
基本代码: file:///D:/SQLServer2008R2安装程序/SQLFULL_CHS/x64/Microsoft.SqlServer.Configuration.Sco.DLL
----------------------------------------
LandingPage.resources
程序集版本: 10.0.0.0
Win32 版本: 10.50.1600.1 ((KJ_RTM).100402-1539 )
基本代码: file:///D:/SQLServer2008R2安装程序/SQLFULL_CHS/x64/zh-CHS/LandingPage.resources.DLL
----------------------------------------
Microsoft.SqlServer.Chainer.Infrastructure
程序集版本: 10.0.0.0
Win32 版本: 10.50.1600.1 ((KJ_RTM).100402-1539 )
基本代码: file:///D:/SQLServer2008R2安装程序/SQLFULL_CHS/x64/Microsoft.SqlServer.Chainer.Infrastructure.DLL
----------------------------------------
System.Xml
程序集版本: 2.0.0.0
Win32 版本: 2.0.50727.5485 (Win7SP1GDR.050727-5400)
基本代码: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
Accessibility
程序集版本: 2.0.0.0
Win32 版本: 2.0.50727.5483 (Win7SP1GDR.050727-5400)
基本代码: file:///C:/Windows/assembly/GAC_MSIL/Accessibility/2.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
Microsoft.SqlServer.Management.Controls
程序集版本: 10.0.0.0
Win32 版本: 10.50.1600.1 ((KJ_RTM).100402-1539 )
基本代码: file:///D:/SQLServer2008R2安装程序/SQLFULL_CHS/x64/Microsoft.SqlServer.Management.Controls.DLL
----------------------------------------
System.Configuration
程序集版本: 2.0.0.0
Win32 版本: 2.0.50727.5483 (Win7SP1GDR.050727-5400)
基本代码: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
system.configuration.resources
程序集版本: 2.0.0.0
Win32 版本: 2.0.50727.5420 (Win7SP1.050727-5400)
基本代码: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration.resources/2.0.0.0_zh-CHS_b03f5f7f11d50a3a/System.Configuration.resources.dll
----------------------------------------
System.Windows.Forms.resources
程序集版本: 2.0.0.0
Win32 版本: 2.0.50727.5420 (Win7SP1.050727-5400)
基本代码: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms.resources/2.0.0.0_zh-CHS_b77a5c561934e089/System.Windows.Forms.resources.dll
----------------------------------------

************** JIT 调试 **************
要启用实时(JIT)调试,
该应用程序或计算机的 .config 文件(machine.config)的 system.windows.forms 节中必须设置
jitDebugging 值。
编译应用程序时还必须启用
调试。

例如:

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>

启用 JIT 调试后,任何无法处理的异常
都将被发送到在此计算机上注册的 JIT 调试器,
而不是由此对话框处理。

这是什么意思啊,打不开 安装程序
Tiger_Zhao 2015-07-14
  • 打赏
  • 举报
回复
.config 贴出来。
  • 打赏
  • 举报
回复
大哥,没有的啊
Tiger_Zhao 2015-07-14
  • 打赏
  • 举报
回复
更名为.xml,拖到IE中能不能正确显示。
u010155129 2014-04-08
  • 打赏
  • 举报
回复
我之前安装了VS2010 自带.net 4.0
--小F-- 2014-04-08
  • 打赏
  • 举报
回复
SQL 2008需要.NET 3.5吧。
u010155129 2014-04-08
  • 打赏
  • 举报
回复
有了4.0 却装不起3.5sp1 了 是怎么回事

22,302

社区成员

发帖
与我相关
我的任务
社区描述
MS-SQL Server 疑难问题
社区管理员
  • 疑难问题社区
  • 尘觉
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧