tags:

views:

24

answers:

1

How much of the app.config from the WCF Service Library has to be duplicated in the Console Host's app.config?

+2  A: 

Basically: everything.

The app.config for the WCF service class library will not be read by .NET.

You need to have all the settings (more specifically: everything in <system.serviceModel> section) into your host application's app.config file.

@Broyian: WCF configuration is a notoriously difficult and often not very well understood topic. I have two video show episodes that I really like that helped me understand configuration a lot better - check them out!

@Broiyan: you might want to check out this blog post here about improvement in WCF 4.0 making it less of a "beast":

marc_s
Thanks. It is my impression your answer hard to discover in Lowy's chapter 1 and via Google and MSDN. How might I find these answers without resorting to stackoverflow?
broiyan
@broiyan: configuration is always a tricky business... and since those answers are hard to discover, there **is** a place like Stackoverflow!
marc_s
Ok, well if it is "notoriously difficult" then I suggest to Microsoft that the MSDN website text should be changed. Presently MSDN site says "Windows Communication Foundation is...a part of the .NET Framework that provides a unified programming model for rapidly building service-oriented applications that communicate across the web and the enterprise." "Rapidly" should be replaced by "slowly" until this situation is better documented either by Microsoft or the programmers that post free tutorials all over the world.
broiyan
Knowing that it is a beast and notoriously difficult is certainly something we should all be aware of before starting. Thanks.
broiyan
@broiyan: updated my answer yet again - another link to an interesting article about how WCF 4 is a lot easier to use (less of a "beast") than earlier versions. Enjoy!
marc_s