I'll tell you how to develop an application for the Azure platform. Let's start with a simple cloud application and continue our Windows Azure journey.
Prepare cloud computing Tools
To develop applications on an azure platform, you need to download some of the necessary toolset and install them. This includes visual Studio 2010 and Azure Tool kit.
Start Azure Development
Start Visual Studio 2010. Click "Files"-〉 "New Project ...", then select the "Cloud" node under the Visual C # template, click OK, and then continue. If you click OK, it prompts you to select various types of roles for Azure applications.
Select ASP.net Web role. When you hover your mouse over the character you choose, it prompts you to delete it or rename it. Click on the pencil icon to rename the character.
In this example, we renamed it "Myaspnetwebrole". Click OK to create this project.
If you do, Visual Studio 2010 generates the background code for this project and generates some items in the Solution Explorer, and then you notice that the Default.aspx page is created with the following content:
To learn more about ASP.net visit <a href= "http://www.asp.net" title= "asp.net Website" >WWW.ASP.NET</A>
</p>
<p>
can also find <a href= "http://go.microsoft.com/fwlink/?LinkID=152368&clcid=0x409"
title= "MSDN asp.net Docs" >documentation on asp.net at msdn</a>.
</p>
</asp:Content>
You'll also notice that in Solution Explorer, "Myfirstazureproject" has a role called "Myaspnetwebrole."
In addition to this web role, the wizard creates two additional files
Now, add some custom code to your first Azure application. Look at the section highlighted in the code snippet below and you'll know what you need to change in "default.aspx".
To learn more about ASP.net visit <a href= "http://www.asp.net" title= "asp.net Website" >WWW.ASP.NET</A>
</p>
<p>
can also find <a href= "http://go.microsoft.com/fwlink/?LinkID=152368&clcid=0x409"
title= "MSDN asp.net Docs" >documentation on asp.net at msdn</a>.
</p>
</asp:Content>
You can switch to the "default.aspx" Design view to see if you like the layout or whether you feel satisfied with the changes.
Now you can start to prepare for running this cloud application. One thing to note is that running the Azure Emulator requires administrator privileges. So if you don't run Visual Studio as an administrator at first, you have to restart Visual Studio as an administrator.
If you press "Press", Visual Studio will start deploying cloud simulators for this project, and after that, you will see that the cloud Simulator has been loaded with this information
Clicking OK will let the dialog disappear and run the simulator. This simulator is located in your system tray area.
If the emulator starts, it starts the "Default.aspx" page first
Now you have the first cloud application that can run in the emulator. You can continue to deploy this application into the cloud. In the next article, you will learn how to deploy this!
Summary
In this article, we tell you how to create an Azure application. I sincerely hope that this example will increase your interest in your cloud computing platform.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.