Does any of you perhaps know if it is possible to host a wcf-service in a windows service, without IIS installed, AND anonymous authentication?
I keep getting a 403 (forbidden), because 'anonymous' is not allowed.
Local in VS everythings works, but when I run it in 2 different servers (host andclient) then I get the error. Both servers are not in the same domain.
Thanks!
code on server side:
<system.serviceModel>
<serviceHostingEnvironment multipleSiteBindingsEnabled="true">
</serviceHostingEnvironment>
<bindings>
<wsHttpBinding>
<binding name="Unsecured">
<security mode="None" />
</binding>
</wsHttpBinding>
</bindings>
<services>
<service name="WcfServiceRoelant.ServiceRoelant" behaviorConfiguration="ServiceRoelantBehavior">
<endpoint address="" binding="wsHttpBinding" contract="WcfServiceRoelant.IServiceRoelant" bindingConfiguration="Unsecured"/>
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="ServiceRoelantBehavior">
<!-- To avoid disclosing metadata information, set the values below to false before deployment -->
<serviceMetadata httpGetEnabled="true" httpsGetEnabled="true"/>
<!-- To receive exception details in faults for debugging purposes, set the value below to true. Set to false before deployment to avoid disclosing exception information -->
<serviceDebug includeExceptionDetailInFaults="false"/>
</behavior>
</serviceBehaviors>
</behaviors>
</system.serviceModel>