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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T15:09:16+00:00 2026-05-13T15:09:16+00:00

In my WAP project I have a reference to another C# Project (non-web). In

  • 0

In my WAP project I have a reference to another C# Project (non-web). In that C# project I have an app.config and I renamed it to [projectName].config

I then tried to grab a key from my [project].config from some code within my C# Project and it can’t find it:

return ConfigurationManager.AppSettings["somekey"]

So I am wondering why it can’t read my app.config. I would think that ConfigurationManager would be able to read keys form the Web project’s web.config AND my [projectName].config (app.config) file that is in my referenced project as well?

  • 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-13T15:09:16+00:00Added an answer on May 13, 2026 at 3:09 pm

    ConfigurationManager will read the configuration of the application’s host. In your case, the web app is the application’s host – therefore, calling ConfigurationManager will read from your web.config – even if you make calls to ConfigurationManager from a referenced dll.

    If your web application references a dll, then the dll should get its configuration from the web.config. This is the best thing for the application. If the dll is referenced by multiple types of applications, the settings in the config may need to be different.

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

Sidebar

Related Questions

I have a web application project (wap) that is successfully being deployed to a
I know that ProfileCommon is not available in a Web Application Project (WAP), but
I created a C# Project. I added a reference to that in my WAP
My ASP.NET WAP project in VS 2008 is set to debug=true in the web
I've switched from a Website Project to a WAP (Web Application project). The WDP
We have some HTTP handlers specified in our web.config. When we were running this
In a recent project I have nearly completed we used an architecture that as
I'm refurbishing a simple web-app that our field techs use. One of my goals
Am am making a wap-game that will have a minimap. It is basically a
I've tried a variety of combinations, the following being my last attempt: Addtype text/vnd.wap.wml

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.