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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T01:18:28+00:00 2026-05-25T01:18:28+00:00

I have deployed an application that uses EF to the same server as my

  • 0

I have deployed an application that uses EF to the same server as my DB. Obviously the first time I ran the app on the server the DB was created – no problems.

However, when I attempt to run the same application from my local machine using the same connection string / login details as the instance running on the server, I get this exception saying the model has changed, although it hasn’t:

The model backing the ‘EkmDomainsDbContext’ context has changed since
the database was created. Either manually delete/update the database,
or call Database.SetInitializer with an IDatabaseInitializer instance.
For example, the DropCreateDatabaseIfModelChanges strategy will
automatically delete and recreate the database, and optionally seed it
with new data.

I assume this is something to do with the EdmMetadata table, but I am not sure exactly what. Can anyone shed any light on this problem?

  • 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-25T01:18:28+00:00Added an answer on May 25, 2026 at 1:18 am

    Existing databases do not generally need any database initializer so it can be turned off for your context type by calling:

    Database.SetInitializer<YourDataContext>(null);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an VSTO (outlook-addin) application that uses Unity. It is deployed to a
I have an application that uses ASP.NET MVC. I have it deployed to a
I have a web forms application that uses entity framework, the application is deployed
We have a winforms application that is deployed to users through clickonce and uses
I have a rails application deployed that works fine in Safari, Firefox, and Opera.
I have an application that is deployed with ClickOnce, and has an option to
I have a VB6 desktop application that is deployed on well over 1200 desktops.
I have an ASP.NET web application that, for whatever reason, when it is deployed
I have a web application project (wap) that is successfully being deployed to a
I have a solution that is deployed using ClickOnce. It consists of an application,

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.