WCF 서비스를 호출하는 WPF 프로그램이 있습니다. 그것은 모든 내 PC에서 잘 작동하지만 고객의 PC에서 나는 다음과 같은 오류가 발생합니다.WCF 서비스 호출로 인해 TypeLoadException이 발생합니다.
[글] [헤더] 2011-12-20 10 : 54 : 29809 [5] Kern.Common.Logging.Logger가 WARN - 오차 로그 - 예외의 결과를 만드는 작업 중에 발생 유효하지 않습니다. 예외 세부 사항은 InnerException 을 확인하십시오. 2011-12-20 10 : 54 : 29,928 [5] WARN Kern.Common.Logging.Logger - 내부 예외 - System.TypeLoadException : 형식 'ChannelBase를로드 할 수 없습니다.
1' from assembly 'System.ServiceModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. at KernMobile.Data.Server.KernMobileWcfService.KernServiceClient.CreateChannel() at System.ServiceModel.ClientBase
1.CreateChannelInternal()을 에서 System.ServiceModel.ClientBase1.get_Channel() at KernMobile.Data.Server.KernMobileWcfService.KernServiceClient.KernMobile.Data.Server.KernMobileWcfService.IKernService.BeginLogin(String username, String password, AsyncCallback callback, Object asyncState) at KernMobile.Data.Server.KernMobileWcfService.KernServiceClient.OnBeginLogin(Object[] inValues, AsyncCallback callback, Object asyncState) at System.ServiceModel.ClientBase
1.InvokeAsync
내가 추적 WCF 켜져 (beginOperationDelegate beginOperationDelegate는 [] inValues, endOperationDelegate endOperationDelegate, SendOrPostCallback operationCompletedCallback, 개체 userState 개체)하지만 로그 파일에보고 된 오류가 없습니다.
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="BasicHttpBinding_IKernService" closeTimeout="00:01:00"
openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
maxBufferSize="2147483647" maxBufferPoolSize="524288" maxReceivedMessageSize="2147483647"
messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered"
useDefaultWebProxy="true">
<readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
maxBytesPerRead="4096" maxNameTableCharCount="16384" />
<security mode="None">
<transport clientCredentialType="None" proxyCredentialType="None"
realm="" />
<message clientCredentialType="UserName" algorithmSuite="Default" />
</security>
</binding>
</basicHttpBinding>
</bindings>
<client>
<endpoint address="http://localhost/Kern.Server.Service/KernService.svc"
binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IKernService"
contract="KernMobileWcfService.IKernService" name="BasicHttpBinding_IKernService" />
</client>
</system.serviceModel>
어떤 아이디어 : 여기
는 서비스 설정인가?
.NET Framework v4.0이 클라이언트 컴퓨터에 설치되어 있는지 확인하고 모든 종속 DLL을 사용할 수 있는지 확인하십시오. – Rajesh