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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T05:28:13+00:00 2026-05-14T05:28:13+00:00

How can I prepare the configuration settings (App.config, maybe?) I need to use Enterprise

  • 0

How can I prepare the configuration settings (App.config, maybe?) I need to use Enterprise Library Data Access Application Block in a C# console project?

Following is what I currently trying with an App.config in the console project. When I call DatabaseFactory.CreateDatabase(), it throws an exception which says:

“Configuration system failed to initialize”

<configuration>
  <dataConfiguration>
    <xmlSerializerSection type="Microsoft.Practices.EnterpriseLibrary.Data.
            Configuration.DatabaseSettings, Microsoft.Practices.EnterpriseLibrary.Data,
            Version=1.0.0.0, Culture=neutral, PublicKeyToken=null">
      <enterpriseLibrary.databaseSettings xmlns:xsd="http://www.w3.org/2001/XMLSchema"
              xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" defaultInstance="Northwind"
              xmlns="http://www.microsoft.com/practices/enterpriselibrary/08-31-2004/data">
        <databaseTypes>
          <databaseType name="Sql Server" type="Microsoft.Practices.EnterpriseLibrary.Data.Sql.SqlDatabase,
            Microsoft.Practices.EnterpriseLibrary.Data, Version=1.0.0.0, Culture=neutral,
            PublicKeyToken=null" />
        </databaseTypes>
        <instances>
          <instance name="Northwind" type="Sql Server" connectionString="Northwind" />
        </instances>
        <connectionStrings>
          <connectionString name="Northwind">
            <parameters>
              <parameter name="Database" value="Northwind" isSensitive="false" />
              <parameter name="Integrated Security" value="True" isSensitive="false" />
              <parameter name="Server" value="local" isSensitive="false" />
              <parameter name="User ID" value="sa" isSensitive="false" />
              <parameter name="Password" value="sa1234" isSensitive="true" />
            </parameters>
          </connectionString>
        </connectionStrings>
      </enterpriseLibrary.databaseSettings>
    </xmlSerializerSection>
  </dataConfiguration>
</configuration>
  • 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-14T05:28:14+00:00Added an answer on May 14, 2026 at 5:28 am

    Use the Enterprise Library Configuration Tool which is integrated into Visual Studio once you install the Enterprise Library – it will ensure your configuration XML is setup correctly.

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

Sidebar

Related Questions

We can use prepare method to get the query prepared for multiple time use
In most cases when you create your thread you can prepare the data beforehand
Is there any guide for developers explaining how they can prepare their application to
QUESTION: Why am I getting Call to undefined function prepare() error ? How can
I'm building a Rails 3 app where users can select one of a number
Problem solved. Deprec is not related to the application. Its function is to prepare
I am facing an application designed to import huge amounts of data into a
I'm stuck with a rake task that need to prepare a newsletter for Mailchimp.
Can anyone knows how to use these technologies in social networking site?.i had referred
Can I have a prepared statement with the following query: select * from table

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.