?
Solved

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

Posted on 2014-10-01
2
Medium Priority
?
497 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 75

Accepted Solution

by:
käµfm³d   👽 earned 2000 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

Automating Your MSP Business

The road to profitability.
Delivering superior services is key to ensuring customer satisfaction and the consequent long-term relationships that enable MSPs to lock in predictable, recurring revenue. What's the best way to deliver superior service? One word: automation.

Question has a verified solution.

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

There are many software programs on offer that will claim to magically speed up your computer. The best advice I can give you is to avoid them like the plague, because they will often cause far more problems than they solve. Try some of these "do it…
If you're a modern-day technology professional, you may be wondering if certifications are really necessary. They are. Here's why.
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

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