連接Sql Azure
微軟早就公布Sql Azure可以使用了,今天切身體驗了一下,方法看下面鏈接
http://blogs.msdn.com/sqlcrd/archive/2009/12/28/sql-azure.aspx
測試asp.net連接時,啟動項目報錯:
Windows Azure Tools: Failed to initialize the Development Storage service. 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.
解決方法:
go to the "Windows Azure SDK Command Prompt"
執行:
DSInit /sqlInstance:. /forceCreate
再次重新啟動,驚喜,報一堆這樣的錯誤:
命名空間“http://schemas.microsoft.com/developer/msbuild/2003”中的“PropertyGroup”。 的子元素
命名空間“http://schemas.microsoft.com/developer/msbuild/2003”中的“ServiceHostingSDKInstallDir”。
無效。應為可能元素的列表: 命名空間“http://schemas.microsoft.com/developer/msbuild/2003”中的“Property”。。
C:\Program Files\MSBuild\Microsoft\Cloud Service\v1.0\Microsoft.CloudService.targets 9 6 雜項文件
鬧了半天是因為剛才
開著"Windows Azure SDK Command Prompt"
關了就OK了