Wednesday, 11 September 2013

The value is invalid according to its datatype

The value is invalid according to its datatype

This has been eluding me all day. First, here is the config section:
<system.serviceModel>
<services>
<service name="Namespace.FooService"
behaviorConfiguration="Namespace.FooBehavior">
<endpoint address="" binding="basicHttpBinding"
contract="Namespace.IFooService" />
<endpoint address="mex" binding="mexHttpBinding"
contract="IMetadataExchange" />
<host>
<baseAddresses>
<add baseAddress="http://localhost:80/FooServices" />
</baseAddresses>
</host>
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="Namespace.FooBehavior">
<serviceMetadata httpsGetEnabled="true" httpGetEnabled="true" />
</behavior>
</serviceBehaviors>
</behaviors>
</system.serviceModel>
The contract:
[ServiceContract(Namespace="https://Example.com/Foo")]
public interface IPrintDriverService
...
public class FooService: IFooService
which is giving me the warnings:
WCF configuration validation warning: The 'contract' attribute is invalid
- The value 'Namespace.IFooService' is invalid according to its datatype
'serviceContractType'.
WCF configuration validation warning: The 'name' attribute is invalid -
The value 'Namespace.FooService' is invalid according to its datatype
'serviceNameType'.
Which I can't seem to get rid of. When I go to debug it in
WcfServiceHost.exe, the service runs fine. But, when I go to publish it
fails silently.
Is there a way to see why the publish failed?
Does anyone know how to get rid of those warnings?

No comments:

Post a Comment