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
214 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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Suggested Solutions

The Problem How to write an Xquery that works like a SQL outer join, providing placeholders for absent data on the outer side?  I give a bit more background at the end. The situation expressed as relational data Let’s work through this.  I’ve …
Introduction In my previous article (http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SSIS/A_9150-Loading-XML-Using-SSIS.html) I showed you how the XML Source component can be used to load XML files into a SQL Server database, us…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

762 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now