Adding Cloud Service project to existing ASP.Net Web Application

0 comments

Imagine that we are moving an existing Web Application or ASP.Net MVC Web Application to cloud. In that case we need to add cloud service to an existing Web Application or ASP.Net MVC Web Application.
We have a solution for Web Application as below.
1.gif
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.
2.gif
In role selecting window do not select any role and click on Ok. See the image below.
3.gif
Now you can see in solution explorer that a Windows Azure project is being added.
4.gif
After creating a Windows Azure project we need to associate an 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.
5.gif
Then you will get the project in the solution. Press ok.
6.gif
On clicking of Ok, Visual studio will update csdef and cscfg file for the Web Role.

READ MORE >>

0 comments: