Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Remoting / April 2006

Tip: Looking for answers? Try searching our database.

Remoting using a Windows Service

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Chad - 12 Apr 2006 04:11 GMT
I am doing Remoting via a Windows Service. The problem I have is this:

When I go to release a new versionof the Service, I first stop the service. Then, I copy the new exe and dependent files to the bin folder and try to retart the service.

I get this error:

55121 not opened.
Error Message:
Only one usage of each socket address
(protocol/network address/port)
is normally permitted, Stack Trace:
at System.Runtime.Remoting.Channels.Tcp.TcpServerChannel.StartListening(Object data) at System.Runtime.Remoting.Channels.Tcp.TcpServerChannel.SetupChannel()
at System.Runtime.Remoting.Channels.Tcp.TcpServerChannel..ctor(Int32 port)
at System.Runtime.Remoting.Channels.Tcp.TcpChannel..ctor(Int32 port)
at SKPIListener.SKPIListenerService.OnStart(String[] args)
in C:\Projects\SKPIListener\SKPIListener\SKPIListenerService.vb:line 128

The Service is stuck in "Starting" state and I can't stop or start it.

This is the only program that uses port 55121 on the server. Why does it think that the port is in use? Stopping the Service before restarting the new service should have cleared out things so the port would not be in use when I go to rerun it.

Rebooting the box is the only way to clear this problem and this is not a practical approach in production.

Any idea why this is happening, how to prevent it, or any other way to corect it?

Thanks

Chad
Spam Catcher - 12 Apr 2006 18:11 GMT
> This is the only program that uses port 55121 on the server. Why does
> it think that the port is in use? Stopping the Service before
[quoted text clipped - 6 lines]
> Any idea why this is happening, how to prevent it, or any other way to
> corect it?

Seems like the old channel is still stuck on the port.

Did you unregister the channel when you shut down?

Are there threads still running that are tying up the port?

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.