Пытаюсь понять, почему порт используется даже после перезагрузки компьютера!
System.ServiceModel.AddressAlreadyInUseException: На конечной точке IP 0.0.0.0:13000 уже есть прослушиватель. Это может произойти, если другое приложение уже прослушивает эту конечную точку или если у вас есть несколько конечных точек службы на узле службы с одной и той же конечной точкой IP, но с несовместимыми конфигурациями привязки. ---> System.Net.Sockets.SocketException: обычно разрешено только одно использование каждого адреса сокета (протокол/сетевой адрес/порт). в System.Net.Sockets.Socket.DoBind(EndPoint endPointSnapshot, SocketAddress socketAddress) в System.Net.Sockets.Socket.Bind(EndPoint localEP) в System.ServiceModel.Channels.SocketConnectionListener.Listen() --- Конец внутренней трассировки стека исключений --- в System.ServiceModel.Channels.SocketConnectionListener.Listen() в System.ServiceModel.Channels.TracingConnectionListener.Listen() в System.ServiceModel.Channels.ConnectionAcceptor.StartAccepting() в System.ServiceModel.Channels.ExclusiveTcpTransportManager.OnOpen() в System.ServiceModel.Channels.TransportManager.Open(TransportChannelListener channelListener) в System.ServiceModel.Channels.TransportManagerContainer.Open(SelectTransportManagersCallback selectTransportManagerCallback) в Системе.ServiceModel.Channels.TcpChannelListener`2.OnOpen (время ожидания TimeSpan) в System.ServiceModel.Channels.CommunicationObject.Open (время ожидания TimeSpan) в System.ServiceModel.Dispatcher.ChannelDispatcher.OnOpen (время ожидания TimeSpan) в System.ServiceModel.Channels.CommunicationObject.Open (время ожидания TimeSpan) в System.ServiceModel.ServiceHostBase.OnOpen (время ожидания TimeSpan) в System.ServiceModel.Channels.CommunicationObject.Open (время ожидания TimeSpan) в Microsoft.Tools.SvcHost.ServiceHostHelper.OpenService (информация о ServiceInfo) System.Net.Sockets.SocketException (0x80004005): обычно разрешено только одно использование каждого адреса сокета (протокол/сетевой адрес/порт). в System.Net.Sockets.Socket.DoBind(EndPoint endPointSnapshot, SocketAddress socketAddress) в System.Net.Sockets.Socket.Bind(EndPoint localEP) at System.ServiceModel.Channels.SocketConnectionListener.Listen()
Как определить, какой процесс прослушивает этот порт (13000)? Netstat ничего не показывает на этом порту.
Вот мой 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>