Monday, June 24, 2013

Notes on MVC Music Part 7 Tutorial

When using Visual Studio 2012 and MVC 3 to practice the MVC Music Store tutorial, you may get this error on part 7:
‘CompareAttribute’ is an ambiguous reference between ‘System.ComponentModel.DataAnnotations.CompareAttribute’ and ‘System.Web.Mvc.CompareAttribute’

Here is the solution:
Remove the reference using System.Web.Mvc;
from MvcMusicStore\Models\AccountModels.cs

No comments:

Post a Comment

How to recognize a fake Geek Squad renewal scam | Consumer Advice

Except from Scammers are at it ag...