Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > Indigo

Vista - WCF Configuration Validation

 
 
Old 08-28-2007   #1 (permalink)
Craig


 
 

WCF Configuration Validation

Hi

Is there a way to validate the <system.serviceModel> section of a .config
file?

I have a bunch of binding configurations but when I start my WCF hosting
service (Win32 service) the service would fail to start if the
<system.serviceModel> is not configurated properly. For example, here is an
exception using the default values for netMsmqBinding:

Service cannot be started. System.InvalidOperationException: Contract
requires TwoWay (either request-reply or duplex), but Binding
'NetMsmqBinding' doesn't support it or isn't configured properly to support
it.
at
System.ServiceModel.Description.DispatcherBuilder.BuildChannelListener(StuffPerListenUriInfo
stuff, ServiceHostBase serviceHost, Uri listenUri, ListenUriMode
listenUriMode, IChannelListener& result)
at
System.ServiceModel.Description.DispatcherBuilder.InitializeServiceHost(ServiceDescription description, ServiceHostBase serviceHost)
at System.ServiceModel.ServiceHostBase.InitializeRuntime()
at System.ServiceModel.ServiceHostBase.OnOpen(TimeSpan timeout)
at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
at System.ServiceModel.Channels.CommunicationObject.Open()
at RightCrowd.RealtimeProvisioning.Hosting.Service.OnStart(String[] args)

Greatly appreciate any help.

My System SpecsSystem Spec
 

Thread Tools


Similar Threads
Thread Forum
Validation? Where did this come from? General Discussion
Validation Vista installation & setup
Validation Vista installation & setup
Validation Vista installation & setup
validation Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46