【发布时间】:2018-03-20 03:01:25
【问题描述】:
卸载 SQL Server 2012 和 2008,然后重新安装后,我收到此错误:
您的应用程序中发生了未处理的异常...
为 userSettings/Microsoft.SqlServer.Configuration.LandingPage.Properties.Settings 创建配置节处理程序时出错:
有关调用即时 (JIT) 调试而不是此对话框的详细信息,请参阅此消息的末尾。
**************异常文本**************
System.Configuration.ConfigurationErrorsException:为 userSettings/Microsoft.SqlServer.Configuration.LandingPage.Properties.Settings 创建配置节处理程序时出错:无法加载文件或程序集'System,Version=4.0.0.0,Culture=neutral , PublicKeyToken=b77a5c561934e089' 或其依赖项之一。该系统找不到指定的文件。 (C:\Users\hy\AppData\Local\Microsoft_Corporation\LandingPage.exe_StrongName_ryspccglaxmt4nhllj5z3thycltsvyyx\10.0.0.0\user.config 第 5 行)---> System.IO.FileNotFoundException:无法加载文件或程序集'系统,版本 = 4.0 .0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' 或其依赖项之一。系统找不到指定的文件。
文件名:'System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
在 System.Configuration.TypeUtil.GetTypeWithReflectionPermission(IInternalConfigHost 主机,字符串 typeString,布尔 throwOnError)
在 System.Configuration.RuntimeConfigurationRecord.RuntimeConfigurationFactory.Init(RuntimeConfigurationRecord configRecord, FactoryRecord factoryRecord)
在 System.Configuration.RuntimeConfigurationRecord.RuntimeConfigurationFactory.InitWithRestrictedPermissions(RuntimeConfigurationRecord configRecord, FactoryRecord factoryRecord)
在 System.Configuration.RuntimeConfigurationRecord.CreateSectionFactory(FactoryRecord factoryRecord)
在 System.Configuration.BaseConfigurationRecord.FindAndEnsureFactoryRecord(String configKey, Boolean& isRootDeclaredHere)警告:程序集绑定日志记录已关闭。
要启用程序集绑定失败日志记录,请将注册表值 [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) 设置为 1。
注意:有一些与程序集绑定失败日志相关的性能损失。
要关闭此功能,请删除注册表值 [HKLM\Software\Microsoft\Fusion!EnableLog]。--- 内部异常堆栈跟踪结束 ---
在 System.Configuration.BaseConfigurationRecord.FindAndEnsureFactoryRecord(String configKey, Boolean& isRootDeclaredHere)
在 System.Configuration.BaseConfigurationRecord.GetSectionRecursive(String configKey, Boolean getLkg, Boolean checkPermission, Boolean getRuntimeObject, Boolean requestIsHere, Object& result, Object& resultRuntimeObject)
在 System.Configuration.BaseConfigurationRecord.GetSection(String configKey)
在 System.Configuration.ClientConfigurationSystem.System.Configuration.Internal.IInternalConfigSystem.GetSection(String sectionName)
在 System.Configuration.ConfigurationManager.GetSection(String sectionName)
在 System.Configuration.ClientSettingsStore.ReadSettings(String sectionName, Boolean isUserScoped)
在 System.Configuration.LocalFileSettingsProvider.GetPropertyValues(SettingsContext 上下文,SettingsPropertyCollection 属性)
在 System.Configuration.SettingsBase.GetPropertiesFromProvider(SettingsProvider 提供程序)
在 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(布尔 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)
【问题讨论】: