You may want to search the archives on this issue. There has been numerous
postings which includes the following:
* Not setting the ContentLength field in the HttpWebRequest object.
* Setting the AllowWriteStreamBuffering field to true in the HttpWebRequest
object.
* Using .Net CF SP2 beta.
Here is a thread that you can also check:
http://groups.google.com/groups?hl=e...mpactframework
"Markus Posch" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> hy!
>
> i want to get a massage from dbase in a vb-project.
> wenn i show the html made by dbase in a browser it works but in vb i got
the
> error:
> The chunk length was not valid.
>
> my source:
>
> Dim viewer As New OpenNETCF.Windows.Forms.HTMLViewer
> Dim reader As StreamReader
> Dim Text As String
> Dim Text2 As String
> Dim request As WebRequest
> Dim response As WebResponse
> MsgBox("variablen deklariert")
> viewer.ParentForm = Me
> viewer.CreateHTMLControl()
>
>
viewer.DisplayText("http://my-pc/cgi-bin/cgitest.exe?var1=test1&var2=test2")
> request =
>
WebRequest.Create("http://my-pc/cgi-bin/cgitest.exe?var1=test1&var2=test2")
> response = request.GetResponse()
> reader = New StreamReader(response.GetResponseStream())
> Text = reader.ReadToEnd()
> MsgBox(Text)
>
>
> what is wrong?
>
>