Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 228
  • Last Modified:

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?

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
Vanuatu_PDS
Asked:
Vanuatu_PDS
1 Solution
 
shovavnikCommented:
Try setting the property async before send()

XMLHTTP.async = true
XMLHTTP.send()
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now