WCF – Validating WCF Configuration

Validating configuration is another new features in Windows Communication Foundation v4.5.
Basically, it can be considered as an enhancement to Visual Studio as well. Previously, config files were not validated if we build our WCF project.
Now with WCF 4.5, if we build our project and our configuration file has some validation issue, Visual Studio will alert us by displaying such validation errors as warnings.
Consider the following invalid config settings, a warning will be displayed that “Expecting end tag </service>“:

<service name=”MyTestService” />

© 2015, www.techkatak.com. All rights reserved.