Visual Studio 2010 .NET 4.0을 사용하여 Office 공유 추가 기능을 만들었습니다. WCF 서비스를 참조에 추가합니다..NET C# Office 공유 추가 WCF 서비스 참조 예외
는 ServiceModel은 서비스 클라이언트 구성 섹션에서 계약 'Services.IBusinessLogicLayerMetaData'를 참조하는 기본 끝점 요소를 찾을 수 없습니다 : WCF 서비스 클라이언트의 인스턴스를 생성 할 때, 나는 다음과 같은 예외를 얻을. 이는 응용 프로그램에 대한 구성 파일이 없거나이 계약에 일치하는 엔드 포인트 요소가 클라이언트 요소에 없기 때. 일 수 있습니다.
어떻게 해결해야할지 모르겠다. 내 app.config는 다음과 같습니다.
<?xml version="1.0"?>
<configuration>
<system.serviceModel>
<bindings>
<wsHttpBinding>
<binding name="WSHttpBinding_IBusinessLogicLayerMetaData" 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="1048576000" messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true" allowCookies="false">
<readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384" maxBytesPerRead="4096" 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://10.181.9.47:8000/DeutscheBank.WindowsServices.DataSOA/BusinessLogicLayerMetaDataService" binding="wsHttpBinding" bindingConfiguration="WSHttpBinding_IBusinessLogicLayerMetaData" contract="Services.IBusinessLogicLayerMetaData" name="WSHttpBinding_IBusinessLogicLayerMetaData" />
</client>
</system.serviceModel>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
</startup>
</configuration>
추가 기능은 클라이언트 컴퓨터 또는 가상 데스크톱 (예 : Citrix)에 배포됩니까? 나는 최근에 같은 문제가 발생했다 : [WCF VSTO 클라이언트가 win2k8에 배치 될 때 기본 엔드 포인트를 찾을 수 없다] (http://stackoverflow.com/questions/6111125/) – Filburt