VS2010에서 WCF 응용 프로그램을 개발 중입니다. in-IDE 디버거를 사용하여 호스트 응용 프로그램과 클라이언트를 실행하면 모든 것이 의도 한대로 작동합니다. 내가 수동으로 두 개의 실행 파일을 실행할 때WCF SocketException
그러나, (은/빈/디버그/폴더로 이동), I는 클라이언트에서 다음 예외가 :
System.Net.Sockets.SocketException을 : 없음 연결이있을 수 있습니다 대상 컴퓨터가 적극적으로 127.0.0.1:8732
을 거부했기 때문에 이상한 일이의 app.config 파일에 내가 8732.
무슨 일이야, 포트 5000를 사용하지 않도록 지정 해요되어 만들어진? 미리 감사드립니다.
편집 :
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.web>
<compilation debug="true" />
</system.web>
<!-- When deploying the service library project, the content of the config file must be added to the host's
app.config file. System.Configuration does not support config files for libraries. -->
<system.serviceModel>
<services>
<service name="WCFServiceLibrary.SavalotServiceObject">
<endpoint address="" binding="wsHttpBinding" contract="WCFServiceLibrary.ISavalotService">
<identity>
<dns value="localhost" />
</identity>
</endpoint>
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
<host>
<baseAddresses>
<add baseAddress="http://localhost:5000/Design_Time_Addresses/WCFServiceLibrary/SavalotServiceObject/" />
</baseAddresses>
</host>
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior>
<!-- To avoid disclosing metadata information,
set the value below to false and remove the metadata endpoint above before deployment -->
<serviceMetadata httpGetEnabled="True"/>
<!-- To receive exception details in faults for debugging purposes,
set the value below to true. Set to false before deployment
to avoid disclosing exception information -->
<serviceDebug includeExceptionDetailInFaults="False" />
</behavior>
</serviceBehaviors>
</behaviors>
</system.serviceModel>
</configuration>
ctrl + F5를 눌러 디버깅하지 않고 실행하면 어떻게됩니까? – deltree
@deltree 같은 오류입니다. – Xenoprimate
그러면 문제는 설정 파일에 디버그 설정이 있다는 것입니다. – deltree