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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T19:07:33+00:00 2026-06-02T19:07:33+00:00

I have a self hosted C# WCF service which creates 20+ endpoints for various

  • 0

I have a self hosted C# WCF service which creates 20+ endpoints for various purposes. Each is configured in the code itself with a few basic config items in the app.config of the service such as port and address. The service works great for the tested clients, but has not been widely tested.

I was a little leary of the standard wcf config file approach because I was afraid the end user would mess things up and hence did everything in code.

Is it a better idea to do the configuration in the config file because then the end user could customize it to their needs or is the in code approach sufficient for most needs?

  • 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-02T19:07:34+00:00Added an answer on June 2, 2026 at 7:07 pm

    One of the main benefits of WCF is the abstraction of the connection details away from the code. If you need to change any of the service parameters, doing so from the web.config can be done more readily, and without recompilation. You may need to change the “port and address,” for instance. If you are doing this from within the code, you would need to rebuild, which may be impractical. Further, I’m not sure why the end user would be messing with the web.config normally, unless it’s really necessary.

    In short, unless you have a good reason not to use the config files, you should probably use them in order to get the full benefit of the abstraction that WCF provides.

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

Sidebar

Related Questions

System Description: I have a WCF service (self hosted in a windows service) which
I have a self-hosted WCF service with the InstanceContextMode set to PerSession. How can
I have a self hosted TCP based WCF service. I am now building a
I have a self hosted WCF Rest service that I am using to simulate
I have a self-hosted WCF service and I'm having the following problem: 15 minutes
I have a self-hosted WCF service running as a windows service using the WebAPI
We have a WCF service that we recently switched from self-hosting to IIS-hosted. It
I have self hosted net tcp WCF service that exposes two methods and the
I have followed the instructions in SSL with Self Hosted WCF Service . When
I have a self-hosted WCF service that is hosted by a desktop application. I

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.