Installing MVC4 beta seems to have broken MVC3 apps

This is the second time this has happened to me. I installed MVC4 earlier last year and had to go through and uninstall everything on my machine to get MVC3 apps working again.

When I realised MVC4 beta was available I reminded myself of this but decided to trust that it would work side by side again and proceeded to install it.

Now I'm getting the most bizarre error message in an MVC3 app.

I have a view that references a property on it's model.

e.g.

<td>@Model.NewProperty</td>

for some reason I get an error message saying that NewProperty doesn't exist. It clearly does and I know this is scoped to my machine as it builds on my collegues pc's.

If I comment out the @Model.NewProperty line it builds fine.

Has anyone experienced similar symptoms to this? It's strange!

Answers


I ran into a related problem where MVC4 broke my MVC3 apps, they would not even compile. This is a known issue with the beta and the solution is here:

http://www.asp.net/whitepapers/mvc4-release-notes

Look for the "Known Issues and Breaking Changes" section toward the bottom. then find "Installing ASP.NET MVC 4 Beta breaks ASP.NET MVC 3 RTM applications"

It explains how to get your MVC3 apps working again.


Open your Web.Config file and add

<add key="webpages:Version" value="1.0.0.0"/>

to

<appSettings>

node...


Need Your Help

Two joins and a where - Doctrine2

php doctrine-orm dql

I have the following query in Doctrine2.

How do I manipulate the size or position of image in jquery using sliding, zooming and cropping?

javascript jquery jquery-ui jquery-plugins

I would like to mimic facebooks banner image upload cropping feature. Currently they allow users to upload a banner but before saving it they cam slide it up or down until their desired portion of ...