安装SQL2008的时候, 出现创建 userSettings/Microsoft.SqlServer.

本文提供了解决 SQL Server 卸载不彻底的方法及 Configuration.LandingPage.Properties.Settings 错误的修复步骤。包括服务停止、控制面板卸载、注册表清理、手动删除文件夹等详细指导。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

问题1:Configuration.LandingPage.Properties.Settings 错误

System.Configuration.ConfigurationErrorsException: 创建 userSettings/Microsoft.SqlServer.Configuration.LandingPage.Properties.Settings 的配置节处理程序时出错: 未能加载文件或程序集“System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089”或它的某一个依赖项。系统没找到指定的文件。 (C:\Users\hp\AppData\Local\Microsoft_Corporation\LandingPage.exe_StrongName_ryspccglaxmt4nhllj5z3thycltsvyyx\10.0.0.0\useronfig line 5) ---> System.IO.FileNotFoundException: 未能加载文件或程序集“System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089”或它的某一个依赖项。系统没找到指定的文件。
文件名:“System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089”
   在 System.Configuration.TypeUtil.GetTypeWithReflectionPermission(IInternalConfigHost host, String typeString, Boolean throwOnError)
   在 System.Configuration.RuntimeConfigurationRecord.RuntimeConfigurationFactory.Init(RuntimeConfigurationRecord configRecord, FactoryRecord factoryRecord)
   在 System.Configuration.RuntimeConfigurationRecord.RuntimeConfigurationFactory.InitWithRestrictedPermissions(RuntimeConfigurationRecord configRecord, FactoryRecord factoryRecord)
   在 System.Configuration.RuntimeConfigurationRecord.RuntimeConfigurationFactory.tor(RuntimeConfigurationRecord configRecord, FactoryRecord factoryRecord)
   在 System.Configuration.RuntimeConfigurationRecord.CreateSectionFactory(FactoryRecord factoryRecord)
   在 System.Configuration.BaseConfigurationRecord.FindAndEnsureFactoryRecord(String configKey, Boolean& isRootDeclaredHere)


//删除这个文件

C:\Users\username\Local Settings\Application Data\Microsoft_Corporation\LandingPage.exe_StrongName_ryspccglaxmt4nhllj5z3thycltsvyyx\10.0.0.0\user.config

问题2:
上一次卸载的时候,不彻底
1。停止所有跟Sql相关的服务:控制面板-〉管理工具-〉服务
2。在控制面板中卸载所有和SQL有关的一切程序或者组建
3。注册表清理():
3.1彻底删除SQL Server: 
hkey_local_machine\software\Microsoft\MSSQLServer hkey_local_machine\software\Microsoft\Microsoft SQL Server hkey_current_user\software\Microsoft\Microsoft SQL Server hkey_current_user\software\Microsoft\MSSQLServer hkey_local_machine\system\currentcontrolset\control\sessionmanager\pendingfileren       ameoperations
3.2注册表中的相关信息删除:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSSQLServer。 
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\MSDTC。 
3.3 HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager中找到PendingFileRenameOperations项目,并删除它。这样就可以清除安装暂挂项目
3.4 HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\setup
删除ExceptionComponents
3.5运行注册表,删除如下项:
HKEY_CURRENT_USER\Software\Microsoft\Microsoft SQL Server
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server 
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSSQLServer
完美卸载SQL Server 2008的方案
针对SQL 数据库卸载不完全的现象,做了如下总结:
 
1,控制面板 卸载
 
首先,打开控制面板,按照“安装时间”进行排序,卸载SQL Server系列组件
 
\
 
2,利用360删除SQL Server系列组件(同样按照时间排序)
 
\


 
3,利用Windows Install Clean Up软件
 
微软自己出的卸载软件,用它可以完美卸载Microsoft的系列软件。利用 Windows Installer 清理实用工具,可以删除程序的 Windows Installer 配置信息。如果您遇到安装(安装程序)问题,可能需要删除程序的 Windows Installer 配置信息。

例如,第一次安装程序时没有包括其中的某个组件,如果添加(或删除)此组件时遇到安装问题,您也许不得不删除该程序的 Windows Installer 配置信息。
 
\
 
4,手动卸载,手工来进行删除操作。
 
(1) 删除以下注册表子项:
        HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSSQLServer
        HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ Microsoft SQL Server
        HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MSSQLServer
        HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SQLSERVER AGENT
        HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services \MSSQLServerADHelper

