Problem with HttpWebResponse

  • Thread starter Thread starter Hilton
  • Start date Start date
H

Hilton

Hi,

I have been successfully downloading HTML using HttpWebRequest and
HttpWebResponse. However one particular URL (very simple HTML) gives me:

Emulator:
System.IO.IOException: The chunk length was not valid. --->
System.FormatException:FormatException

Dell Axim X5 (400 MHz) with SP1:
System.IO.IOException:Could not find resource assembly --->
System.FormatException:FormatException

Command Prompt (XP with .NET Service Patches etc):
Works just fine!


I have stepped through the response stream byte by byte. It reads a 10
(newline), then when it goes to read the next byte, it throws the exception.
The read is in the middle of the HTML (not at the end). Any ideas? Is
there a known issue? Why the inconsitencies?

BTW: I just tried the same code with http://www.cnn.com and it downloads
every single character just fine...

Any work around would be very much appreciated.

Many thanks!

Hilton
 
What is the URL that is giving you the trouble?

The "Could not find resource assembly" message on your Axim indicates that
you have not installed the developer string resource assemblies onto that
device. If these were present, I would expect you to receive the same
message as on the emulator (re: chunk length).

Thanks!
David Kline
Microsoft .NET Compact Framework
--------------------------------
This posting is provided “AS IS” with no warranties, and confers no
rights.

Please do not send email directly to this alias. This alias is for
newsgroup purposes only. To correspond with me directly, remove the
'online' from
my alias.
 
Back
Top