Warning: Creating default object from empty value in /home/agilemed/aendeavors.com/wp-includes/ms-load.php on line 138

Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/agilemed/aendeavors.com/wp-includes/ms-load.php:138) in /home/agilemed/aendeavors.com/wp-content/plugins/amazon-product-in-a-post-plugin/amazon-product-in-a-post.php on line 102

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/agilemed/aendeavors.com/wp-includes/ms-load.php:138) in /home/agilemed/aendeavors.com/wp-content/plugins/amazon-product-in-a-post-plugin/amazon-product-in-a-post.php on line 102
Deploying MVC3 Razor Application to Azure » Agile Tech




Deploying MVC3 Razor Application to Azure

Warning: file_get_contents(https://ecs.amazonaws.com/onca/xml?AWSAccessKeyId=AKIAILRMGOER5ORIOURA&AssociateTag=agile08-20&IdType=ASIN&ItemId=0596801971&Operation=ItemLookup&ResponseGroup=ItemAttributes%2CImages%2COffers&Service=AWSECommerceService&Timestamp=2017-03-29T11%3A07%3A01Z&Version=2009-03-31&Signature=miZdBUzzT%2FTx2xx%2BBhZzzitgsOqvmTG8weR81AoIuag%3D): failed to open stream: HTTP request failed! HTTP/1.1 400 Bad Request in /home/agilemed/aendeavors.com/wp-content/plugins/amazon-product-in-a-post-plugin/inc/aws_signed_request.php on line 404
Deploying an existing MVC 3 application to Azure is fairly simple. Right click your solution and pick Add->New Project, and then search for the “Windows Azure Cloud Service” template. After selecting ok, you will be prompted to add some roles, which you can skip by clicking ok at the bottom of the window. Next, right click the “Roles” folder in the Azure project, and select “Add->Web Role Project In Solution” (this will only be an option if an ASP project is available in the same solution). Pick the project you would like to add, and you’re almost ready to go!
If deploying MVC 3 and using the Razor view engine, you will need to include a few additional references in the project. Make sure the following references are added (either from the .NET reference tab or from C:Program Files (x86)Microsoft ASP.NETASP.NET Web Pagesv1.0Assemblies):
- System.Web.Helpers
- Microsoft.Web.Infrastructure 

- System.Web.Mvc
- System.Web.Razor
- System.Web.WebPages
- System.Web.WebPages.Deployment
- System.Web.WebPages.Razor
For each of the above files, make sure “Copy Local” is selected. To publish your application on Azure, right click the Cloud project and pick “Publish”. If this is the first deployment, you will see the following window:
Publish Window
Under “Credentials”, add a new account and fill in the details from the Azure web interface. Select your Hosted Service and Storage Account that you would like to deploy to, and your web service will be available (relatively soon) on the cloud! If you notice issues with a restart loop in your service, or you are unable to connect, try using the “IntelliTrace for .NET 4 roles” option in the publish window to download a stack trace for troubleshooting.

1 ping

  1. ASP.NET MVC Archived Buzz, Page 1 says:

    [...] to Vote[Del.icio.us] Deploying MVC3 Razor Application to Azure « AgileMedicine (3/16/2011)Wednesday, March 16, 2011 from [...]

Leave a Reply

Your email address will not be published.


You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>