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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T12:10:14+00:00 2026-06-08T12:10:14+00:00

I have a C# class library which references a WCF service. This creates the

  • 0

I have a C# class library which references a WCF service. This creates the service settings in the app.config. When I build the app, the settings are in the appname.dll.config correctly. However, when the setup application creates the setup.exe and I install this on another machine, the config file in there is missing the service reference. All it has is my connection string for the Entity Framework Model.

Why is this happening? I need the service reference settings because the machine the service runs on may change from time to time.

EDIT:
It seems no-one understands the problem. My setup app installs the dll to the destination directory as well as the dll.config. I know I would then need to copy that config to the exe app but right now there isn’t one. That will be up to the client on that machine to copy it from that destination folder to whatever and wherever is needed. The issue is that the dll.config does NOT include the service settings even though the app.config of the dll does and the dll.config in the release directory of the dll does too. For some reason the setup app which creates a setup.exe and is packaging the dll.config is losing this information. I hope that makes it clearer.

  • 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-08T12:10:15+00:00Added an answer on June 8, 2026 at 12:10 pm

    When you write code in a dll that requires configuration settings, those settings are added to the app.config for the dll. When you want to use that dll in an exe (or web site) you need to copy the appropriate settings from the dll’s config to the exe’s config.

    Once you do that, the installer should get the exe’s config and have the correct config sections.

    If you don’t have an app.config for the exe, create one. If you have one and the installer ins’t installing it, make sure it is installing it. The app domain only looks in one file for the config, that defaults to the exe’s app config. The only way you’re going to get this to work is to get that information into the exe’s app config.

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

Sidebar

Related Questions

I have a WCF Web Service which is referenced from a class library. After
I have an executable project called A.EXE which references a C# class library B.DLL.
I have a class library project that references the version 4.1 Microsoft.Practices.Common dll. I
I have an executable project A, which references to a Class Library project B.
I have a silverlight library which I have added a wcf service reference. Call
I have a default Class Library project, which I want to link to WCF
I have a Wpf application project called WpfTest which references WpfTestLib (A class library).
I have a class library project which contains some content files configured with the
Do you have any ideas where to find a PHP class (library) which can
I have created a class library called AddServiceLibrary in which I have a method

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.