웹 서비스에 VS2010/.NET 4 솔루션에 프록시를 추가했습니다. 내 컴퓨터는 Windows 7 OS입니다. 내가 지금 여기에 simlar 유형의 문제를 발견기본 끝점 요소를 찾을 수 없습니다. .NET 4.0
Could not find endpoint element with name 'FulfilmentServicesSoap' and contract 'FulfimentServiceSoap.FulfilmentServicesSoap' in the ServiceModel client configuration section. This might be because no configuration file was found for your application, or because no endpoint element matching this name could be found in the client element.
: 클라이언트 .NET을 구성하면이 오류가 발생하면
Could not find default endpoint element
그러나이를 통해 읽고 몇 가지 답변을 시도를 작동하지 나를 위해. "IFulfimentServiceSoap"이름 = "FulfilmentServicesSoap"/>
및
계약 = "FulfimentServiceSoap.FulfilmentServicesSoap"이름 = "FulfilmentServicesSoap =
계약 : 나는의 app.config 포함 여러 번 파일을 편집 한 "/>
및
계약 ="MYFullNamespace.FulfimentServiceSoap.FulfilmentServicesSoap "이름 ="FulfilmentServicesSoap "/>
,536,913,632 10그러나 각각의 경우 웹 서버를 실행할 때 이벤트 뷰어는 구성 파일을 편집 할 때도 계약 'FulfimentServiceSoap.FulfilmentServicesSoap'을 표시합니다. app.config 파일의 변경 사항을 적용하기 위해해야 할 일이 있습니까? 아니면 다른 모든 아이디어가 있습니까?
편집 - 클라이언트가 생성 코드 -
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="FulfilmentServicesSoap" closeTimeout="00:01:00"
openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
maxBufferSize="65536" maxBufferPoolSize="524288" maxReceivedMessageSize="65536"
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/WLR3.Web.services/FulfilmentServices.asmx"
binding="basicHttpBinding" bindingConfiguration="FulfilmentServicesSoap"
contract="FulfimentServiceSoap.FulfilmentServicesSoap"name="FulfilmentServicesSoap" />
</client>
</system.serviceModel>
편집의 app.config에서 바인딩 정보를 추가했습니다.
FulfimentServiceSoap.FulfilmentServicesSoap fulfilmentServices = new FulfimentServiceSoap.FulfilmentServicesSoapClient("FulfilmentServicesSoap");
더 많은 정보 (설정)를 게시하지 않으면 도움이되지 않습니다. – Aliostad
어떤 설정을 해제할까요? –
app.config, web.config ... 바인딩 설정이 필요합니다. – Aliostad