Solved

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

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

Accepted Solution

by:
käµfm³d   👽 earned 500 total points
Comment Utility
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
Comment Utility
Thanks I used the Abort method and it is not freezing anymore, works 100%.
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Join & Write a Comment

As with any other System Center product, the installation for the Authoring Tool can be quite a pain sometimes. This article serves to help you avoid making these mistakes and hopefully save you a ton of time on troubleshooting :)  Step 1: Make sur…
A high-level exploration of how our ever-increasing access to information has changed the way we do our jobs.
The viewer will learn how to create multiple layers to apply various filters and how to delete areas from each layer’s filter.
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…

743 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now