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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T02:14:01+00:00 2026-05-26T02:14:01+00:00

I have a three tier web app that produces three separate dlls: Web.UI.dll Web.Application.dll

  • 0

I have a three tier web app that produces three separate dlls:

  • Web.UI.dll
  • Web.Application.dll
  • Web.DAL.dll

Both Web.Application.dll and Web.DAL.dll have their own app.configs. I need to access a specific setting that lives in web.config. I am using the following code:

[CacheUtil.cs]
string cacheName = ConfigurationManager.AppSettings.Get("CacheName");

I have verified that this setting exists. So, why then, when I run am I getting NULL? Does CacheName need to exist in all of .config files?

Here is the setting in web.config:

  <appSettings>
    <add key="CacheName" value="staging"/>

FYI, CacheUtil is a singleton that is lazy initialized upon first access. First access is happening in the DAL.dll project.

Thanks!

  • 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-26T02:14:02+00:00Added an answer on May 26, 2026 at 2:14 am

    Only web.config is being read. The other config files (Web.Application.dll.config and Web.DAL.config) are not read.

    Config is not attached to libraries; only to the ultimate executable being run (the AppName.exe.config or web.config)

    Projects in Visual Studio that produce an EXE can have an app.config file, and this file is treated specially upon build; It is renamed to ProgramName.exe.config and copied to the output directory. app.config in class library or Web application projects will have no effect.

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

Sidebar

Related Questions

I have inherited a conventional three tier web app with ASP.net 2.0 for the
I have a classic 3-tier ASP.Net 3.5 web application with forms that display business
I have a three-tier Windows-based web application bundled into 3 AMIs on Amazon EC2
I have an MVC2 n-tier application (DAL, Domain, Service, MVC web) using a DDD
I have a three tier web app in which I am using MS Enterprise
I have a three-tier Windows Forms DB application in VB.NET. I'm using VS 2005.
I have read some web articles about Three-Tier Architecture. However, I am little bit
I have some questions about three tier architecture. how to implement an application in
I have a task to create a desktop version of our web app that
I have a question regarding Caching. I have a typical n-tier ASP.NET web app.

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.