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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T19:15:34+00:00 2026-06-10T19:15:34+00:00

I am using EF Code First (.NET 4.5 + VS2012). My project was creating

  • 0

I am using EF Code First (.NET 4.5 + VS2012). My project was creating and using LocalDB correctly. I have SQL Server Express also installed on my machine (2008R2). I didn’t change any configuration yet it switched to using SQL Server Express.

I have now stopped my SQL Server instance and whenever I try to rebuild the database using Update-Database I get the following message:

System.Data.ProviderIncompatibleException: An error occurred while
getting provider information from the database. This can be caused by
Entity Framework using an incorrect connection string. Check the inner
exceptions for details and ensure that the connection string is
correct. —> System.Data.ProviderIncompatibleException: The provider
did not return a ProviderManifestToken string. —>
System.Data.SqlClient.SqlException: A network-related or
instance-specific error occurred while establishing a connection to
SQL Server. The server was not found or was not accessible. Verify
that the instance name is correct and that SQL Server is configured to
allow remote connections. (provider: SQL Network Interfaces, error: 26
– Error Locating Server/Instance Specified)

My configuration file has the following EF configuration:

<defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">
  <parameters>
    <parameter value="v11.0" />
  </parameters>
</defaultConnectionFactory>

Any advice? I’d prefer to be using Localdb rather than SQL Server Express.

  • 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-10T19:15:36+00:00Added an answer on June 10, 2026 at 7:15 pm

    What it turned out to be, for some reason the GUI app.config referenced SqlConnectionFactory not LocalDbConnectionFactory. Fixing this up solved it.

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

Sidebar

Related Questions

I am using ASP.NET MVC3 with EF Code First. I have not worked previously
I am using Entity Framework code first and ASP.NET MVC 3. I have the
I'm using EF Code First (4.3.1) on a personal ASP.NET MVC 3 project, with
I am using Entity Framework 4.1 code first and ASP.NET MVC 3. I have
I'm building a .NET 4 WPF application using Entity Framework code first and SQL
I'm building a web app using EF Code First and ASP.NET MVC. I have
i have been using code first technique in ASP.NET MVC3 app. here it is
Let me first put the code snippets here. I am just using the ASP.NET
I'm using Code First with EF 5. Currently I have SPs that return just
I successfully created database on my local server using Code First, migrated it to

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.