更新到Windows 10周年更新后,Azure存储模拟器失败

时间:2016-10-11 19:42:35

标签: sql-server azure azure-storage

大约一周前,我的机器获得了Windows Anniversary更新。从那时起,我无法启动Azure存储模拟器。我已经尝试卸载并重新安装Azure存储模拟器和SQL Express本地数据库。我还尝试了here概述的步骤。都没有解决这个问题。 MSSQLLocalDB存在,我可以通过SQL Management Studio连接到它。

如果我尝试手动初始化存储数据库,则会收到以下错误消息:

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存储模拟器服务已停止工作”。这是日志:

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 i的输出:

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

谢谢, 格雷格

1 个答案:

答案 0 :(得分:0)

  

无法保留端口:HttpSetServiceConfigurationAcl失败:当该文件已存在时无法创建文件。 (HRESULT异常:0x800700B7)。

根据错误消息,似乎数据库已经存在,因此它返回错误。请尝试删除数据库(您可以在删除之前备份数据库文件),然后执行 Init 命令。您也可以尝试使用“ -forcecreate ”,这将强制创建数据库,即使它已经存在。此外,请确保以管理员身份运行以配置存储模拟器。