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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T15:49:03+00:00 2026-05-20T15:49:03+00:00

I am getting the following error trying to connect to DB2 Entity with .Net

  • 0

I am getting the following error trying to connect to DB2 Entity with .Net 4.0

The underlying provider failed on ConnectionString.

I get it on this line within the generated code of my entity cs file

  public DOCUMAKRContainer() : base("name=DOCUMAKRContainer", "DOCUMAKRContainer")  
    {
        this.ContextOptions.LazyLoadingEnabled = true;
        OnContextCreated();
    }

My App.config (which is created when you create entity the looks like this

      <?xml version="1.0" encoding="utf-8"?>
    <configuration>
    <configSections />
      <connectionStrings>
    <add name="DOCUMAKRContainer" 
connectionString="metadata=res://*/Documakr.csdl|res://*/Documakr.ssdl|res://*/Documakr.msl;provider=IBM.Data.DB2;provider connection string=&quot;Database=DCCPDEVL;User ID=documakr;Password=Dcpd@123;server.com:60000&quot;" providerName="System.Data.EntityClient" />
      </connectionStrings>
    </configuration>

I have tried to delete and rebuild the entity and get the same results every time. All of this is generated code when you add an entity object, so I am wondering if it is a VS 2010/IBM DB2 issue. Internet has not really given me any help.

Thoughts?

  • 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-20T15:49:04+00:00Added an answer on May 20, 2026 at 3:49 pm

    This site is a good resource: http://www.connectionstrings.com/

    It looks you have have some garbage in your connection string:

    provider connection string=&quot;Database
    

    Actually, it looks like you’ve got a conection string jammed into your connection string.

    Also, you might want to edit your post and remove or ##### the login info.

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

Sidebar

Related Questions

I am getting the following error when I get to the line that invokes
I am trying to get the DB2 data provider from a 32-bit .Net application
I am getting following error when i am trying to connect Production DB from
I'm getting the following error when trying to connect to a WCF web service:
I'm getting the following error when trying to run a JSP. I'm using Tomcat
I'm getting the following error when trying to build my app using Team Foundation
I am getting the following error when trying to install Visual Studio 2005 on
I getting the following error when I try to connect to my server app
I'm getting the following error when trying to deploy a ZIP file to a
I'm getting following error when my client tries to connect to my server socket:

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.