issue with system.net.webclient().downloadstring
issue with system.net.webclient().downloadstring
issue with system.net.webclient().downloadstring
issue with system.net.webclient().downloadstring
issue with system.net.webclient().downloadstring
issue with system.net.webclient().downloadstring issue with system.net.webclient().downloadstring issue with system.net.webclient().downloadstring issue with system.net.webclient().downloadstring issue with system.net.webclient().downloadstring issue with system.net.webclient().downloadstring issue with system.net.webclient().downloadstring issue with system.net.webclient().downloadstring
issue with system.net.webclient().downloadstring issue with system.net.webclient().downloadstring
issue with system.net.webclient().downloadstring
Go Back  Xtreme Visual Basic Talk > > > issue with system.net.webclient().downloadstring


Reply
 
Thread Tools Display Modes
  #1  
Old 09-15-2014, 12:20 PM
tilky tilky is offline
Newcomer
 
Join Date: Nov 2011
Posts: 23
Default issue with system.net.webclient().downloadstring


I'm writing this program where I want to download html files from websites.
Code:
sourceString = New System.Net.WebClient().DownloadString(downloadlink)
works fine, but for some reason, every time I go to test this program, it can download around 10 different URLs, and then it stops, giving the error "The underlying connection was closed: The connection was closed unexpectedly". If i try to navigate to the website, even the homepage of the website on my browser, it say "No Data Received" (Google Chrome). This stays like this for a while, until I shut off my computer and came back to it a few hours later. I tried restarting computer, but this didn't help when I tried. Also tried flushing dns. Also, don't know if this makes a difference, but I have a do until loop in between each download so it waits until i click a continue button. Thanks for any help.
Reply With Quote
  #2  
Old 09-16-2014, 07:48 AM
PlausiblyDamp's Avatar
PlausiblyDampissue with system.net.webclient().downloadstring PlausiblyDamp is offline
Ultimate Contributor

Forum Leader
* Expert *
 
Join Date: Nov 2003
Location: Newport, Wales
Posts: 2,058
Default

If you drill into the exception that is being thrown does it contain any further detail? e.g. Is there an InnerException property that has additional information?
__________________
Intellectuals solve problems; geniuses prevent them.
-- Albert Einstein

Posting Guidelines Forum Rules Use the code tags
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
issue with system.net.webclient().downloadstring
issue with system.net.webclient().downloadstring
issue with system.net.webclient().downloadstring issue with system.net.webclient().downloadstring
issue with system.net.webclient().downloadstring
issue with system.net.webclient().downloadstring
issue with system.net.webclient().downloadstring issue with system.net.webclient().downloadstring issue with system.net.webclient().downloadstring issue with system.net.webclient().downloadstring issue with system.net.webclient().downloadstring issue with system.net.webclient().downloadstring issue with system.net.webclient().downloadstring
issue with system.net.webclient().downloadstring
issue with system.net.webclient().downloadstring
 
issue with system.net.webclient().downloadstring
issue with system.net.webclient().downloadstring
 
-->