MVC2 Annotations dll not found by VS2008 compiler, how do I make it look in the right place?
I have VS2008 SP1 running with .NET 3.5 SP1
I have MVC2 running (with MVC1 uninstalled)
All works ok except when I call the System.Compon开发者_StackOverflowents.DatAnnotations.dll, then the compiler complains of not being able to find it.
Message is:
Could not load file or assembly 'System.ComponentModel.DataAnnotations, Version=99.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
I tried repairing and reinstalling SP1 of both VS and .Net framework. I also tried referencing the assembly by browsing to it in the Reference assemblies in Programs directory.
I have tried out most of the Google search result forum results but to no avail, I think it may be something simple which I have over looked.
Any ideas?
You should open your .csproj file in notepad and correct reference path there
精彩评论