Sto cercando di capire perché la porta viene utilizzata anche dopo il riavvio del computer!Esiste già un listener su endpoint IP 0.0.0.0:13000. ?? (TCP using WCF)
System.ServiceModel.AddressAlreadyInUseException: esiste già un listener su endpoint IP 0.0.0.0:13000. Ciò potrebbe accadere se è già in ascolto un'altra applicazione su questo endpoint o se si dispone di più endpoint del servizio nel proprio host di servizio con lo stesso endpoint IP ma con configurazioni di rilegatura incompatibili. ---> System.Net.Sockets.SocketException: solo un utilizzo di ciascun indirizzo socket (protocollo/indirizzo/porta di rete) è normalmente consentito in System.Net.Sockets.SoDub (EndPoint endPointSnapshot, SocketAddress socketAddress) in System.Net.Sockets.Socket.Bind (EndPoint localEP) in System.ServiceModel.Channels.SocketConnectionListener.Listen() --- Fine della traccia dello stack di eccezioni interne --- in System.ServiceModel.Channels.SocketConnectionListener.Listen() a System.ServiceModel.Channels.TracingConnectionListener.Listen() a System.ServiceModel.Channels.ConnectionAcceptor.StartAccepting() a System.ServiceModel.Channels.ExclusiveTcpTransportManager.OnOpen() a System.ServiceModel.Channels.Trans portManager.Open (TransportChannelListener channelListener) a System.ServiceModel.Channels.TransportManagerContainer.Open (SelectTransportManagersCallback selectTransportManagerCallback) a System.ServiceModel.Channels.TcpChannelListener`2.OnOpen (TimeSpan timeout) a System.ServiceModel.Channels.CommunicationObject.Open (TimeSpan timeout) a System.ServiceModel.Dispatcher.ChannelDispatcher.OnOpen (TimeSpan timeout) a System.ServiceModel.Channels.CommunicationObject.Open (TimeSpan timeout) a System.ServiceModel.ServiceHostBase.OnOpen (TimeSpan timeout) presso System .ServiceModel.Channels.CommunicationObject.Open (timeout TimeSpan) in Microsoft.Tools.SvcHost.ServiceHostHelper.OpenService (informazioni ServiceInfo) System.Net.Sockets.SocketException (0x80004005): è consentito un solo utilizzo di ciascun indirizzo socket (protocollo/indirizzo di rete/porta) in System.Net.Sockets.SoBind (EndPoint endPointSnapshot, SocketAddress socketAddress) in corrispondenza di System.Net.Sockets.Socket.Bind (EndPoint localEP) a System.ServiceModel.Channels.SocketConnectionListener.Listen()
Come si fa a capire quale processo sta ascoltando quella porta (13000)? Netstat non mostra nulla su quella porta.
Ecco il mio app.config:
<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="SomeTarget.SomeTargetService">
<endpoint address="" binding="customBinding" bindingConfiguration="NetTcpBinding"
contract="SomeTarget.ISomeTargetService">
<identity>
<dns value="localhost" />
</identity>
</endpoint>
<endpoint address="mex" binding="mexTcpBinding" bindingConfiguration=""
contract="IMetadataExchange" />
<host>
<baseAddresses>
<add baseAddress="net.tcp://localhost:13000" />
</baseAddresses>
</host>
</service>
</services>
<bindings>
<customBinding>
<binding name="NetTcpBinding" sendTimeout="00:05:00" closeTimeout="00:00:30" openTimeout="00:00:30" receiveTimeout="00:05:00">
<transactionFlow />
<binaryMessageEncoding />
<windowsStreamSecurity protectionLevel="None" />
<tcpTransport maxBufferPoolSize="524288"
maxReceivedMessageSize="1024"
maxBufferSize="1024" >
<connectionPoolSettings groupName="default" leaseTimeout="00:05:00"
idleTimeout="00:02:00" maxOutboundConnectionsPerEndpoint="20" />
</tcpTransport>
</binding>
</customBinding>
</bindings>
<behaviors>
<serviceBehaviors>
<behavior name="">
<serviceMetadata httpGetEnabled="false" httpsGetEnabled="false" />
<serviceDebug includeExceptionDetailInFaults="false" />
</behavior>
</serviceBehaviors>
</behaviors>
</system.serviceModel>
</configuration>
Problema firewall? Il firewall –
non dovrebbe fornire un AddressAlreadyInUseException. – Yaur
non ho trovato nulla ... –