vtortola
vtortola

Reputation: 35963

Visual Studio 2010 gets stuck with solution with MVC3 Razor and Azure

I've a solution with several .dll projects, an Asp.NET MVC3 Razor project and an Cloud project.

If I try to compile the solution with the Cloud project loaded, VS2010 gets stuck in "Buil started".

I have to forcefully close VS2010 killing the process and restart. Then the compiling works good once, the next time it will get stuck again.

If I unload the project and set the mvc project as start-up, everything works (but azure of course).

What could be the problem?

Cheers.

Upvotes: 0

Views: 533

Answers (1)

Sergi Papaseit
Sergi Papaseit

Reputation: 16204

Was it by any chance an ASP.NET MVC project to which you added a CloudService project later on or did you start off with a CloudService from the very beginning?

I was in the former situation and I had no end of problems, like not being able to open property pages or deploying the application. It's not quite your issue, but the following article might help:

http://tomkrueger.wordpress.com/2010/07/27/azure-deployment-issue-after-upgrading-to-visual-studio-2010-and-net-4-0/

As I say, my problems started because I actually added an Azure project to an existing ASP.NET MVC solution and there were some unnecessary settings left over in the web.csproj file.

All I had to do was open web.csproj in notepad and remove all occurrences of the <PlatformTarget> element.

My MVC prjoject was x86 and of course Azure works on x64 only. Even though I had the platform target set up as AnyCPU somehow Azure couldn't quite get along with it.

Maybe cleaning up your project files helps as well.

Upvotes: 2

Related Questions