473,320 Members | 2,122 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Error at System.Net.ConnectStream.EndReadWithoutValidation

My problem is -

This only occurs intermittently, it appears it happens on larger files that
I attempt to download using the WebRequest method.

The exception is thrown at sr.ReadToEnd();

It makes no different using or not using a BufferedStream.
My problem is similar to that at
http://groups.google.com/groups?hl=e...3DN%26tab%3Dwg

My exception is -

Message "The request was aborted: The request was canceled."

StackTrace " at
System.Net.ConnectStream.EndReadWithoutValidation( NestedSingleAsyncResult
castedAsyncResult)\r\n at System.Net.ConnectStream.EndRead(IAsyncResult
asyncResult)\r\n at System.Net.ConnectStream.Read(Byte[] buffer, Int32
offset, Int32 size)\r\n at System.IO.BufferedStream.Read(Byte[] array,
Int32 offset, Int32 count)\r\n at System.IO.StreamReader.ReadBuffer(Char[]
userBuffer, Int32 userOffset, Int32 desiredChars, Boolean&
readToUserBuffer)\r\n at System.IO.StreamReader.Read(Char[] buffer, Int32
index, Int32 count)\r\n at System.IO.StreamReader.ReadToEnd()\r\n at
HZRSSNotifier.helperMods.rssLoader.respStreamLoad( IAsyncResult res) in
c:\\documents and settings\\gary\\my documents\\visual studio
projects\\hzrssnotifier\\helpermods\\rssloader.cs: line 143" string

My code is
WebRequest wrq=(WebRequest)res.AsyncState;
WebResponse resp=wrq.EndGetResponse(res);

StreamReader sr=new StreamReader(new
BufferedStream(resp.GetResponseStream()));
string rssData=sr.ReadToEnd();
resp.Close();
sr.Close();




Nov 15 '05 #1
1 4514
This problem also only appears to occur when using my 56K modem.

Nov 15 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Shane | last post by:
I am getting the following exception when trying to post a stream of string data to another website using an HttpWebRequest object. It works sometimes but fails at other times. Does anyone know...
0
by: Saverio Tedeschi | last post by:
Hi all gurus, forgive me if I submit a 2nd post, but I'm no more able to see my question. So: I wrote an Win app with embedded FTP client (well, made some cut and paste from others' projects :-))...
0
by: Aryeh Holzer | last post by:
Hi, I've been trying to use the weather webservice available from the National Weather Service (NWS), at http://www.nws.noaa.gov/forecasts/xml/DWMLgen/wsdl/ndfdXML. wsdl without success. Here's...
0
by: Ross M | last post by:
Dear Microsoft, I m getting this error message, on every SECOND attempt to access a web service on a foreign PC. I am using .net framework 2 beta 2 with Visual Web developer 2. Below is the...
0
by: quocvuong2005 | last post by:
Hi all ! I have a webservice that contains a Helloworld() method (This return a string type ) and a asp.net application . I call Helloworld method from webservice , it works fine . but when i call...
0
by: quocvuong2005 | last post by:
Hi all ! I have a webservice that contains a Helloworld() method (This return a string type ) and a asp.net application . I call Helloworld method from webservice , it works fine . but when i call...
0
by: Brent | last post by:
After six months flawless operation, I'm suddenly getting this error: "Unable to read data from the transport connection." The code* hasn't changed, and from what I can see, neither have the IP...
0
by: oriol.ardevol | last post by:
Hi, I have an asp.net application that connects through an HttpWebRequest object to a ISAPI dll in a server. This isapi dll has some different method calls. What I do is calling the different...
1
by: Mrozik | last post by:
Hi! I have a problem - after deploying application in client environment, on some client machines occured error. Environment: App server: ASP.NET WebService/Win 2003/ secured SSL (.NET 2.0)...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.