How much of the app.config from the WCF Service Library has to be duplicated in the Console Host's app.config?
views:
24answers:
1
+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!
- DotNet Rocks TV Show #122: Miguel Castro on Extreme WCF
- DotNet Rocks TV Show #135: Keith Elder Demystifies WCF
@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
2010-09-05 16:56:18
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
2010-09-05 16:59:16
@broiyan: configuration is always a tricky business... and since those answers are hard to discover, there **is** a place like Stackoverflow!
marc_s
2010-09-05 17:15:57
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
2010-09-05 17:18:21
Knowing that it is a beast and notoriously difficult is certainly something we should all be aware of before starting. Thanks.
broiyan
2010-09-05 17:45:02
@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
2010-09-06 19:44:25