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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T19:55:19+00:00 2026-06-13T19:55:19+00:00

I already added the reference System.Configuration and still, I get recieving that error. I

  • 0

I already added the reference System.Configuration and still, I get recieving that error.
I am using VS2010. Here is the code

<configuration>
<connectionStrings>
    <add name="MESConnection" connectionString="Server=.\SQLEXPRESS;Database=MES;Trusted_Connection=true"/>
</connectionStrings>
<system.web>
    <compilation debug="true" targetFramework="4.0">
        <assemblies>
            <add assembly="System.Configuration.Install, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/></assemblies></compilation>
</system.web>

and the code behind:

private static string _connStr = ConfigurationManager.ConnectionStrings["MESConnection"].ConnectionString;

Any ideas?

  • 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-13T19:55:22+00:00Added an answer on June 13, 2026 at 7:55 pm

    Add a using statement at the top of your cs code file:

    using System.Configuration;
    

    Or fully qualify the reference:

    private static string _connStr = 
        System.Configuration.ConfigurationManager.ConnectionStrings["MESConnection"].ConnectionString;
    

    EDIT

    I see you haven’t in fact referenced the correct assembly. You need to reference System.Configuration.dll not System.Configuration.Install.dll

    Also the usual way to reference a .NET assembly in Visual Studio is to right-click on the References node in Solution Explorer and choose Add Reference…

    enter image description here

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

Sidebar

Related Questions

UPDATE 2 I fixed the error by adding System.Configuration to the reference file. I
I added a reference to the System.Core assembly. The web.config now has: <add assembly=System.Core,
Before compiling the example code make sure that you have added References to your
I already added the microsoft reference in. But basically what I want to do
I've got a reference to System.Configuration - and ConfigurationSettings is found no problem -
In Australia we have to advertise products with tax already added, so rather than
I added a project, Project2, to my solution. It already had another project lets
I have a table which already contains an index in MySQL. I added some
I already have my azure web role running in cloud using azure sdk 1.6.
I have code that generates records based on my DataGridView. These records are temporary

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.