Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ASP.NET MVC 3 RC and Azure?

I keep running into problems creating a Windows Azure Cloud Service and trying to add an MVC 2 (which ends up being an MVC 3) Web Role. Initially it says MVC 2 but I was really hoping to get an MVC 3 app. Then it says that it will be an MVC 3 Web Role. Once I've gone through the steps, I get the following error:

Cannot add the item because the item to add it to is not a solution folder or the solution.

This happens no matter what I do to add it. Worker Role, standard Web Role work fine. Only the MVC 3 Web Role fails. Is there something special that I need to do to get this to work? Or how do I get started making an MVC 3 Azure app and combining it with a Worker Role?

like image 230
Rob Avatar asked Nov 25 '10 20:11

Rob


People also ask

What is Azure in ASP.NET MVC?

Windows Azure platform is Microsoft's cloud solution. Compared to other cloud solutions, the biggest advantage is it seamlessly integrates with Microsoft . NET Framework and the development environment, therefore, regular . NET applications can be moved to Azure effortlessly.

What is Microsoft ASP.NET MVC 3?

ASP.NET MVC 3 is a framework for building scalable, standards-based web applications using well-established design patterns and the power of ASP.NET and the . NET Framework. It installs side-by-side with ASP.NET MVC 2, so get started using it today!

How do I publish my MVC application to Azure?

Publishing the MVC applicationOpen the MVC project's solution in Visual Studio. Right-click the project in the Solution Explorer and select Publish.... Select Microsoft Azure App Service and choose Select Existing. Click Publish.

What are the 3 main components of an ASP.NET MVC application?

The Model-View-Controller (MVC) architectural pattern separates an application into three main components: the model, the view, and the controller. The ASP.NET MVC framework provides an alternative to the ASP.NET Web Forms pattern for creating MVC-based Web applications.


1 Answers

SDK 1.3 will fix this (that using the MVC web role template when MVC 3 is installed doesn't work). SDK 1.3 ships later this year.

Yes, for manually adding an MVC 3 web role, I think it works to create a new MVC 3 web app, mark the MVC binaries as "copy local" (since they're not GAC'd in the cloud), and then "add existing web role in solution" to hook it up as a web role for your project. (What I described should be exactly what Jim's talking about in that blog post.)

like image 110
user94559 Avatar answered Oct 08 '22 16:10

user94559