[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Shwe Ko

9/23/2004 9:55:00 PM

I am testing the ChatCoordinator.dll, Server.exe and Client.exe from MS Exam
prep guide.

When I run Server.exe as it is told in Chap04, I got the following error
message and I cannot go on..
Any help will be grately appreciated.
//////////////////

C:\70-310\Solution\Ch04\CS>server

Unhandled Exception: 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)
--- End of inner exception stack trace ---
at System.Reflection.RuntimeConstructorInfo.InternalInvoke(BindingFlags
invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean
isBinderDefault)
at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags
invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder
binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr,
Binder binder, Object[] args, CultureInfo culture, Object[]
activationAttributes)
at
System.Runtime.Remoting.RemotingConfigHandler.CreateChannelFromConfigEntry(ChannelEntry entry)
at
System.Runtime.Remoting.RemotingConfigHandler.ConfigureChannels(RemotingXmlConfigFileData configData)
at
System.Runtime.Remoting.RemotingConfigHandler.ConfigureRemoting(RemotingXmlConfigFileData configData).
at
System.Runtime.Remoting.RemotingConfigHandler.ConfigureRemoting(RemotingXmlConfigFileData configData)
at System.Runtime.Remoting.RemotingConfiguration.Configure(String filename)

/////////////////////

Please advise..

Thanks
Shwe
1 Answer

Ken Kolda

9/23/2004 11:44:00 PM

0

Basically, what this means is that two different processes/channels are
attempting to use the same port number. This could happen because of any of
the following:

1) In your config file you have either declared two channels using the same
port number.
2) You are creating a channel programmatically and also using the config
file and they use the same port.
3) You are creating your channel multiple times within your code or calling
RemotingConfiguration.Configure multiple times.
4) You are trying to run two instances of your app and they are attempting
to use the same port.
5) You are trying to use the same port as another process on your machine
(e.g. you're trying to use port 80 and you have a web server running).

Ken


"Shwe Ko" <ShweKo@discussions.microsoft.com> wrote in message
news:B12EDD51-B273-45EE-BB6E-DF85C8A488F8@microsoft.com...
> I am testing the ChatCoordinator.dll, Server.exe and Client.exe from MS
Exam
> prep guide.
>
> When I run Server.exe as it is told in Chap04, I got the following error
> message and I cannot go on..
> Any help will be grately appreciated.
> //////////////////
>
> C:\70-310\Solution\Ch04\CS>server
>
> Unhandled Exception: 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(Objec
t
> 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)
> --- End of inner exception stack trace ---
> at System.Reflection.RuntimeConstructorInfo.InternalInvoke(BindingFlags
> invokeAttr, Binder binder, Object[] parameters, CultureInfo culture,
Boolean
> isBinderDefault)
> at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags
> invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
> at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr,
Binder
> binder, Object[] args, CultureInfo culture, Object[] activationAttributes)
> at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr,
> Binder binder, Object[] args, CultureInfo culture, Object[]
> activationAttributes)
> at
>
System.Runtime.Remoting.RemotingConfigHandler.CreateChannelFromConfigEntry(C
hannelEntry entry)
> at
>
System.Runtime.Remoting.RemotingConfigHandler.ConfigureChannels(RemotingXmlC
onfigFileData configData)
> at
>
System.Runtime.Remoting.RemotingConfigHandler.ConfigureRemoting(RemotingXmlC
onfigFileData configData).
> at
>
System.Runtime.Remoting.RemotingConfigHandler.ConfigureRemoting(RemotingXmlC
onfigFileData configData)
> at System.Runtime.Remoting.RemotingConfiguration.Configure(String
filename)
>
> /////////////////////
>
> Please advise..
>
> Thanks
> Shwe