重新安裝SQL Server 2008 R2遇到配置錯誤的解決辦法 .

taogchan發表於2012-06-04

轉載原文:自學sql server 2008高階程式設計時要安裝示例資料庫,發現自己裝的express不能支援安裝例項資料庫,果斷解除安裝重灌,把sql server安裝檔案全部解除安裝刪除,並且把登錄檔清理乾淨(不然重灌可能會失敗),然後重灌sql server 2008sp2和SQLEXPRADV_x64_CHS.exe,重灌真是問題多多啊

在Windows 7下試圖將SQL Server 2008 Express升級為R2版時,還未能進入安裝介面,就丟擲異常。以下是異常的部分資訊:

See the end of this message for details on invoking 
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.Configuration.ConfigurationErrorsException: An error occurred creating the configuration section handler for userSettings/Microsoft.SqlServer.Configuration.LandingPage.Properties.Settings: Could not load file or assembly 'System, Version=4.0.0.0, Culture=neutral, P licKeyToken=b77a5c561934e089' or one of its dependencies. The system cannot find the file specified. (C:\Users\\AppData\Local\Microsoft_Corporation\LandingPage.exe_StrongName_ryspccglaxmt4nhllj5z3thycltsvyyx\10.0.0.0\user.config line 5) ---&gt System.IO.FileNotFoundException: Could not load file or assembly 'System, Version=4.0.0.0, Culture=neutral, P licKeyToken=b77a5c561934e089' or one of its dependencies. The system cannot find the file specified.
File name: 'System, Version=4.0.0.0, Culture=neutral, P licKeyToken=b77a5c561934e089'
   at System.Configuration.TypeUtil.GetTypeWithReflectionPermission(IInternalConfigHost host, String typeString, Boolean throwOnError)
   at System.Configuration.RuntimeConfigurationRecord.RuntimeConfigurationFactory.Init(RuntimeConfigurationRecord configRecord, FactoryRecord factoryRecord)
   at System.Configuration.RuntimeConfigurationRecord.RuntimeConfigurationFactory.InitWithRestrictedPermissions(RuntimeConfigurationRecord configRecord, FactoryRecord factoryRecord)
   at System.Configuration.RuntimeConfigurationRecord.CreateSectionFactory(FactoryRecord factoryRecord)
   at System.Configuration.BaseConfigurationRecord.FindAndEnsureFactoryRecord(String configKey, Boolean& isRootDeclaredHere)

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry val [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry val [HKLM\Software\Microsoft\Fusion!EnableLog].

解決方法:

將C:\Users\\AppData\Local\Microsoft_Corporation\資料夾下的LandingPage.exe*資料夾刪除,再執行安裝程式即正常。

xp的在:C:\Documents and Settings\Administrator\Local Settings\Application Data\Microsoft_Corporation下(建議先備份一下)

解決方法來自:

進入安裝後,剛開始最好設為windows預設登入,以後再新增賬戶,繼續,為資料庫指定例項名(第二次安裝嘛不能用預設),指定管理員,繼續下一步,然後為資料庫express和報表服務設定為手動(不然安裝後只要一開機資料庫就會啟動,很佔資源使系統反應很慢),然後指定登入名和密碼,由於系統登入賬戶沒設密碼,試了幾次都發出錯誤警告:“[錯誤訊息] 為 SQL Server 服務指定的憑據無效。若要繼續操作,請為 SQL Server 服務提供有效的帳戶和密碼。  [詳細資訊] Microsoft.SqlServer.Configuration.SqlEngine.ValidationException: 為 SQL Server 服務指定的憑據無效。若要繼續操作,請為 SQL Server 服務提供有效的帳戶和密碼。”,於是馬上為賬戶設密碼,安裝程式可以繼續下一步安裝,安裝進度比較慢。

為 AdventureWorks 資料庫安裝配置新的 SQL Server 例項可以參考微軟官方網站的資料:

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/22392018/viewspace-731824/,如需轉載,請註明出處,否則將追究法律責任。

相關文章