Windows Azure for Developers task 2: Adding Cloud Service project to existing ASP.Net Web Application

No.of Views754
Bookmarked1 times
Downloads 
Votes0
By  Dhananjay Kumar   On  12 Feb 2011 21:02:27
Tag : Windows Azure , General
In this article , i will explain Adding Cloud Service project to existing ASP.Net Web Application with Windows Azure.
emailbookmarkadd commentsprint

Images in this article missing? We recently lost them in a site migration. We're working to restore these as you read this. Should you need an image in an emergency, please contact us at info@codegain.com

 

Introduction

In this article , i will explain Adding Cloud Service project to existing ASP.Net Web Application with Windows Azure.Imagine we are moving existing Web Application or ASP.Net MVC Web Application to cloud. In that case we need to add cloud service to existing Web Application or ASP.Net MVC Web Application.
We have a solution for Web Application is as below,

Image Loading

Now right click on the solution and add a new project in the same solution. Choose Windows Azure project from the installed template and then choose a ASP.Net Web Role.

Image Loading

In role selecting window do not select any role and click on Ok. See the image below,

Image Loading

Now you can see in solution explorer, Windows Azure project is being added.

Image Loading

After creating Windows Azure project we need to associate ASP.Net Web Application project to Window Azure. So to do so,  Right click on  Roles in Windows Azure Project and select add and then choose Web Role Project in solution option

Image Loading

Then you will get the project in the solution. Press ok

Image Loading

On clicking of Ok, Visual studio will update csdef and cscfg file for the Web Role.
Now add the references of required windows azure. For that click on web Application project and add references.  Then add the below references.

Image Loading

In this way you have added cloud service project to existing Web application. That's all. hope help. thank you for reading.

 
Sign Up to vote for this article
 
About Author
 
Dhananjay Kumar
Occupation-Software Engineer
Company-Infosys Technolgies,Pune
Member Type-Gold
Location-India
Joined date-20 Jul 2009
Home Page-http://dhananjaykumar.net/
Blog Page-http://dhananjaykumar.net/
Dhananjay Kumar is Microsoft MVP on connected system. He blogs at http://dhananjaykumar.net/ . You can follow him http://twitter.com/debugmode_/ and reach him at dhananjay.25july@gmail.com
 
 
Other popularSectionarticles
Comments
There is no comments for this articles.
Leave a Reply
Title:
Display Name:
Email:
(not display in page for the security purphase)
Website:
Message:
Please refresh your screen using Ctrl+F5
If you can't read this number refresh your screen
Please input the anti-spam code that you can read in the image.
^ Scroll to Top