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

The Archive Base Latest Questions

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

Just started on a new project and opened up a 1600 line web.config file

  • 0

Just started on a new project and opened up a 1600 line web.config file for a WCF project, where 90% of the services are configured identically (hmfph).

I like a project to be easy to manage, with as few redundant lines of code as possible. So my question is whether or not it is possible to configure multiple WCF service by using convention-driven configuration instead.

Kind of like Fluent NHibernate Automapper with the possibility to create overrides when needed (like custom endpoints etc). Any thoughts?

/Jasper

  • 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-22T15:12:14+00:00Added an answer on May 22, 2026 at 3:12 pm

    WCF in .NET 4 has a lots of convention-based configuration – as long as you don’t start specifying your own stuff, each service defined in your web.config will get a default endpoint for each of the base addresses defined in your web.config – that alone can cut out 50-80% of your config.

    Furthermore, you can define default behaviors, e.g. for your services; things like always expose metadata and make it available from HTTP and so forth can be defined once, as a “template” behavior and will be applied to all service entries without further ado.

    Check out all the details of what’s new in WCF 4 and how to make use of the convention-driven configuration (“no config WCF”) here: A Developer’s Introduction to WCF 4

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

Sidebar

Related Questions

We just started a new ASP.Net project that uses web services to serialize some
I just started a new project and wanted to use HaskellDB in the beginning.
I just started using the new project type SQL Server 2008 Database. I can
I started a new project this morning and, after putting ~3 hours of work
Here's my situation. I've just started a new job and I've inherited an application
Just started working with android and ran into a small problem. I am have
Hello i have just started learning mvc2 and im having a problem with the
I've just typed in an example from K&R... #include <stdio.h> int main (int argc,
I've been using geasessions for a while, been working great. It's simple and fast.
I am receiving an error that says The application was unable to start correctly

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.