MVC 3 on windows azure - asp.net-mvc

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.

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:

How to create a ASP.NET MVC web application project in VS2012

I am using Windows 8, and Visual Studio 2012. I need to create a ASP.NET MVC web application. But, when i click on Project types --> visual C# i only see windows store and not Web (as seen in VS 2008).
How can i create a MVC web application ? Help
I suspect you are using Visual Studio Express for Windows 8?
If so, you will also need Visual Studio Express for Web in order to create your MVC app.
See the different versions here: http://www.microsoft.com/visualstudio/eng/products/visual-studio-express-products
u can also user WebMatrix to create aps.net mvc project
it's free tool for asp.net from microsoft
u can get WebMatrix from here http://www.microsoft.com/web/webmatrix/
During the install, there should have been options, one of which was Visual Web Developer. Make sure that was installed (that was what it was called in VS 2010).

Move MVC application in VS2008 to windows azure

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

Resources