L
Lenard Gunda
Hello!
I have created a program, that receives files, and then stores them locally
for later access. This program is run on a Windows 2000 Server computer as a
system service. Some of the files also need to be copied over to another
computer, that is running Windows 2000 Professional version. This goes all
right for some time, but then I start receiving the following error.
IOException: No more connections can be made to this remote computer at this
time because there are already as many connections as the computer can
accept.
Currently, I am using FileInfo.CopyTo method to relocate the file to the
remote computer, by using windows shares. But I have also tried wiriting the
file there with FileStream (since I have it in memory), but that too causes
the above error after some time.
I guess this has something to do with the operating system being a
workstation version, which has probably a limited number (10?) of
connections available. I just don't know why the connections are not closed
and reused. I tested the program with Task Manager, to see if any handles
are leaking, but they are not.
What could be a solution to this situation?
Thanks
-Lenard
I have created a program, that receives files, and then stores them locally
for later access. This program is run on a Windows 2000 Server computer as a
system service. Some of the files also need to be copied over to another
computer, that is running Windows 2000 Professional version. This goes all
right for some time, but then I start receiving the following error.
IOException: No more connections can be made to this remote computer at this
time because there are already as many connections as the computer can
accept.
Currently, I am using FileInfo.CopyTo method to relocate the file to the
remote computer, by using windows shares. But I have also tried wiriting the
file there with FileStream (since I have it in memory), but that too causes
the above error after some time.
I guess this has something to do with the operating system being a
workstation version, which has probably a limited number (10?) of
connections available. I just don't know why the connections are not closed
and reused. I tested the program with Task Manager, to see if any handles
are leaking, but they are not.
What could be a solution to this situation?
Thanks
-Lenard