473,394 Members | 1,879 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Data not yet avaiable problem!

I have the following code in a .vb file (.NET Frame work
1.1 using MSXML 4.0)

'******************************************
Public Function XMLHttpOpen(ByVal strURL As String,
Optional ByVal strUserName As String = Nothing, Optional
ByVal strPwd As String = Nothing) As String
Dim objXML As New MSXML2.XMLHTTP
Dim strError as String
Try
objXML.open("GET", strURL, False, strUserName,
strPwd) 'varASYNC=TRUE
objXML.send()
Do While Not objXML.readyState = 4
System.Threading.Thread.Sleep(100)
Loop
**********************FAILS ON THEFOLLOWING LINE***********
strError = ReadXMLData(objXML.responseText)
************************************************** ******
If strError = Nothing Then
XMLHttpOpen = "XML File(s) copied
successfully!"
Else
Return strError
End If
Catch xme As System.Xml.XmlException
XMLHttpOpen = xme.Message
Catch ce As
System.Runtime.InteropServices.COMException
XMLHttpOpen = ce.Message
Finally
objXML = Nothing
End Try
End Function
************************************************** *****

The error thrown at the responseText Method is
"The data necessary to complete this operation is not yet
avaialable'

Yet when I call this function on .ASPX page it runs fine.
The error only pops up on a Windows Form or in a VBSCript
file.Any ideas?

Thanks in advance...
..
Nov 11 '05 #1
0 1048

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

32
by: Neil Ginsberg | last post by:
We're using SQL Server 7 with an Access 2000 MDB as a front end with ODBC linked tables. I recently created a new set of tables for the app, and users are complaining that unsaved data is being...
4
by: serge | last post by:
I am doing a test on migrating an Oracle 8i database to SQL 2000. I've never done this before and I would like to find out if there are any complications or side effects if I try doing the...
4
by: William | last post by:
After much frustration I was able to update my data store via code only. Using the data adapter was the only way I was able to set up all the objects written in my code. Basically, I cheated by...
0
by: dermot | last post by:
Hi, I am writing an application that reads in data from XML files. This data is relational. I want to store the data in SQL Server. Is there any way I can set this up using existing tools, or...
5
by: chellappa | last post by:
Hi All, How to find the data type of the variable ? is there any libaray function avaiable? Because i want create generic data type of some operation . Thanks All By Chellappa
3
by: WebNewsReader | last post by:
Hi, I'm using a webbrowser control to access a page. I would like to auto set some fields using VB 2005 express The field has the propery name="quantity" Can it be done ?
3
by: kartikss | last post by:
I have different form linked with command button, when i go to data entry i get 1st record details avaiable in table. i do not want the data display until i get a command to search a record and only...
16
by: pereges | last post by:
ok so i have written a program in C where I am dealing with huge data(millions and lots of iterations involved) and for some reason the screen tends to freeze and I get no output every time I...
20
by: =?Utf-8?B?ZW1pdG9qbGV5ZXM=?= | last post by:
Hi everyone: i read from the documentation of a dll that there is a struct that uses char for storing an IP address. How can it be? and how come i can get to representate the same value in a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.