Move MVC application in VS2008 to windows azure - asp.net-mvc

I am new to Azure.I have MVC application build in VS 2008. It does not uses any database. How can I migrate the application to windows azure.
Which SDK and tool kit i should use.
Do i need to upgrade my app to 2010 before migrating
Is there any built in support for MVC
What role I should use
Thanks
Ank

Windows Azure hosts various roles, one of which is a WebRole. You can easily place an MVC project into this role for hosting on Azure.
Firstly, you will need to upgrade to VS2010 as I believe the latest SDK (Version 1.4) only supports VS2010. Download that from here http://www.microsoft.com/downloads/en/details.aspx?FamilyID=7a1089b6-4050-4307-86c4-9dadaa5ed018&displaylang=en
Once you have it installed, you create a Cloud project in VS. You then add your existing MVC projects to this solution. You then add a web role to the Cloud project you created and select your MVC project as the target.
There are a few things extra you need, such as setting copy-local on some referenced assemblies.
Here is an excellent post on the subject: http://blogs.msdn.com/b/jnak/archive/2008/10/28/asp-net-mvc-projects-running-on-windows-azure.aspx

Which SDK and tool kit i should use.
1.4 is the latest download link
Do i need to upgrade my app to 2010 before migrating
yes, SDK 1.4 does not support 2008
Is there any built in support for MVC
yes you will find a ASP.NET MVC 2 WebRole template`
What role I should use
this depends, try starting with Extra Small

Related

Adding an MVC project to an existing web application with .Net 4

I have an existing old WebForms application.
I need to add an MVC project.
The server where it is hosted is Windows 2003 R2, so only .Net 4 can be used.
And we use VS 2017.
I tried to add the project, but there is only "Empty" option available, and the "MVC" checkbox below is disabled, as well as "Web Forms" and "Web API".
Could you please tell how I can add an MVC project?
Presumably you need to download the ASP.NET MVC 4 installer.
The bigger question is, why not spin up an additional webserver which can support newer versions of .net?

Why webmatrix create mvcforum site as website and not web application

I created web app of mvcforum with webmatrix and now when i create
again its website and not soloution project how i can create web
soloution project of mvcforum with webmatrix?
WebMatrix doesn't support the Web Application project type. Therefore it is not the correct tool for ASP.NET MVC development. You should use Visual Studio instead. The Community edition is free for single users and includes the same feature set as the Developer version (https://www.visualstudio.com/en-us/products/visual-studio-community-vs.aspx).

How to add Azure AD Authentication to Existing ASP.NET MVC Application?

I have an existing ASP.NET MVC application using Visual Studio 2013. I followed this walk-through but it only concerns itself with a new greenfield project while selecting Change Authentication in project template: Developing ASP.NET Apps with Windows Azure Active Directory
I am not interested in using OWIN and OpenID Connect Katana modules as these components have lots of issues so I am waiting for that technology to mature and render out all the current problems.
I aim is understand how to manually add all the components and configuration to my existing ASP.NET MVC application to achieve the same Azure AD authentication model in Rick Anderson's article.
The tooling in VS 2013 doesn't support adding this to an existing project. At the bottom of the link you referenced in the More Information section is a deep dive article where I dissect the code and configuration that gets added. So, you could use that as a reference to find the deltas and apply them to your project.
Now, Visual Studio 2015 offers us some hope in this scenario. It's in preview of course, but you may give it a try. In Solution Explorer, right click on your existing project and select the Configure Azure AD Authentication option.
In Visual Studio 2017 the option to enable Authentication with Azure Active Directory is in Connected Services:

ASP.NET MVC 1 to Azure migration

I have a web application built with ASP.NET MVC 1 in Visual Studio 2008.
How do I migrate this web application to Azure? All the tutorials are either for Visual Studio 2010 or don't work anymore. I've installed the Web Platform Installer and the Azure SDK, and in VS2010 the Azure project template is available, but not in VS2008. I've checked alot of guides, but all the download links on MSDN for anything Visual Studio 2008 related seem to be broken.
My idea was just to add an Azure deployment project to the solution, add the references to the right Azure libraries, and deploy, but I can't even get that far since I have no idea where to begin.
Much of the MVC stuff in my application is highly customized, making a migration to ASP.NET MVC 2/3/4 difficult. And since it's MVC 1, which has no tooling support for Visual Studio 2010, I would preferably avoid a migration to Visual Studio 2010.
You can go about this in two ways. You can either use cspack to package up the code and deploy to Azure or you can install an older SDK that supports Visual Studio 2008:
CSPack: http://msdn.microsoft.com/en-us/library/windowsazure/gg432988.aspx
Older SDKs: http://www.windowsazure.com/en-us/develop/downloads/archive-net-downloads/
I know 1.1 installed on VS2008 and I know 1.4 does not, not sure about the ones in between.

MVC 3 on windows azure

i am developing a SAAS and want to use MVC on windows Azure. To get started i need how i can set it all up in Visual Studio 2010? Can i create the MVC 3 project locally and later integrate with Azure?
I will be using the cloud emulator
cheers
The Windows Azure Tools update from Augustus 2010 has now integrated MVC3 support so there shouldn't be anything else you need to do besides making a Azure Solution and adding a MVC3 Web Role.
http://blogs.msdn.com/b/windowsazure/archive/2011/08/03/announcing-the-august-2011-release-of-the-windows-azure-tools-for-microsoft-visual-studio-2010.aspx
I just had to do this recently. You can create an MVC3 web app just like you normally would, and then later, you can add a new Azure project to your solution and then add a WebRole for the existing MVC3 app. It worked without any issues.
Hope this helps.

Resources