2012-05-30 3 views
0

WCF 테스트 문제가 있습니다. 나는 CategorieService WCF 서비스를 참조하십시오. http://i.stack.imgur.com/1Wbg1.jpg을 통해 공유합니다. netTcpBinding GetAll() GetById() 메소드를 제외한 모든 것이 정상입니다 (모든 메소드가 올바르게 호출 됨). 그것은 예외가 발생합니다 ... 나는 DbContext 연결을 POCO 엔티티를 사용하던 의 App.config 파일WCF TestClient Get() 메서드를 호출하는 중 오류가 발생했습니다.

<system.serviceModel> 
    <diagnostics> 
     <messageLogging logEntireMessage="true" logMalformedMessages="true" 
     logMessagesAtTransportLevel="true" /> 
     <endToEndTracing activityTracing="true" /> 
    </diagnostics> 
    <services> 
     <service name="Services.CategorieService"> 
     <clear /> 
     <endpoint binding="mexHttpBinding" contract="IMetadataExchange" 
      listenUriMode="Explicit"> 
      <identity> 
      <dns value="localhost" /> 
      <certificateReference storeName="My" storeLocation="LocalMachine" 
       x509FindType="FindBySubjectDistinguishedName" /> 
      </identity> 
     </endpoint> 
     <endpoint address="net.tcp://localhost:8888/myservice" binding="netTcpBinding" 
      bindingConfiguration="" contract="Services.ICategorieService" /> 
     <host> 
      <baseAddresses> 
      <add baseAddress="http://localhost:8732/Service1/" /> 
      </baseAddresses> 
     </host> 
     </service> 
    </services> 
    <behaviors> 
     <serviceBehaviors> 
     <behavior> 
      <serviceMetadata httpGetEnabled="True"/> 
      <serviceDebug includeExceptionDetailInFaults="False" /> 
     </behavior> 
     </serviceBehaviors> 
    </behaviors> 
    </system.serviceModel> 
+0

으로 설정해야합니다. GetAll 및 GetById가 시간 내에 응답하지 않는 것 같습니다. 그렇습니까? 그것을 확인해보고 true 인 경우 = 클라이언트 구성 파일에서 시간 초과를 늘리십시오. 또는 쿼리를 최적화하십시오. –

+0

서비스 자체의 오류 때문일 수도 있습니다. 오류가 발생할 수있는 명백한 장소가 있는지 확인하려면 서비스를 선택하십시오. – Tim

답변

관련 문제