日期:2014-05-18  浏览次数:20431 次

SqlServer2005数据库 无法识别的配置节 runtime。
数据库昨天都还可以用的,今天突然就不可以了额...
机子环境 sevice 2008 的操作系统、IIs7.0 、SqlServer2005
求高手看下
===================================

无法连接到 WIN-O41OCCE5ALG。

===================================

“System.Data.SqlClient.SqlConnection”的类型初始值设定项引发异常。 (System.Data)

------------------------------
程序位置:

  在 System.Data.SqlClient.SqlConnection..ctor()
  在 Microsoft.SqlServer.Management.UI.ConnectionDlg.SqlServerType.Microsoft.SqlServer.Management.UI.ConnectionDlg.IServerType.GetConnectionObject(UIConnectionInfo ci)
  在 Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.ObjectExplorer.ValidateConnection(UIConnectionInfo ci, IServerType server)
  在 Microsoft.SqlServer.Management.UI.ConnectionDlg.Connector.ConnectionThreadUser()

===================================

“System.Data.SqlClient.SqlConnectionFactory”的类型初始值设定项引发异常。 (System.Data)

------------------------------
程序位置:

  在 System.Data.SqlClient.SqlConnection..cctor()

===================================

“System.Data.SqlClient.SqlPerformanceCounters”的类型初始值设定项引发异常。 (System.Data)

------------------------------
程序位置:

  在 System.Data.SqlClient.SqlConnectionFactory..cctor()

===================================

配置系统未能初始化 (System.Configuration)

------------------------------
程序位置:

  在 System.Configuration.ClientConfigurationSystem.EnsureInit(String configKey)
  在 System.Configuration.ClientConfigurationSystem.PrepareClientConfigSystem(String sectionName)
  在 System.Configuration.ClientConfigurationSystem.System.Configuration.Internal.IInternalConfigSystem.GetSection(String sectionName)
  在 System.Configuration.ConfigurationManager.GetSection(String sectionName)
  在 System.Configuration.PrivilegedConfigurationManager.GetSection(String sectionName)
  在 System.Diagnostics.DiagnosticsConfiguration.GetConfigSection()
  在 System.Diagnostics.DiagnosticsConfiguration.Initialize()
  在 System.Diagnostics.DiagnosticsConfiguration.get_SwitchSettings()
  在 System.Diagnostics.Switch.InitializeConfigSettings()
  在 System.Diagnostics.Switch.InitializeWithStatus()
  在 System.Diagnostics.Switch.get_SwitchSetting()
  在 System.Diagnostics.TraceSwitch.get_Level()
  在 System.Data.ProviderBase.DbConnectionPoolCounters..ctor(String categoryName, String categoryHelp)
  在 System.Data.SqlClient.SqlPerformanceCounters..ctor()
  在 System.Data.SqlClient.SqlPerformanceCounters..cctor()

===================================

无法识别的配置节 runtime。 (C:\Program Files (x86)\Microsoft SQL Server\90\Tools\Binn\VSShell\Common7\IDE\SqlWb.exe.Config line 2) (System.Configuration)

------------------------------
程序位置:

  在 System.Configuration.ConfigurationSchemaErrors.ThrowIfErrors(Boolean ignoreLocal)
  在 System.Configuration.BaseConfigurationRecord.ThrowIfParseErrors(ConfigurationSchemaErrors schemaErrors)
  在 System.Configuration.BaseConfigurationRecord.ThrowIfInitErrors()
  在 System.Configuration.ClientConfigurationSystem.EnsureInit(String configKey)



------解决方案--------------------
数据库连接字符串检查一下

然后就是 服务开启了么?

------解决方案--------------------
数据层程序有问题吧!
------解决方案--------------------
探讨
晕,是程序的问题么?
数据库服务开启没有问题啊...,就是我用数据库的用户或者直接用window身份登录的时候直接报上面哪个错误提示...