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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T13:22:51+00:00 2026-06-04T13:22:51+00:00

This post is an offshoot of my previous post . However I have not

  • 0

This post is an offshoot of my previous post. However I have not tried implementing what was mentioned there yet. I’ve just learned the use of ConfigurationManager.OpenExeConfiguration() to load configurations. Next question that should come naturally is how to manage WCF configurations?

What I have done: I’ve created a class library project (called A), and added a reference to a wcf service. A had a app.config file as part of the project. Hence the configurations will be generated over there automatically by VS. So when I build A I get A‘s assemblies generated (A.dll, and A.dll.config) inside A‘s bin folder

I add another project (B) into the solution. Add A project as reference. Hence on build of B, A.dll will get copied to B‘s bin folder. I also modify my build properties such that A.dll.config gets copied post B‘s build into B’s bin directory.

In a method in a class, inside of A.dll I would have created my wcf proxy like:

var wcfProx = new MyWCFSvcClient();

This constructor’s call actually picks values from the executing assembly’s configuration file. If I wanted my wcf proxy to work I know I have to copy the system.ServiceModel in A’s app.config to B’s configuration file. This was what I had been doing erstwhile.

But now, what to do with the Configuration object I’ve opened via ConfigurationManager.OpenExeConfig(), and, how to associate that object to my wcf proxy instance? Meaning the proxy instance should derive values from A.dll.config.

  • 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-04T13:22:52+00:00Added an answer on June 4, 2026 at 1:22 pm

    Perhaps ConfigurationManager.OpenMappedExeConfiguration() is what you’re looking for.

    http://msdn.microsoft.com/en-us/library/ms134269.aspx

    In the sample code, the author copies the current configuration into a new file, then programmatically appends a new config section to the file.

    After saving the changes and resetting the section, they are able to read the settings back out.

    I was unable to determine if this alters the configuration of the current running application, but it’s worth a shot.

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

Sidebar

Related Questions

This post is the continuation of my previous post . Now I have a
This post is related to my Previous Post . There I was creating the
This post demonstrates how to deploy standalone applications to CloudFoundry. However, I'm not able
This post on SO answers most of the questions I have (much thanks to
This post is incorrectly tagged 'send' since I cannot create new tags. I have
This post if a follow-up question to mt previous post: Android RESTful Web application
This post will be heavy on images. I have created a custom ArrayAdapter and
This post is very similar to my previous one, but the data structures are
This post may seem overly long for just the short question at the end
This post is similar to this post , but not exactly, so I'm asking

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.