G
Guest
Hi All,
I have developed a simple dotnet remoting application.
My server is in a dll and a host application activates the server by
using following code:
HttpChannel chnl = new HttpChannel(1234);
ChannelServices.RegisterChannel(chnl);
RemotingConfiguration.RegisterWellKnownServiceType( typeof( Server ),
"Server.soap",
WellKnownObjectMode.Singleton
);
and when i am done with the work i just unregister the channel.
ChannelServices.UnregisterChannel(chnl);
but again when i activate the server object with the above code i get
the following error:
"Only one usage of each socket address(protocol/network
address/port)is normally permitted."
whether i am doing any mistake while unregistering a channel?
or not doing proper clean up?
any help is most welcome.
thanks in advance.
regards,
kiran gadekar
I have developed a simple dotnet remoting application.
My server is in a dll and a host application activates the server by
using following code:
HttpChannel chnl = new HttpChannel(1234);
ChannelServices.RegisterChannel(chnl);
RemotingConfiguration.RegisterWellKnownServiceType( typeof( Server ),
"Server.soap",
WellKnownObjectMode.Singleton
);
and when i am done with the work i just unregister the channel.
ChannelServices.UnregisterChannel(chnl);
but again when i activate the server object with the above code i get
the following error:
"Only one usage of each socket address(protocol/network
address/port)is normally permitted."
whether i am doing any mistake while unregistering a channel?
or not doing proper clean up?
any help is most welcome.
thanks in advance.
regards,
kiran gadekar