1 先安装了vs2010+sp1
2 安装了SQL Server 2008 R2
3 打开vs2010 新增Project-->C#-->Cloud-->Windows Azure Project-->Asp.net Web Role
4 运行提示错误Windows Azure Tools: Failed to initialize Windows Azure storage emulator. Unable to start Development Storage. Failed to start Storage Emulator: the SQL Server instance ‘localhost\SQLExpress’ could not be found. Please configure the SQL Server instance for Storage Emulator using the ‘DSInit’ utility in the Windows Azure SDK."
因为他默认(local)\SQLEXPRESS,安装了SQL 2008 R2,所以要重新指定
You need to run DSInit utility to create database. For Windows Azure SDK 1.6 the location for DSInit utility is:
C:\Program Files\Windows Azure Emulator\emulator\devstore
By default DSInit expects that your database server is (local)\SQLEXPRESS but you can change it easily. If you have MSSQL instance called SQLEXPRESS then it is enough to just run DSInit. If you need some other instance then run the following command:
DSInit /sqlinstance:<instance name>
For default instance use “.” as instance name:
DSInit /sqlinstance:.
执行完毕,运行成功!