I have a wcf service and following is the error i receive:
The HttpsGetEnabled property of ServiceMetadataBehavior is set to true and the HttpsGetUrl property is a relative address, but there is no https base address. Either supply an https base address or set HttpsGetUrl to an absolute address.
My web.config settings is as below :
<system.serviceModel>
<services>
<service name="TBServiceProvider" behaviorConfiguration="ServiceBehaviour">
<endpoint address="" binding="webHttpBinding"
contract="ITBServiceProvider" behaviorConfiguration="web">
</endpoint>
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="ServiceBehaviour">
<serviceMetadata httpsGetEnabled="false"/>
<serviceDebug includeExceptionDetailInFaults="false" />
</behavior>
</serviceBehaviors>
<endpointBehaviors>
<behavior name="web">
<webHttp/>
</behavior>
</endpointBehaviors>
</behaviors>
<serviceHostingEnvironment multipleSiteBindingsEnabled="true" >
<baseAddressPrefixFilters>
<add prefix="http://www.xyz.com:8000"/>
</baseAddressPrefixFilters>
</serviceHostingEnvironment>
The above settings work perfectly fine on localhost, but when it is uploaded to the server, the above mentioned error occurs. Please let me know what can be done to make the service work on hosting server.
Thanks