2016-10-11 39 views
0

大約一週前,我的計算機獲得了Windows Anniversary更新。從那時起,我一直無法啓動Azure存儲模擬器。我試過卸載並重新安裝Azure存儲模擬器和SQL Express Local DB。我也嘗試了步驟here。沒有解決這個問題。 MSSQLLocalDB存在,我可以通過SQL Management Studio連接到它。更新到Windows 10週年更新後,Azure存儲模擬器失敗

如果我嘗試手動草簽存儲數據庫中,我得到這個錯誤信息:

C:\Program Files (x86)\Microsoft SDKs\Azure\Storage Emulator>AzureStorageEmulator.exe init -inprocess 
Windows Azure Storage Emulator 4.3.0.0 command line tool 
Cannot reserve port: HttpSetServiceConfigurationAcl failed: Cannot create a file when that file already exists. (Exception from HRESULT: 0x800700B7). 
One or more initialization actions have failed. Resolve these errors before attempting to run the storage emulator again. 
Error: Cannot reserve port: HttpSetServiceConfigurationAcl failed: Cannot create a file when that file already exists. (Exception from HRESULT: 0x800700B7). 

編輯:在這一點上,我現在試圖卸載/重新安裝的Visual Studio 2015年,SqlLocalDB 2016和Azure的SDK 2.9.5 。存儲模擬器仍然無法初始化。如果我重新運行MicrosoftAzureStorageEmulator.msi,我收到錯誤消息:「Windows Storage Emulator Service已停止工作」。這裏的日誌:

Action 10:33:33: RunInitialize. Initializing the Storage Emulator 
CAQuietExec: Windows Azure Storage Emulator 4.5.0.0 command line tool 
CAQuietExec: Error: An unknown error has occurred. 
CAQuietExec: Error 0xffffffff: Command line returned an error. 
CAQuietExec: Error 0xffffffff: CAQuietExec Failed 
CustomAction RunInitialize returned actual error code 1603 (note this may not be 100% accurate if translation happened inside sandbox) 
Action ended 10:35:57: InstallFinalize. Return value 3. 
Action 10:35:57: Rollback. Rolling back action: 
Rollback: Initializing the Storage Emulator 
Rollback: Copying new files 
Rollback: Updating component registration 
Action ended 10:35:57: INSTALL. Return value 3. 
Action ended 10:35:57: ExecuteAction. Return value 3. 
Action 10:35:57: FatalError. 
Action start 10:35:57: FatalError. 
Action 10:35:57: FatalError. Dialog created 
Action ended 10:35:58: FatalError. Return value 2. 
Action ended 10:35:58: INSTALL. Return value 3. 

SqlLocalDB似乎大部分功能正常。我可以從命令行創建和刪除數據庫而不會出現問題。下面是我SqlLocalDB的輸出:

c:\Users\genslow\Downloads>sqllocaldb i 
MSSQLLocalDB 
ProjectsV13 
v12.0 
v13.0 

感謝, 格雷格

+0

責備BillCo ... Win10更新現在是一個完整的混亂,M $使用每個人作爲他們的測試者... –

+0

你能嘗試從提升的命令提示符運行命令嗎?或者,也可以刪除「-inprocess」參數,它會提示提升。此外,您嘗試啓動模擬器時看到的錯誤是什麼? –

+0

謝謝邁克爾。我試過的所有步驟都是在提升的命令提示符下進行的。請參閱我已添加到原始問題的其他數據。存儲模擬器目前不會在沒有崩潰的情況下安裝。 –

回答

0

Cannot reserve port: HttpSetServiceConfigurationAcl failed: Cannot create a file when that file already exists. (Exception from HRESULT: 0x800700B7).

根據錯誤信息,看來數據庫已經存在,所以返回錯誤。請嘗試刪除數據庫(您可以在刪除數據庫文件之前備份數據庫文件),然後執行Init命令。您也可以嘗試使用「-forcecreate」,這將強制創建數據庫,即使它已經存在。此外,請確保以管理員身份運行以配置存儲模擬器。

+0

SqlLocalDB -i不報告任何現有的天青數據庫,我找不到任何流浪的.mdf文件。 -forcecreate沒有任何區別。如果此錯誤消息已返回衝突文件的文件名,這將非常有幫助。 –

+0

[此博客](https://blogs.msdn.microsoft.com/cie/2016/05/17/azure-emulator-crash-with-error-0x800700b7-cannot-create-a-file-when-that-文件已存在/)討論「Azure模擬器崩潰與錯誤0x800700b7:無法創建文件時,該文件已存在」問題,您可以閱讀它。 –