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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T12:10:02+00:00 2026-06-14T12:10:02+00:00

I’m using EF 4.3 Code first. Developing EF Code first application and making CRUD

  • 0

I’m using EF 4.3 Code first. Developing EF Code first application and making CRUD operations done really well on my dev box. Real problem started after I moved the code to WCF service test Server. While I’m trying to insert a record I’m getting

“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”

Same code in Web Server is working well and its done did by another developer(left the company now), Are there any additional config setting I should do on IIS or in application config before deploying it to WCF TEST Server.
I mean do I need to install some thing or verify in GAC ?

WCF Server: Windows Server 2008 R2

EF Version : EF 4.3 Code First . Database exists ahead of deployment on WCF test server

Config File :

<connectionStrings>
<add name="MyApplicationDbContext" providerName="System.Data.SqlServerCe.4.0"    connectionString="Server=jmicsq10webdev\web_dev;Database=PlEcom;Integrated Security=SSPI;" />
</connectionStrings>

<configSections>   
<section name="entityFramework"   type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=4.3.1.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</configSections>

I tried also with ProverderName = “system.Data.SqlClient.dll”, but didn’t fix my 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-06-14T12:10:03+00:00Added an answer on June 14, 2026 at 12:10 pm

    I got the same error, so I went and changed from

    AttachDBFilename=|DataDirectory|\aspnet.mdf" 
    providerName="System.Data.SqlServerCe.4.0"/>
    

    this line to

    AttachDBFilename=|DataDirectory|\aspnet-MvcHopitalPatient-20121116125855.mdf"
    providerName="System.Data.SqlClient" />
    

    to the code snippet below

     <connectionStrings>
       <add name="PatientDBContext"
            connectionString="Data Source=|DataDirectory|Patients.sdf"
            providerName="System.Data.SqlServerCe.4.0"/>
    
        <add name="DefaultConnection" 
            connectionString="Data Source=(LocalDb)\v11.0;
            Initial Catalog=aspnet-MvcHopitalPatient-20121116125855;
            Integrated Security=SSPI;
            AttachDBFilename=|DataDirectory|\aspnet-MvcHopitalPatient-20121116125855.mdf"
            providerName="System.Data.SqlClient" />
    
     </connectionStrings>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm making a simple page using Google Maps API 3. My first. One marker
We're building an app, our first using Rails 3, and we're having to build
I am reading a book about Javascript and jQuery and using one of the
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
That's pretty much it. I'm using Nokogiri to scrape a web page what has
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and
I have this code to decode numeric html entities to the UTF8 equivalent character.
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this

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.