Launch Visual Studio 2010.
Select FileàNew Project… from
Visual Studio's menu.
Expand the Visual C# templates and click on the Cloud node. You should
see the Windows Azure Cloud Service template.
Change the name of the project to "MyCloudService" and click
the OK button.
The New Cloud Service dialog box should appear.
Click on the ASP.NET Web Role in the left pane and click the > arrow
to move it to the right pane. This allows you to create a traditional ASP.NET
web site for the cloud. You can create a MVC web site, WCF service, background
process or GCI application but for this example we'll stick with the
traditional ASP.NET web site.
Click the OK button.
Visual Studio will add a whole bunch of standard files for a typical
ASP.NET application. Some of these files include a master page, the login and
password management pages, a style script, an about page, and a scripts
Click the run button to start the project. You should get the following
remedy this you need to close Visual Studio and then launch Visual Studio again
as an administrator. You can do this by clicking on StartàAll ProgramsàMicrosoft Visual Studio 2010 and then right click on
Microsoft Visual Studio 2010. Select "Run as administrator" from the
pop-up menu. Now you need to open the MyCloudService project again.
try running the project again. If you don't have SQL Express installed you'll
get the following message.
Output window will give you a more descriptive message.
"Windows Azure Tools: Failed to initialize 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."
fix this open the Windows Azure SDK Command Prompt. This is found at StartàWindows Azure SDK v1.2àWindow Azure SDK Command Prompt.
the following in the command window.
should see the following dialog.
the OK button and then run the project again. You should see the following web