I have a working website targeting .Net 4.0 and entity framework 4.3.1. After installing .Net 4.5 ( with Visual Studio Express 2012 ) I can compile the website on Visual Web Developer Express 2010 but when i try to navigate to
http://localhost/
I get this error:
CS0246 “The type or namespace name 'MaxLength' could not be found” on
[Column("titulo"), Required(), MaxLength(150)]
Línea 13: public string Titulo { get; set; }
I have this using statement:
using System.ComponentModel.DataAnnotations;
The application pool on IIS is configured for .Net 4.0.
I tried updating Entity framework to 4.4 ( from Nuget ) and added this using statement:
using System.ComponentModel.DataAnnotations.Schema;
But then the error is:
CS0246 “The type or namespace name 'Column' could not be found”
Any suggestion to solve the problem?
Thx.