Let's say we're migrating existing Web applications or ASP.net MVC Web applications into the cloud. In this case, we need to add cloud services to an existing Web application or asp.net MVC Web application.
We have a solution for a Web application, as follows:
Now right-click on the solution and add a new project to the same solution. Select the Windows Azure project from the installed templates and choose ASP.net Web role.
Do not select any role in the Role Selection window and click OK. As shown in the following figure,
Now, in Solution Explorer, you can see that the Windows Azure Project has been added to this solution.
After creating the Windows Azure Project, we need to associate the ASP.net Web Application project to window Azure. To do this, right-click the "Roles" node in the Windows Azure Project, select "Add" and select the "We Project in Solution" option.
Then you will see this project in the solution. Click "OK"
When you click OK, Visual Studio updates the Csdef and cscfg files for this web role.
Now add some references to Windows Azure. To do this, right-click on the Web Application project and choose Add References. Then add the following references.
In this way, you can add a cloud service project to an existing Web application.
Original name: Windows Azure for Developers task 2:adding Cloud Service Project to existing asp.net Web creator Author: Dhananjay Kumar