2016-06-18 1 views
1

안녕하세요 HTTPS를 사용하는 방법 . 이 바인딩 확장이 system.serviceModel/extensions/bindingExtensions에 제대로 등록되어 있고 철자가 올바른지 확인하십시오.내가 HTTPS에서 실행되도록 내 WCF의 경호 국 연결을 가능하게하려고하지만 난 이 <p>구성 바인딩 확장 '는 system.serviceModel/바인딩/사실은'을 (를) 찾을 수 없습니다</p>이 오류를 얻고있다 WCF WsHttp 바인딩에

어디에서 내가 잘못 될지 알려줄 수 있습니까? 당신이 그 바인딩하는 것은 정의되지 않은에 httpsGetBinding을 설정 한 것처럼

<?xml version="1.0" encoding="utf-8"?> 
<configuration> 
    <system.web> 
     <compilation debug="true" /> 
     <authentication mode="None"/> 
     <httpRuntime maxRequestLength="2097151" /> 
     <hostingEnvironment shadowCopyBinAssemblies="false"/> 
     <pages compilationMode="Never"/> 
    </system.web>  
    <!-- When deploying the service library project, the content of the config file must be added to the host's 
    app.config file. System.Configuration does not support config files for libraries. --> 
    <system.serviceModel> 
     <serviceHostingEnvironment aspNetCompatibilityEnabled="true" /> 

     <services> 
     <service name="MyWebApp.Medical.WebViewer.Wcf.StoreService" behaviorConfiguration="WebViewerServiceBehavior"> 
      <endpoint address="" binding="webHttpBinding" contract="MyWebApp.Medical.WebViewer.ServiceContracts.IStoreService" behaviorConfiguration="WebViewerServiceBehavior" bindingConfiguration="HandleLargeData"/> 
      <endpoint address="mex" binding="mexHttpsBinding" contract="IMetadataExchange" /> 
     </service> 

     <service name="MyWebApp.Medical.WebViewer.Wcf.PatientService" behaviorConfiguration="WebViewerServiceBehavior"> 
      <endpoint address="" binding="webHttpBinding" contract="MyWebApp.Medical.WebViewer.ServiceContracts.IPatientService" behaviorConfiguration="WebViewerServiceBehavior" bindingConfiguration="HandleLargeData"/> 
      <endpoint address="mex" binding="mexHttpsBinding" contract="IMetadataExchange" /> 
     </service> 

     <service name="MyWebApp.Medical.WebViewer.Wcf.ObjectQueryService" behaviorConfiguration="WebViewerServiceBehavior"> 
      <endpoint address="" binding="webHttpBinding" contract="MyWebApp.Medical.WebViewer.ServiceContracts.IObjectQueryService" behaviorConfiguration="WebViewerServiceBehavior"> 
      </endpoint>   
      <endpoint address="mex" binding="mexHttpsBinding" bindingConfiguration="" contract="IMetadataExchange">   
      </endpoint> 
     </service> 
     <service name="MyWebApp.Medical.WebViewer.Wcf.ObjectRetrieveService" behaviorConfiguration="WebViewerServiceBehavior"> 
      <endpoint address="" binding="webHttpBinding" contract="MyWebApp.Medical.WebViewer.ServiceContracts.IObjectRetrieveService" behaviorConfiguration="WebViewerServiceBehavior"> 
      </endpoint> 
     </service> 
     <service name="MyWebApp.Medical.WebViewer.Wcf.PacsQueryService" behaviorConfiguration="WebViewerServiceBehavior"> 
      <endpoint address="" binding="webHttpBinding" contract="MyWebApp.Medical.WebViewer.ServiceContracts.IPACSQueryService" behaviorConfiguration="WebViewerServiceBehavior"> 
      </endpoint> 
      <!-- Metadata Endpoints --> 
      <!-- The Metadata Exchange endpoint is used by the service to describe itself to clients. --> 
      <!-- This endpoint does not use a secure binding and should be secured or removed before deployment --> 
      <endpoint address="mex" binding="mexHttpsBinding" contract="IMetadataExchange" /> 
     </service> 
     <service name="MyWebApp.Medical.WebViewer.Wcf.PACSRetrieveService" behaviorConfiguration="WebViewerServiceBehavior"> 
      <endpoint address="" binding="webHttpBinding" contract="MyWebApp.Medical.WebViewer.ServiceContracts.IPACSRetrieveService" behaviorConfiguration="WebViewerServiceBehavior"> 
      </endpoint> 
     </service> 
     <service name="MyWebApp.Medical.WebViewer.Wcf.AuthenticationService" behaviorConfiguration="WebViewerServiceBehavior"> 
      <endpoint address="" binding="webHttpBinding" contract="MyWebApp.Medical.WebViewer.ServiceContracts.IAuthenticationService" behaviorConfiguration="WebViewerServiceBehavior"> 
      </endpoint> 
      <endpoint address="mex" binding="mexHttpsBinding" contract="IMetadataExchange" /> 
     </service> 
     <service name="MyWebApp.Medical.WebViewer.Wcf.PatientAccessRightsService" behaviorConfiguration="WebViewerServiceBehavior"> 
      <endpoint address="" binding="webHttpBinding" contract="MyWebApp.Medical.WebViewer.ServiceContracts.IPatientAccessRightsService" behaviorConfiguration="WebViewerServiceBehavior"> 
      </endpoint> 
     </service> 
     <service name="MyWebApp.Medical.WebViewer.Wcf.AnnotationsService" behaviorConfiguration="WebViewerServiceBehavior"> 
      <endpoint address="" binding="webHttpBinding" contract="MyWebApp.Medical.WebViewer.ServiceContracts.IAnnotationsService" behaviorConfiguration="WebViewerServiceBehavior" bindingConfiguration="HandleLargeData"> 
      </endpoint> 
     </service> 
      <service name="MyWebApp.Medical.WebViewer.Wcf.OptionsService" behaviorConfiguration="WebViewerServiceBehavior"> 
       <endpoint address="" binding="webHttpBinding" contract="MyWebApp.Medical.WebViewer.ServiceContracts.IOptionsService" behaviorConfiguration="WebViewerServiceBehavior"> 
       </endpoint> 
      </service> 
      <service name="MyWebApp.Medical.WebViewer.Wcf.AuditLogService" behaviorConfiguration="WebViewerServiceBehavior"> 
       <endpoint address="" binding="webHttpBinding" contract="MyWebApp.Medical.WebViewer.ServiceContracts.IAuditLogService" behaviorConfiguration="WebViewerServiceBehavior"> 
       </endpoint> 
      </service> 
      <service name="MyWebApp.Medical.WebViewer.Wcf.ExportService" 
        behaviorConfiguration="WebViewerServiceBehavior"> 
       <endpoint address="" 
     binding="webHttpBinding" 
     contract="MyWebApp.Medical.WebViewer.ServiceContracts.IExportService" 
     behaviorConfiguration="WebViewerServiceBehavior" 
     bindingConfiguration="HandleLargeData"> 
       </endpoint> 
      </service> 
      <service name="MyWebApp.Medical.WebViewer.Wcf.MonitorCalibrationService" 
        behaviorConfiguration="WebViewerServiceBehavior"> 
       <endpoint address="" 
     binding="webHttpBinding" 
     contract="MyWebApp.Medical.WebViewer.ServiceContracts.IMonitorCalibrationService" 
     behaviorConfiguration="WebViewerServiceBehavior" 
     bindingConfiguration="HandleLargeData"> 
       </endpoint> 
      </service> 
      <service name="MyWebApp.Medical.WebViewer.Wcf.WorklistService" 
        behaviorConfiguration="WebViewerServiceBehavior"> 
       <endpoint address="" 
     binding="webHttpBinding" 
     contract="MyWebApp.Medical.WebViewer.ServiceContracts.IWorklistService" 
     behaviorConfiguration="WebViewerServiceBehavior" 
     bindingConfiguration="HandleLargeData"> 
       </endpoint> 
      </service> 
     </services> 
     <extensions> 
     <bindingExtensions> 
      <add name="basic" type="basicHttpBinding"/> 
      <add name="webBind" type="webHttpBinding"/> 
      <add name="ws*bind" type="wsHttpBinding"/> 
     </bindingExtensions> 
     <behaviorExtensions> 
      <add name="jsonWebHttp" type="MyWebApp.Dicom.Services.ErrorHandler.JsonErrorWebHttpBehaviorElement, MyWebApp.Medical.WebViewer.WCF" /> 
      <add name="CorsSupport" type="MyWebApp.Wcf.CorsSupportBehaviorElement, MyWebApp.Wcf.WebHttpCorsBehavior" /> 
     </behaviorExtensions> 
     </extensions> 
     <bindings> 
     <webHttpBinding> 

      <binding name="HandleLargeData" maxBufferSize="2147483647" maxReceivedMessageSize="2147483647" receiveTimeout="01:00:00" openTimeout="01:00:00" closeTimeout="01:00:00" sendTimeout="01:00:00"> 
       <security mode="Transport"> 
       <transport clientCredentialType="None"/> 
       </security> 
       <readerQuotas maxDepth="2147483647" 
        maxStringContentLength="2147483647" 
        maxArrayLength="2147483647" 
        maxBytesPerRead="2147483647" 
        maxNameTableCharCount="2147483647" /> 
      </binding> 
     </webHttpBinding> 
     </bindings> 
     <behaviors> 
     <serviceBehaviors> 
      <behavior name="WebViewerServiceBehavior"> 
       <!-- To avoid disclosing metadata information, 
      set the value below to false and remove the metadata endpoint above before deployment --> 
       <!--<serviceMetadata httpGetEnabled="true" httpGetUrl="anonymous" />--> 
       <serviceMetadata httpsGetBinding="true" httpsGetUrl="anonymous" /> 
       <!-- 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="True" /> 
      </behavior> 
     </serviceBehaviors> 
     <endpointBehaviors> 
      <behavior name="WebViewerServiceBehavior"> 
       <webHttp /> 
       <jsonWebHttp /> 
       <CorsSupport /> 
      </behavior> 
     </endpointBehaviors> 
     </behaviors> 
    </system.serviceModel> 
    <connectionStrings> 
    </connectionStrings> 
    <appSettings> 

    </appSettings> 
    <system.webServer> 
     <staticContent> 
      <remove fileExtension=".dcz"/> 
      <mimeMap fileExtension=".dcz" mimeType="application/x-zip-compressed" /> 
     </staticContent> 
    </system.webServer> 
</configuration> 
+0

사용자 정의 bindingExtensions로 수행중인 작업이 명확하지 않습니다. 내가 생각하기에 당신이 그 노드를 제거하면 작동 할거라 믿는다. –

+0

나는 그것을 시도했지만 작동하지 않았다. – Luke

답변

0

보인다. 이 변경

시도 : 이것에

<serviceMetadata httpsGetBinding="true" httpsGetUrl="anonymous" /> 

:

<serviceMetadata httpsGetEnabled="true" /> 

은 또한 당신은 바인딩에 이름을 제공하고 있습니다 - 'HandleLargeData'. 명시 적으로 bindingConfiguration 속성에이 서비스를 설정 한 서비스 만이 서비스를 사용합니다. 아마 이것은 당신이 원하는 것이지만 단지 알고 있어야 할 것입니다.

관련 문제