By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,455 Members | 1,385 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,455 IT Pros & Developers. It's quick & easy.

Error at System.Net.ConnectStream.EndReadWithoutValidation

P: n/a
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

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
string rssData=sr.ReadToEnd();

Nov 15 '05 #1
Share this Question
Share on Google+
1 Reply

P: n/a
This problem also only appears to occur when using my 56K modem.

Nov 15 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.