Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8611663
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T04:25:54+00:00 2026-06-12T04:25:54+00:00

I have a working website targeting .Net 4.0 and entity framework 4.3.1. After installing

  • 0

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T04:25:55+00:00Added an answer on June 12, 2026 at 4:25 am

    To make this work you have to do the following:

    1. Open NuGet package manager and find in the Installed packages tab
      the Entity Framework package. Uninstall it.

    2. Now Go to the Online tab and search for Entity Framework. Hit
      install. Now your project should reference the correct version of EF
      that is 5.0 instead of 4.4.0 (the version I had before intalling
      this new version).

    Hope it helps.

    For more info, take a look here: http://forums.asp.net/t/1779042.aspx/1

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a working website website project in visual studio. I can view all
I have a working SOAP request from my website to a .net based API.
I have been working on developing an image gallery website in yii framework. I
I have been working on a multilingual website which has been developed in ASP.net
I have working website in PHP with a MySQL backend which has several tables
I have a working website, where I use this expression everywhere. price.ToString(C) It currently
I have been working on a website that has some images that I need
I have been working with an existing website out company has running until I
So I have been working with javascript for a website I am designing, shocker
I am a photographer and I have been working on redesigning my website lately.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.