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

  • Home
  • SEARCH
  • 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 149911
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T09:12:21+00:00 2026-05-11T09:12:21+00:00

Ok, this is rather simple, but from what I’ve seen… you can only use

  • 0

Ok, this is rather simple, but from what I’ve seen… you can only use some sort of Windows Workflow to include another config into another (which I refuse to do).

Here’s the deal:

MAINAPP.EXE References an hypothetical LIBRARY.DLL.

MAINAPP.EXE has its own MAINAPP.EXE.config.

If you add ‘config values’ to LIBRARY.DLL (thereby creating an app.config in LIBRARY.DLL project), those values are not available at runtime even if you copy app.config into LIBRARY.DLL.config to the right path post-build.

The reason for the above is that even referenced libraries will read from the ‘mainapp.exe’ config.

So far ‘so good’. Now, when you add a WCF Service reference, visual studio creates or populates your app.config with the bindings/endpoints/etc.; but that’s added to the project where you added the reference’s config; hence, your Library.DLL.prj ends up with a nice app.config that doesn’t work because it never gets read, nor even copied to the output directory. Now you may think that you can right click that app.config and set ‘copy always’ to true. Forget it. That doesn’t do anything. (You can google for that one).

So, given the above weird scenario, how is a regular VS2008 developer working with a .NET 3.5 project going to manage the WCF service references he adds to his Business Layer dll? Is that developer supposed to COPY and PASTE all the whole section from the useless app.config in his DLL to the Mainapp.exe.config file each time there’s a change in the services or each time he adds/removes one ?

  • 1 1 Answer
  • 2 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. 2026-05-11T09:12:22+00:00Added an answer on May 11, 2026 at 9:12 am

    Yes. Copy and paste is the answer. It’s not a great answer, but it’s the answer, and it has been since day 1 in .NET 1.0 with AppSettings.

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

Sidebar

Related Questions

I searched google but couldn't find an answer to this rather simple question. I
I think, the answer to my question is rather simple, but I just can't
I'm hoping this is a rather simple question, but I'm pretty new to MVC
I know this rather goes against the idea of enums, but is it possible
This is a bit of a long shot, but if anyone can figure it
I have a rather simple web-service which exposes data from sql server. It will
Apologies for the rather simple question, I just can't seem to find ANY good
I'm building a bunch of windows libraries (mostly simple wrappers to compine features from
I'd rather do this: say $shop->ShopperDueDate->andand->day_name(); vs. this: say $shop->ShopperDueDate->day_name() if $shop->ShopperDueDate; Any ideas?
I think this question is rather easy for you shell scripting monsters. I am

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.