Solved

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

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

Raise the IQ of Your IT Alerts

From IT major incidents to manufacturing line slowdowns, every business process generates insights that need to reach the people required to take action. You need a platform that integrates with your business tools to create fully enabled DevOps toolchains.

You need xMatters.

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.
An introduction to the wonderful sport of Scam Baiting.  Learn how to help fight scammers by beating them at their own game. This great pass time helps the world, while providing an endless source of entertainment. Enjoy!
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

696 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