2015-12-29 46 views
0

enter image description here我无法启动Azure模拟器。无法初始化Microsoft Azure存储模拟器SDK2.8

Microsoft Azure Tools: Failed to initialize Microsoft Azure storage emulator. 
The storage emulator needs to be initialized. Please run the 'init' command. Cannot create database. 

尝试更换AzureStorageEmulator.exe端口名称,但似乎它不工作:

如收到错误。 还尝试在管理员模式下运行Azure提示并试图编写DSInit/sqlInstance:但它显示错误为DSInit而不是内部命令。

对此有任何帮助。

+0

存储模拟器使用的LocalDB。所以你需要先检查它。 Visual Studio中的“SQL Server对象资源管理器”窗口中是否有任何localdb实例? –

+0

当你执行'AzureStorageEmulator init'时会发生什么? –

+0

@GauravMantri我直接键入AzureStorageEmulator.exe初始化,但仍然没有改变错误 –

回答

3

我与2.7 Azure SDK有同样的问题。 为了摆脱它,我就到了C:\用户[用户]文件夹,删除以下文件:

  • AzureStorageEmulatorDb42.mdf
  • AzureStorageEmulatorDb42_log.ldf