Solved

VB.NET MSXML4:  Two applications - almost identical both downloading xml file (from separate locations) and processing into sql db. One seems to cause the other to hang when downloading xml feed. why?

Posted on 2004-08-16
2
220 Views
Last Modified: 2008-03-10
Hi,

I have created two applications in VB.net - each periodically (every minute or so) downloads an xml file and further processes items contained within the XML into an SQL database. When run singularly (i.e. only one app running at a time) the program operates normally, but when attempting to run an incidence of each app at the same time, one programme is freezing at xml download [hangs at XMLHTTP.send()] whilst the other seems to run normally.

I am running the following code in each program:

.
.
Try
                XMLHTTP.open("GET", htmladdr, False)
                XMLHTTP.send()
                XMLDOM.loadXML(XMLHTTP.responseText)
            Catch ex As Exception

 End Try
.
.

How come this is happenning? For over three years I have executed a similar task for around twenty other URL locations, but they all post csv text files instead of XML- I have not experienced any problems and I run twenty of the little suckers on one machine. What is the trick with XML?

Thanks
0
Comment
Question by:Vanuatu_PDS
2 Comments
 
LVL 8

Accepted Solution

by:
shovavnik earned 500 total points
ID: 11819308
Try setting the property async before send()

XMLHTTP.async = true
XMLHTTP.send()
0

Featured Post

The New “Normal” in Modern Enterprise Operations

DevOps for the modern enterprise offers many benefits — increased agility, productivity, and more, but digital transformation isn’t easy, especially if you’re not addressing the right issues. Register for the webinar to dive into the “new normal” for enterprise modern ops.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Browsing the questions asked to the Experts of this forum, you will be amazed to see how many times people are headaching about monster regular expressions (regex) to select that specific part of some HTML or XML file they want to extract. The examp…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question