문제

오류가 발생하여 이름 'CaseJacketport'및 계약 'GrandJuryservice.casejacket'으로 엔드 포인트 요소를 찾을 수 없습니다.

private void InitProxy()
{
    m_Proxy = new DivisionAssignmentJSS.GrandJuryService.CaseJacketClient("CaseJacketPort");  << error here

내 app.config에서 :

<client>
   <endpoint address="http://172.24.8.125:8080/grandjury/CaseJacketService"
        binding="customBinding" bindingConfiguration="CaseJacketPortBinding1"
        contract="GrandJuryService.CaseJacket" name="CaseJacketPort" />
</client>

만큼 잘

<binding name="CaseJacketPortBinding1">
  <security defaultAlgorithmSuite="Basic128" 
            authenticationMode="UserNameForCertificate"
            requireDerivedKeys="false" securityHeaderLayout="Strict" 
            includeTimestamp="true" keyEntropyMode="CombinedEntropy" 
                messageProtectionOrder="SignBeforeEncrypt"
messageSecurityVersion="WSSecurity11WSTrust13WSSecureConversation13WSSecurityPolicy12BasicSecurityProfile10" requireSignatureConfirmation="false">
        <localClientSettings cacheCookies="true" detectReplays="true"
          replayCacheSize="900000" maxClockSkew="00:05:00" maxCookieCachingTime="Infinite"
          replayWindow="00:05:00" sessionKeyRenewalInterval="10:00:00"
          sessionKeyRolloverInterval="00:05:00" reconnectTransportOnFailure="true"
          timestampValidityDuration="00:05:00" cookieRenewalThresholdPercentage="60" />
        <localServiceSettings detectReplays="true" issuedCookieLifetime="10:00:00"
          maxStatefulNegotiations="128" replayCacheSize="900000" maxClockSkew="00:05:00"
          negotiationTimeout="00:01:00" replayWindow="00:05:00" inactivityTimeout="00:02:00"
          sessionKeyRenewalInterval="15:00:00" sessionKeyRolloverInterval="00:05:00"
          reconnectTransportOnFailure="true" maxPendingSessions="128"
          maxCachedCookies="1000" timestampValidityDuration="00:05:00" />
        <secureConversationBootstrap />
      </security>
      <textMessageEncoding 
             maxReadPoolSize="64" maxWritePoolSize="16"
             messageVersion="Soap11WSAddressing10" writeEncoding="utf-8">
          <readerQuotas 
                 maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
                 maxBytesPerRead="4096" maxNameTableCharCount="16384" />
      </textMessageEncoding>
      <httpTransport 
            manualAddressing="false" maxBufferPoolSize="524288"
            maxReceivedMessageSize="6553600" allowCookies="false" 
            authenticationScheme="Anonymous"
            bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
            keepAliveEnabled="true" maxBufferSize="6553600" 
            proxyAuthenticationScheme="Anonymous" realm="" 
            transferMode="Buffered" unsafeConnectionNtlmAuthentication="false"
            useDefaultWebProxy="true" />
    </binding>

왜 그들이 서로를 볼 수 없는지 모르겠습니까?
오류는 "응용 프로그램에 대한 구성 파일이 발견되지 않았거나 클라이언트 요소 에서이 이름과 일치하는 엔드 포인트 요소가 없기 때문에"라고 표시됩니다.

i ^f와 포인터를 검색 할 때 그들은 서로를 모두 찾습니다.

어떤 아이디어?

티아

__stephen

도움이 되었습니까?

해결책

다른 사람들이 해결책을 볼 수 있고 의견을 뱉지 않아도됩니다.

그래서 코드는 DLL에 있습니까? 이 경우 시작하는 앱의 app.config에는 WCF 구성이 필요합니다.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top