私は wcf サービスを持っていますが、次のエラーが表示されます。
ServiceMetadataBehavior の HttpsGetEnabled プロパティは true に設定され、HttpsGetUrl プロパティは相対アドレスですが、https ベース アドレスはありません。https ベース アドレスを指定するか、HttpsGetUrl を絶対アドレスに設定します。
私の web.config 設定は次のとおりです。
<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>
上記の設定は localhost では問題なく機能しますが、サーバーにアップロードすると上記のエラーが発生します。ホスティング サーバーでサービスを動作させるにはどうすればよいか教えてください。
ありがとう