(2) 手工删除安装目录,默认情况下位于:

        C:\Program Files\Microsoft SQL Server
        C:\Program Files (x86)\Microsoft SQL Server
        C:\Users\Administrator\请仔细查找……
 
(3) 卸载Microsoft Search 服务,还需要删除:
        HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Search

(4) 卸载Microsoft 全文查询,还需要删除:

        HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MSFTPSVC
        HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MSSCNTRS
        HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MSSEARCH  
        HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MSSGATHERVER
        HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MSSGTHRSVC
        HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MSSINDEX

(5)如果要卸载的是命名实例,则在相应的注册表键的MSSQLServer,SQLSERVERAGENT和MSSQLServerADHelper后加上“/”和相应的实例名。

到此我们就成功的完美卸载了SQL SERVER数据库。

Windows Install Clean Up

=================
是否完美呢,起码必须安装
1)数据库引擎。可选全文搜索。
2)企业管理器-完整(包含分析)
3)BI可选。
4)服务端,客户端配置可选。
[File Watcher (node.js)] Request to start watching: /home/SENSETIME/leisiquan.vendor/.config/Code/User (excludes: <none>, includes: <all>, filter: <none>, correlationId: <none>),/home/SENSETIME/leisiquan.vendor/.config/Code/User/settings.json (excludes: <none>, includes: <all>, filter: <none>, correlationId: <none>) [main 2025-08-01T12:47:02.252Z] [File Watcher (node.js)] ignoring a path for watching who's stat info failed to resolve: /home/SENSETIME/leisiquan.vendor/.config/Code/User/settings.json (error: Error: ENOENT: no such file or directory, stat '/home/SENSETIME/leisiquan.vendor/.config/Code/User/settings.json') [main 2025-08-01T12:47:02.253Z] [File Watcher (node.js)] starting fs.watchFile() on /home/SENSETIME/leisiquan.vendor/.config/Code/User/settings.json (correlationId: undefined) [main 2025-08-01T12:47:02.256Z] Starting VS Code [main 2025-08-01T12:47:02.256Z] from: /usr/share/code/resources/app [main 2025-08-01T12:47:02.256Z] args: { _: [], diff: false, merge: false, add: false, remove: false, goto: false, 'new-window': false, 'reuse-window': false, wait: false, help: false, 'list-extensions': false, 'show-versions': false, 'pre-release': false, 'update-extensions': false, version: false, verbose: true, status: false, 'prof-startup': false, 'no-cached-data': false, 'prof-v8-extensions': false, 'disable-extensions': false, 'disable-lcd-text': false, 'disable-gpu': true, 'disable-chromium-sandbox': false, sandbox: false, telemetry: false, debugRenderer: false, 'enable-smoke-test-driver': false, logExtensionHostCommunication: false, 'skip-release-notes': false, 'skip-welcome': false, 'disable-telemetry': false, 'disable-updates': false, 'use-inmemory-secretstorage': false, 'disable-workspace-trust': false, 'disable-crash-reporter': false, 'crash-reporter-id': '9bc59030-b82d-49d9-9051-898bbb437304', 'skip-add-to-recently-opened': false, 'open-url': false, 'file-write': false, 'file-chmod': false, force: false, 'do-not-sync': false, 'do-not-include-pack-dependencies': false, trace: false, 'trace-memory-infra': false, 'preserve-env': false, 'force-user-env': false, 'force-disable-user-env': false, 'open-devtools': false, 'disable-gpu-sandbox': false, '__enable-file-policy': false, 'enable-coi': false, 'enable-rdp-display-tracking': false, 'disable-layout-restore': false, 'no-proxy-server': false, 'no-sandbox': false, nolazy: false, 'force-renderer-accessibility': false, 'ignore-certificate-errors': false, 'allow-insecure-localhost': false, 'disable-dev-shm-usage': false, 'profile-temp': false, logsPath: '/home/SENSETIME/leisiquan.vendor/.config/Code/logs/20250801T204702' } [main 2025-08-01T12:47:02.258Z] Resolving machine identifier... [main 2025-08-01T12:47:02.262Z] [File Watcher (node.js)] Started watching: '/home/SENSETIME/leisiquan.vendor/.config/Code/User' [49295:0801/204702.266343:WARNING:vaapi_wrapper.cc(1534)] Skipping nVidia device named: nvidia-drm [49295:0801/204702.268231:WARNING:sandbox_linux.cc(420)] InitializeSandbox() called with multiple threads in process gpu-process. [49295:0801/204702.269007:WARNING:viz_main_impl.cc(85)] VizNullHypothesis is disabled (not a warning) [main 2025-08-01T12:47:02.298Z] Resolved machine identifier: 3777bd569b947d43ea914eabe3a61f5de17708a4d53a88839111bf818a20a675 [main 2025-08-01T12:47:02.298Z] Main->SharedProcess#connect [main 2025-08-01T12:47:02.302Z] StorageMainService: creating application storage [main 2025-08-01T12:47:02.306Z] ElectronURLListener: waiting for window to be ready to handle URLs... [main 2025-08-01T12:47:02.306Z] lifecycle (main): phase changed (value: 2) [main 2025-08-01T12:47:02.306Z] windowsManager#open [main 2025-08-01T12:47:02.307Z] windowsManager#open pathsToOpen [ [Object: null prototype] {} ] [main 2025-08-01T12:47:02.307Z] windowsManager#doOpenEmpty { restore: false, remoteAuthority: undefined, filesToOpen: undefined, forceNewWindow: false } [main 2025-08-01T12:47:02.309Z] IPC Object URL: Registered new channel vscode:dc0454f3-919f-4e9a-999c-dc2a526cc059. [main 2025-08-01T12:47:02.309Z] window#validateWindowState: validating window state on 1 display(s) { width: 1200, height: 800, mode: 1, x: 360, y: 140, hasDefaultState: true } [main 2025-08-01T12:47:02.309Z] window#validateWindowState: single monitor working area { x: 72, y: 27, width: 1848, height: 1053 } [main 2025-08-01T12:47:02.309Z] window#ctor: using window state { width: 1200, height: 800, mode: 1, x: 360, y: 140, hasDefaultState: true } [main 2025-08-01T12:47:02.356Z] window#load: attempt to load window (id: 1) [main 2025-08-01T12:47:02.364Z] windowsManager#open used window count 1 (workspacesToOpen: 0, foldersToOpen: 0, emptyToRestore: 0, maybeOpenEmptyWindow: true) [main 2025-08-01T12:47:02.364Z] lifecycle (main): phase changed (value: 3) [main 2025-08-01T12:47:02.364Z] resolveShellEnv(): skipped (VSCODE_CLI is set) [main 2025-08-01T12:47:02.365Z] update#setState idle [main 2025-08-01T12:47:02.407Z] resolveShellEnv(): skipped (VSCODE_CLI is set) [49253:0801/204702.419375:INFO:CONSOLE(3)] "[uncaught exception]: TypeError: Failed to fetch dynamically imported module: vscode-file://vscode-app/usr/share/code/resources/app/out/vs/workbench/workbench.desktop.main.js", source: vscode-file://vscode-app/usr/share/code/resources/app/out/vs/code/electron-browser/workbench/workbench.js (3) [49253:0801/204702.419453:INFO:CONSOLE(3)] "TypeError: Failed to fetch dynamically imported module: vscode-file://vscode-app/usr/share/code/resources/app/out/vs/workbench/workbench.desktop.main.js", source: vscode-file://vscode-app/usr/share/code/resources/app/out/vs/code/electron-browser/workbench/workbench.js (3) [49253:0801/204702.419556:INFO:CONSOLE(4)] "Uncaught (in promise) TypeError: Failed to fetch dynamically imported module: vscode-file://vscode-app/usr/share/code/resources/app/out/vs/workbench/workbench.desktop.main.js", source: vscode-file://vscode-app/usr/share/code/resources/app/out/vs/code/electron-browser/workbench/workbench.js (4) [49253:0801/204702.445759:ERROR:nss_util.cc(227)] Error initializing NSS with a persistent database (sql:/home/SENSETIME/leisiquan.vendor/.pki/nssdb): libsoftokn3.so: 无法打开共享对象文件: 没有那个文件或目录 [49253:0801/204702.445798:ERROR:nss_util.cc(112)] Error initializing NSS without a persistent database: NSS error code: -5925 [49253:0801/204702.445805:FATAL:nss_util.cc(114)] nss_error=-5925, os_error=0 [0801/204702.482445:ERROR:directory_reader_posix.cc(43)] opendir /home/SENSETIME/leisiquan.vendor/.config/Code/Crashpad/attachments/63a4640e-035f-4f73-ac78-2ede9b09a5b9: No such file or directory (2) [49299:0801/204708.716049:ERROR:ssl_client_socket_impl.cc(877)] handshake failed; returned -1, SSL error code 1, net_error -3
最新发布
08-02
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值