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

  • Home
  • SEARCH
  • 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 8458849
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T13:11:23+00:00 2026-06-10T13:11:23+00:00

Background information : I bought a 1.5 GB database on a web hosting server.

  • 0

Background information:

I bought a 1.5 GB database on a web hosting server. It only gave me the permission to get access to the database.

Problem:

Database connection error

You may not understand the Chinese characters, but you do know the mean of the last sentence and that is the key point of this error.

Reason:

This happened when EF is trying to retrieve database information from the web server.
As you can see it is trying to get the information of tables from the master database and INFORMATION_SCHEMA.TABLES view. This is the thing which caused this problem, because I am not granted to access to that database.

So I hope I explained this problem clearly.

Workaround:

I found a way to solve it.
Create the EF on your own local database with exactly same database structure(same tables, same columns etc.) and then change the connectionString to point to the web Server.

Problem:

Whenever there are changes on the database and you want to update the EF DataContext structure, it will always go to the master database and that view to get the information, so you have to change the connectionString back and forth. It has become trivial.

Question:

Is there any other way to do it? I found that LINQ2SQL doesn’t have this problem because it doesn’t automatically retrieve information from database. Instead, users have to drag the tables they want to use.

I am looking forward to any brilliant answers.

Cheers

  • 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-10T13:11:25+00:00Added an answer on June 10, 2026 at 1:11 pm

    You should always develop against local database and only change the connection string to database when deploying to the production server. There is no better way to do it.

    EF depends on permission to read from master database when using database first and there is currently no way to avoid it. There was even created a suggestion on Data UserVoice for this issue yesterday.

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

Sidebar

Related Questions

Background information Let's say I have two database servers, both SQL Server 2008. One
As usual, some background information first: Database A (Access database) - Holds a table
Some background information: We have an ancient web-based document database system where I work,
Background Information: I'm part of a team of developers that runs a web application
Background Information: Visual Studio 2010 (.NET Framework 4.0) Informix Server 7.31 Informix ClientSDK 3.50
The Problem: Background Information I'm writing an application for a client that is to
http://jsfiddle.net/GNK5d/ A little background information, I can not use css with this webpage due
Background information: I am trying to build a very simple web crawler in Groovy.
Background Information: Ultimately, I would like to write an emulator of a real machine
Background Information: I have a single Window VPS at example.com. I have it running

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.