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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T23:22:44+00:00 2026-06-16T23:22:44+00:00

I inherited a bit of legacy code that was originally written in VS .NET

  • 0

I inherited a bit of legacy code that was originally written in VS .NET 2003. I’m familiar with how ConfigurationManager works in newer versions of .NET, and have used it successfully to grab connections strings from the web.config. My problem is that this code does not seem to be pulling from the web.config at all, and utilizes a namespace I’m not familiar with.

Here is the relevant code:

using Microsoft.ApplicationBlocks.ConfigurationManagement;

public class ConfigurationBlock
{
    private static Hashtable GetSection()
    {
        HashTable configBlock = ConfigurationManager.Read();
        return configBlock;
    }
}

When I follow this code, it successfully pulls a huge list of data from …somewhere. Is there a way to set where ConfigurationManager is pointing to that I’m not aware of, either programmatically or through the VS2003 interface? Any help would be greatly appreciated.

  • 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-16T23:22:45+00:00Added an answer on June 16, 2026 at 11:22 pm

    The namespace is referring the Microsoft application blocks ( set of utilities) so if you have to use the Microsoft application blocks, you have to download and install it, and then reference the dll. However , in order to read values from web config or app config you can use

    class:      ConfigurationManager 
    Namespace:  System.Configuration
    Assembly:  System.Configuration (in System.Configuration.dll)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have inherited a bit of Java code that uses Hibernate. Some of the
I have inherited some code that is in need of a bit of a
I have inherited some code (that happens a lot!) which looks a bit like
I have inherited a certain bit code that has the @JsonProperty annotation on getter/setters.
I have inherited some really old VC6.0 code that I am upgrading to VS2008
Im a bit confused about inherited instance variables in ABCs. I have written an
I have inherited a dll written in C that I access from a windows
I have a bit of code that I have been tasked with converting to
I have a legacy ASP.NET site I'd like to improve a bit. One area
I have a reasonably large project at work that I've inherited. It's an ASP.NET

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.