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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T02:53:12+00:00 2026-05-28T02:53:12+00:00

The complete error I am getting is this: Model compatibility cannot be checked because

  • 0

The complete error I am getting is this:

Model compatibility cannot be checked because the database does not contain model metadata. Ensure that IncludeMetadataConvention has been added to the DbModelBuilder conventions.

I have used tried this with SQL Server Compact and it works fine, but the hosting provider only supports CE for dedicated servers an I am on a shared plan, so I am using SQL Server 2008. My connection string in the db is in the following format:

  <connectionStrings>
    <add name="DBContext"
         connectionString="Data Source=1.1.1.1;Initial Catalog=dbname;User Id=user;Password=pass;"
         providerName="System.Data.SqlClient"/>
  </connectionStrings>

I also have a DatabaseInitializer that runs in Application_Startup. If any further code is needed, just let me know? I also do not have edmx data model created, I am using the EF Code First.

I changed the initializer code Drop the database always, but now I get the error, CREATE DATABASE permission denied in database ‘master’. I don’t know why I get this when I telling it the Initial Catalog to use.

I am passing in null to the SetInitializer for now, but now I get the following error:

Cannot open database “dbname” requested by the login. The login failed.
Login failed for user ‘user’.

I am still using the connectionstring from above.

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

    I changed the initializer code Drop the database always, but now I get
    the error, CREATE DATABASE permission denied in database ‘master’. I
    don’t know why I get this when I telling it the Initial Catalog to
    use.

    You must never do this in shared hosting because you almost never have permission to directly create database. Databases can be only created in special interface of hosting provider. SQL server allows you to delete database you owns but once you deleted it your permissions are gone and you cannot recreate it without permission to create databases (in shared hosting you never have this permission).

    I am passing in null to the SetInitializer for now, but now I get the following error:

    It is too late. Your database is deleted. You must create it through hosting provider interface or contact your hosting provider to recreate it.

    I also have a DatabaseInitializer that runs in Application_Startup.

    You cannot use any built-in database initializer in shared hosting because all of them expects that they will create database. You can use custom initializer to fill tables to existing database.

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

Sidebar

Related Questions

I'm getting this error: The service class myclass does not comply to one or
Cannot complete the install because one or more required items could not be found.
I am trying to grab a webpage with actionscript, but keep getting this error
I'm getting this error: uninitialized constant OpenidsController I can't figure out why. I'm following
I am getting this error while trying to run an ajaxq call. I am
I'm getting this error while trying to de-serialize my object : [org.xml.sax.SAXParseException: cvc-complex-type.2.4.b: The
I'm getting this error when dealing with a number of classes including each other:
I am getting this error in java in my junit test code. I looked
I keep getting this error when I try and view my register user page
Getting this error when running pip install -U selenium . Mid way through the

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.