Posts

Showing posts from December 15, 2010

That confounded WCF configuration file

The great thing about Visual Studio is that it pampers you, by doing a fantastic job on your behalf to hide all the nitty-gritties.  The downside is that when you depart from the default values/names/settings, you may not know what manual changes are needed. If you have read Keith Elder's article about WCF, you will understand what a Boeing 747 you have.  And you need a lot of new skills to pilot such a plane.  I would like to share some basics about web.config/app.config that I learned the hard way. The new section of interest in the configuration file is: < system.serviceModel > .   You can have nothing in this section, and everything will simply take on certain default values.  The commonly used elements in this section are: <services> <bindings> <behaviors> <services> The < services > section defines the web services you want to publish. (On the client's web.config, you would not have this but a < client > section inste