S
Stephen
We are using .net remoting in our application. We have an issure on one of
our application installations. When we stop the service, the socket address
that was used by this service is not released. Then we try to start this
service, we will get an exception -- Service cannot be started.
System.Runtime.Remoting.RemotingException: Remoting configuration failed with
the exception 'System.Reflection.TargetInvocationException: Exception has
been thrown by the target of an invocation. --->
System.Net.Sockets.SocketException: Only one usage of each socket address
(protocol/network address/port) is normally permitted
at
System.Runtime.Remoting.Channels.Http.HttpServerChannel.StartListening(Object
data)
at System.Runtime.Remoting.Channels.Http.HttpServerChannel.SetupChannel()
at
System.Runtime.Remoting.Channels.Http.HttpServerChannel..ctor(IDictionary
properties, IServerChannelSinkProvider sinkProvider)
at System.Runtime.Remoting.Channels.Http.HttpChannel..ctor(IDictionary
properties, IClientChannelSinkProvider clientSinkProvider,
IServerChannelSinkProvider serverSinkProvider)
Now we have to restart this computer every time in order to restart the
service.
What should I do to fix this issue? Another weirld thing is that this issue
only happens on one of our application installations. The service works fine
on other computers. Does it have anything to do with the OS?
We use code below to register the socket address.
RemotingConfiguration.Configure(AppDomain.CurrentDomain.SetupInformation.ConfigurationFile, false);
Is there anything wrong with the code itself?
Please help me look at this issue. It really bothers us.
Thanks very much
our application installations. When we stop the service, the socket address
that was used by this service is not released. Then we try to start this
service, we will get an exception -- Service cannot be started.
System.Runtime.Remoting.RemotingException: Remoting configuration failed with
the exception 'System.Reflection.TargetInvocationException: Exception has
been thrown by the target of an invocation. --->
System.Net.Sockets.SocketException: Only one usage of each socket address
(protocol/network address/port) is normally permitted
at
System.Runtime.Remoting.Channels.Http.HttpServerChannel.StartListening(Object
data)
at System.Runtime.Remoting.Channels.Http.HttpServerChannel.SetupChannel()
at
System.Runtime.Remoting.Channels.Http.HttpServerChannel..ctor(IDictionary
properties, IServerChannelSinkProvider sinkProvider)
at System.Runtime.Remoting.Channels.Http.HttpChannel..ctor(IDictionary
properties, IClientChannelSinkProvider clientSinkProvider,
IServerChannelSinkProvider serverSinkProvider)
Now we have to restart this computer every time in order to restart the
service.
What should I do to fix this issue? Another weirld thing is that this issue
only happens on one of our application installations. The service works fine
on other computers. Does it have anything to do with the OS?
We use code below to register the socket address.
RemotingConfiguration.Configure(AppDomain.CurrentDomain.SetupInformation.ConfigurationFile, false);
Is there anything wrong with the code itself?
Please help me look at this issue. It really bothers us.
Thanks very much