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 7520223
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T02:01:51+00:00 2026-05-30T02:01:51+00:00

Ive been getting an error, I have an error with the entity framework. I

  • 0

Ive been getting an error, I have an error with the entity framework. I have a SQL Server 2005 SP2.

When the ProviderManifestToken = “2008” I get this error.

The version of SQL Server in use does not support datatype 'datetime2'.

Ive done the change shown here and when chagned to “2005” I get

Schema specified is not valid. Errors: 
DatabaseAccess.Schema.Model1.ssdl(2,123) : error 0169: All SSDL artifacts must
target the same provider. The ProviderManifestToken '2008' is different 
from '2005' that was encountered earlier.

I dont understand

My Database version is Microsoft SQL Server Standard Edition (64-bit) 9.00.3042.00

Ive tried deleting the schema and re adding it to no avail. Restarting etc

Ive alse made all my date time fields nullable

  • 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-05-30T02:01:53+00:00Added an answer on May 30, 2026 at 2:01 am

    I have seen this before and it is to do with the datetime being Nullable. I think if you break into the code you will see that the value of the date time when you create a new instance of the class is a default(DateTime) and not null and it is this value that is causing the error.

    If possible, can you try nulling the DateTime value before saving changes on the context?

    I will try to put together a sample demonstrating when and how this occurs.

    Found a brief explanation here:

    http://dotnetslackers.com/Community/blogs/bmains/archive/2010/11/19/entity-framework-4-and-quot-the-conversion-of-a-datetime2-data-type-to-a-datetime-data-type-resulted-in-an-out-of-range-value-quot.aspx

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

Sidebar

Related Questions

I have been getting this error in Ruby 1.9, Rails 3.0, ActiveRecord 3.0: incompatible
This might seem ridiculously simple, but I've been getting all kinds of error depending
I have been running into this error for the last 3 or 4 weeks
I've been getting this error in emacs whenever I type anything in certain buffers:
ive been attempting this problem for a while and I cant seem to get
I've been getting this error recently, after several reloads of the same page: System.InvalidOperationException:
I've been getting this error when I try and use my model container: No
I've been getting this error, and I can't figure out how to fix it:
I have recently been getting an error in the Windows Forms designer of VS2010SP1
I've been getting an error recently while debugging an ASP.NET application in Visual Studio

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.