2017-08-29 4 views
0

一致しない(ほとんどの相対アドレスに関する - これらは、我々は相対アドレスを使用してアレントとして私が探しているものではないです)このエラーに関連する他のいくつかの質問がありますWCF:いいえプロトコルバインディングは、指定されたアドレス

我々は持っています問題なく、いくつかの環境にデプロイされるWCFサービス - 私たちは、エラー受信されているが、閉じたネットワーク上の最新のインストールに(HTTPSを使用して):私たちはサイトの罰金のルートにアクセスすることができ

No protocol binding matches the given address ' https://domain.local/programmeservice.svc '. Protocol bindings are configured at the Site level in IIS or WAS configuration.

は(httpsを使用して)、私たちはそれが私たちの束縛の構成上の問題であると確信していますが、私たちはアイデアがありません。

次のようにサービスのweb.configの設定は次のとおりです。

<system.serviceModel> 
    <bindings> 
     <basicHttpBinding> 
     <binding name="Service.BasicHttp.BindingConfig"> 
      <security mode="Transport"> 
      <transport clientCredentialType="Windows" /> 
      </security> 
     </binding> 
     </basicHttpBinding> 
    </bindings> 
    <services> 
     <service name="SomeTestService" behaviorConfiguration="SomeTestService"> 
     <endpoint address="https://domain.local:443/testservice.svc" binding="basicHttpBinding" bindingConfiguration="Service.BasicHttp.BindingConfig" contract="ISomeTestService" /> 
     <endpoint address="mex" binding="mexHttpsBinding" contract="IMetadataExchange" /> 
     </service> 
    </services> 
     <behaviors> 
      <serviceBehaviors> 
       <behavior name="SomeTestService"> 
        <serviceMetadata httpsGetEnabled="true" /> 
        <serviceDebug includeExceptionDetailInFaults="true" /> 
        <dataContractSerializer maxItemsInObjectGraph="2147483647" /> 
       </behavior> 
     </serviceBehaviors> 
     </behaviors> 
     <serviceHostingEnvironment aspNetCompatibilityEnabled="true" /> 
    </system.serviceModel> 

エラーの完全なスタックトレースは、次のとおりです。

万一

[InvalidOperationException: No protocol binding matches the given address ' https://domain.local/programmeservice.svc '. Protocol bindings are configured at the Site level in IIS or WAS configuration.]
System.ServiceModel.Activation.HostedAspNetEnvironment.GetBaseUri(String transportScheme, Uri listenUri) +154751
System.ServiceModel.Channels.TransportChannelListener.OnOpening() +16284708 System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout) +255
System.ServiceModel.Dispatcher.ChannelDispatcher.OnOpen(TimeSpan timeout) +72

[InvalidOperationException: The ChannelDispatcher at ' https://domain.local/programmeservice.svc ' with contract(s) '"ProgrammeService"' is unable to open its IChannelListener.]
System.ServiceModel.Dispatcher.ChannelDispatcher.OnOpen(TimeSpan timeout) +145
System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout) +301 System.ServiceModel.ServiceHostBase.OnOpen(TimeSpan timeout) +130
System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout) +301
System.ServiceModel.HostingManager.ActivateService(ServiceActivationInfo serviceActivationInfo, EventTraceActivity eventTraceActivity) +129
System.ServiceModel.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath, EventTraceActivity eventTraceActivity) +741

[ServiceActivationException: The service '/programmeservice.svc' cannot be activated due to an exception during compilation. The exception message is: The ChannelDispatcher at ' https://domain.local/programmeservice.svc ' with contract(s) '"ProgrammeService"' is unable to open its IChannelListener..]
System.Runtime.AsyncResult.End(IAsyncResult result) +607194
System.ServiceModel.Activation.HostedHttpRequestAsyncResult.End(IAsyncResult result) +231
System.Web.CallHandlerExecutionStep.OnAsyncHandlerCompletion(IAsyncResult ar) +177

+0

あなたのサイトはIISマネージャーでhttpsバインディングを持っていますか? – Fai

+0

はい、httpsバインディングはIISで有効な証明書で設定され、ルートサイトで正常に動作します。 – Steveland83

+0

別のスレッドでは、エンドポイントアドレスは絶対アドレスではなく相対アドレスでなければならないとしていますか? – Fai

答えて

0

これは他の誰にも役立ちていること - これは、その中に余分な文字を含むエンドポイントアドレスを作成していたビルドスクリプトの問題であることが判明しました。エラーメッセージのように、全体が

同様のエラーが表示される場合は、提供されたサービスエンドポイントアドレスが実際にがIISで設定したものと一致するかどうかを3回確認します。

関連する問題