解决Window Azure: Failed to start Development Storage: the SQL Server instance ‘localhost\SQLExpress’ could not be found.

时间:2022-01-06 17:06:53

运行Window Arzure 项目,报如下错误:

Windows Azure Tools: Failed to initialize Windows Azure storage emulator. Unable to start Development Storage. Failed to start Development Storage: the SQL Server instance ‘localhost\SQLExpress’ could not be found. Please configure the SQL Server instance for Development Storage using the ‘DSInit’ utility in the Windows Azure SDK.

1 如果本地已安装Sql server, 请检查SQLEXPRESS实例是否已启动, 如果没有启动,启动即可

解决Window Azure: Failed to start Development Storage: the SQL Server instance ‘localhost\SQLExpress’ could not be found.

2 运行Windows Azure SDK Command Prompt

C:\Program Files\Microsoft SDKs\Windows Azure\Emulator\devstore>dsinit /sqlinstance:sqlexpress

解决Window Azure: Failed to start Development Storage: the SQL Server instance ‘localhost\SQLExpress’ could not be found.