Login  
Search All Forums
Dart Home | PowerTCP Web Enterprise for ActiveX | Custom Development Reply | PowerTCP Web Enterprise for ActiveX Topics | Forums   
AuthorForum: PowerTCP Web Enterprise for ActiveX
Topic: WebASP1.Response.Body.ReadString losing Data
tom

From: norm, OK USA
Posts: 6
Member Since: 06/02/03
posted June 2, 2003 8:41 PM

http://www.universalequipmentcompany.com/
This page shows body in trace file, but
txtContent.Text = WebASP1.Response.Body.ReadString
won't show results. See if you can get this page
Jeff Cranford



From: Rome, NY USA
Posts: 586
Member Since: 05/30/01
posted June 3, 2003 8:49 AM

I tried it with the Page Fetch sample (which uses Response.Body.ReadString) and it looks like the sample is getting the same data IE is getting.

Are you sure you aren't reading from Body elsewhere in your code and need to reset the Body.Position to 0?
tom

From: norm, OK USA
Posts: 6
Member Since: 06/02/03
posted June 3, 2003 2:24 PM

Still the same result for me the
WebASP1.Response.Body.ReadString
doesn't work on this site but it works on others
The web control page fetch ex. works ok but the
WebASP page fetch sample does not
Jeff Cranford



From: Rome, NY USA
Posts: 586
Member Since: 05/30/01
posted June 6, 2003 11:41 AM

Which PageFetch sample are you using? The VB6 one works fine for me.

Also, check to see if you have the latest version of the products. http://www.dart.com/downloads/webenterprisetool.exe . The dll version should be 1.8.0.4
tom

From: norm, OK USA
Posts: 6
Member Since: 06/02/03
posted June 6, 2003 11:53 AM

C:\Program Files\PowerTCP\Web Enterprise Tool\Samples\WebASP\Vb6\PageFetch

Path to sample
I still get the same problem
tom

From: norm, OK USA
Posts: 6
Member Since: 06/02/03
posted June 6, 2003 12:03 PM

Yes I have the current dll but won't work on this site.

This sample works Ok
C:\Program Files\PowerTCP\Web Enterprise Tool\Samples\Web\Vb6\PageFetch
But I wanted to use the WebASP so I could take advantage of the parse features but it seems to be unreliable
Is their a catche setting for the WebAsp control
or sompthing else
Jeff Cranford



From: Rome, NY USA
Posts: 586
Member Since: 05/30/01
posted June 6, 2003 1:23 PM

There was a bug similar to this that was fixed a few weeks ago. Check the value of State when the state event is raised. It should look like the following.

STATE :1 (Connecting)
STATE :2 (Connected)
STATE :3 (Closing)
STATE :0 (Closed)
STATE :1 (Connecting)
STATE :2 (Connected)
STATE :3 (Closing)
STATE :0 (Closed)

Let me now whether or not it is reaching the final Closed state.
tom

From: norm, OK USA
Posts: 6
Member Since: 06/02/03
posted June 6, 2003 3:08 PM

Here is Debug Results
STATE :1
STATE :2
STATE :3
STATE :0
STATE :1
STATE :2
STATE :3

It looks like it did not got to 0

Any sugestions?
tom

From: norm, OK USA
Posts: 6
Member Since: 06/02/03
posted June 6, 2003 3:44 PM

Jeff
This might not be the right way to work around bug but This is what I did and it works. I get Results Ok each time " So Far "

Private Sub WebASP1_State()
  Debug.Print "STATE :" + CStr(WebASP1.State)
  If CStr(WebASP1.State) = 3 Then
  DoEvents
  End If
End Sub

Please..... Let me Know the right way to do it
Thank You
Jeff Cranford



From: Rome, NY USA
Posts: 586
Member Since: 05/30/01
posted June 6, 2003 3:55 PM

It sounds like you are impacted by the bug. If you would like to test a beta of of fix, send an email to support@dart.com and reference this thread in the subject line.

Alternatively, you can use your workaround if it works, or you can use the Web Control to get the data, then feed it to the WebPage object for parsing (the WebPage object is compatible with any data source, not just WebASP).
ajayk_goel

From: Woburn, MA USA
Posts: 3
Member Since: 06/17/05
posted November 16, 2006 1:13 PM

Did this get fixed in v1.8.0.4? I am having the same issue. The data gets lost sometimes and adding DoEvents does not help. I am not working with sample but one of my own VB project
Thanks
Reply | PowerTCP Web Enterprise for ActiveX Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX