Solved

Program hangs on stream.close()/stream.dispose()

Posted on 2014-10-01
2
449 Views
Last Modified: 2014-10-02
Hi Experts,

I use Stream.IO.Stream to upload a file via ftp. The file uploads successfully, but when I call stream.close() (vb.net) the program just hangs without throwing any error or exception. I tried just using stream.dispose() but same thing happens. This problem occurs at only one of our many clients, the only main difference in the environment I can see is that Norton 2014 antivirus and firewall are installed at the client but I disabled it before uploading.
0
Comment
Question by:LIBRALEX
2 Comments
 
LVL 75

Accepted Solution

by:
käµfm³d   👽 earned 500 total points
ID: 40354878
Have you tried viewing the raw TCP conversation that occurs during this process using something like Wireshark? Is there any difference in the conversations which take place among the various locations?

Outside of that, I have seen across the web suggestion of calling the Abort  method first--assuming, of course, that you are using the FtpWebRequest class.
0
 

Author Comment

by:LIBRALEX
ID: 40356445
Thanks I used the Abort method and it is not freezing anymore, works 100%.
0

Featured Post

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This guide will walk you through the essential considerations and tech stack for building scalable websites. Know how to grow your business the smart way!
Having trouble getting your hands on Dynamics 365 Field Service or Project Service trial? Worry No More!!!
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question