Reputation: 435
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!
Upvotes: 2
Views: 1284
Reputation: 31
Open your Web.Config file and add
<add key="webpages:Version" value="1.0.0.0"/>
to
<appSettings>
node...
Upvotes: 1
Reputation: 1207
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.
Upvotes: 6