【问题标题】:SQL Server 2012 installation error: Landing PageSQL Server 2012 安装错误:登陆页面
【发布时间】: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)

【问题讨论】:

    标签: sql-server installation


    【解决方案1】:

    删除

    C:\Users\hy\AppData\Local\Microsoft_Corporation\LandingPage.exe_StrongName_ryspccglaxmt4nhllj5z3thycltsvyyx\

    目录,然后重试。

    我相信卸载有时不会完全清理文件。

    【讨论】:

    • 文件名包含在错误日志中,但我没有看到它
    • 如何在 Windows 10 中转到此位置。
    • 我没有得到这个位置我怎么能找到它???请帮我 。我还没有安装 sql server 2012。
    • W10 中的 @JoyAcharya 完全一样。您必须用您的用户名替换 hy。
    【解决方案2】:

    搜索%localappdata%\Microsoft_Corporation%应该可以找到

    【讨论】:

      【解决方案3】:

      在此文件夹中搜索: C:\Users\user_name\AppData\Local\Microsoft_Corporation

      在那里你会找到类似的文件或文件夹

      • LandingPage.exe, 或
      • LandingPage.

      删除所有这些文件夹。 适用于 Windows 10。

      【讨论】:

        【解决方案4】:

        重命名位于

        user.config文件

        C:\Users[USER_NAME]\AppData\Local\Microsoft_Corporation\LandingPage.exe_StrongName_ryspccglaxmt4nhllj5z3thycltsvyyx\10.0.0.0

        USER.CONFIG.BAK

        【讨论】:

          【解决方案5】:

          删除此文件夹C:\Users\yourName\AppData\Local\Microsoft_Corporation\LandingPage.exe_StrongName_ryspccglaxmt4nhllj5z3thycltsvyyx\

          【讨论】:

            【解决方案6】:

            运行命令:rd /s /q %localappdata%\Microsoft_Corporation1as

            【讨论】:

              猜你喜欢
              • 1970-01-01
              • 1970-01-01
              • 2014-06-26
              • 1970-01-01
              • 1970-01-01
              • 1970-01-01
              • 1970-01-01
              • 1970-01-01
              • 1970-01-01
              相关资源
              最近更新 更多