PC Review


Reply
Thread Tools Rate Thread

The chunk length was not valid

 
 
Markus Posch
Guest
Posts: n/a
 
      3rd Dec 2003
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?


 
Reply With Quote
 
 
 
 
Young Cho
Guest
Posts: n/a
 
      3rd Dec 2003
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?
>
>



 
Reply With Quote
 
Markus Posch
Guest
Posts: n/a
 
      4th Dec 2003
thx for your answer.
i donīt find any download for cf sp2
every link i found is linked with microsoft and doesnīt work

greets
markus
(sorry my english is not very good)

"Young Cho" <(E-Mail Removed)> schrieb im Newsbeitrag
news:%(E-Mail Removed)...
> 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?
> >
> >

>
>



 
Reply With Quote
 
Young Cho
Guest
Posts: n/a
 
      4th Dec 2003
..Net CF SP 2 is in beta. It is supposed to be released before the end of
the year. If you want to sign up for the beta and use it before the
release, search the archives for information on signing up for the beta
program.

Young.

"Markus Posch" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> thx for your answer.
> i donīt find any download for cf sp2
> every link i found is linked with microsoft and doesnīt work
>
> greets
> markus
> (sorry my english is not very good)
>
> "Young Cho" <(E-Mail Removed)> schrieb im Newsbeitrag
> news:%(E-Mail Removed)...
> > 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?
> > >
> > >

> >
> >

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
The chunk length was not valid when reading from stream Thomas Microsoft Dot NET Framework 1 20th Dec 2004 12:07 PM
The chunk length was not valid when reading from stream Thomas Microsoft Dot NET 0 19th Dec 2004 05:54 PM
chunk length was not valid in HttpWebRequest class Eric Larson Microsoft Dot NET Compact Framework 3 5th Dec 2003 06:07 PM
The chunk length was not valid - Not resolved Olivier P. Microsoft Dot NET Compact Framework 2 1st Dec 2003 06:24 PM
HttpWebResponse: Problems reading response stream - The chunk length was not valid exception Young Cho Microsoft Dot NET Compact Framework 8 21st Nov 2003 05:56 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:53 PM.