Solved

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

Posted on 2014-10-01
2
457 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

The article will include the best Data Recovery Tools along with their Features, Capabilities, and their Download Links. Hope you’ll enjoy it and will choose the one as required by you.
All of the resources available today make learning a new digital media easier than ever-- if you know where to begin. This is a clear, simple guide to a few of the basic digital art mediums and how to begin learning them on your own.
The view will learn how to download and install SIMTOOLS and FORMLIST into Excel, how to use SIMTOOLS to generate a Monte Carlo simulation of 30 sales calls, and how to calculate the conditional probability based on the results of the Monte Carlo …
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

790 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