몇 가지 문제가 있습니다.WCF를 해결하는 방법 CommunicationException 처리되지 않았습니다
문제는 CommunicationException
오류입니다.
오류 메시지 http://localhost:18080/WCFServices/TestService에 HTTP 응답을 수신하는 동안 오류가 발생
이다. 이것은 HTTP 프로토콜을 사용하지 않는 엔드 포인트 바인딩 서비스 때문일 수 있습니다. 이는 HTTP 요청 컨텍스트가 서버 에 의해 중단 되었기 때문일 수 있습니다 ( 서비스 종료 때문일 수 있음). 자세한 내용은 서버 로그를 참조하십시오.
다음은 소스 코드입니다.
TestServiceClient client = new TestServiceClient();
TestSettings[] voltages = client.GetTestSettings();
틸트 단어 위에 오류 메시지가 나타납니다.
기본 응용 프로그램과 클라이언트 응용 프로그램을 동기화하려고합니다.
위의 오류는 클라이언트 응용 프로그램입니다.
내 app.config 파일은
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.serviceModel>
<bindings>
<wsHttpBinding>
<binding name="WSHttpBinding_ITestService" closeTimeout="00:01:00"
openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard"
maxBufferPoolSize="524288" maxReceivedMessageSize="209715200"
messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true"
allowCookies="false">
<readerQuotas maxDepth="32" maxStringContentLength="2147483647"
maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="16384" />
<reliableSession ordered="true" inactivityTimeout="00:10:00"
enabled="false" />
<security mode="None">
<transport clientCredentialType="Windows" proxyCredentialType="None"
realm="" />
<message clientCredentialType="Windows" negotiateServiceCredential="true" />
</security>
</binding>
</wsHttpBinding>
</bindings>
<client>
<endpoint address="http://localhost:18080/WCFServices/TestService"
binding="wsHttpBinding" bindingConfiguration="WSHttpBinding_ITestService"
contract="TestServiceReference.ITestService"
name="WSHttpBinding_ITestService" />
</client>
</system.serviceModel>
</configuration>
PS입니다. TestService가 임시로 수정되었습니다.
누구든지 참조하십시오.
감사합니다.
아 죄송합니다, 오류가 나는 MAXSIZE와 길이를 증가시키기 위해 노력"전압"이 발생했습니다.
그러나이 문제는 해결되지 않았습니다.
누군가 나를 도와주세요.
서버 구성 파일을 알려주십시오. – flayn
코드, XML 또는 데이터 샘플을 게시하는 경우 텍스트 편집기에서 해당 행을 강조 표시하고 편집기 툴바에서 "코드 샘플"단추 ('{}) '를 클릭하여 멋지게 형식을 지정하고 구문을 강조 표시하십시오! 오류 메시지를 게시하는 경우 ** 오류 코드를 올바로 형식을 지정하려면 인용 부호 (' "')를 사용하십시오 ** –