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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Changing Sitemap Frequency on XML File 3 66
XPath Syntax help in conjunction with perl XML::LibXML 18 102
Specific format 21 181
XSLT XML 4 13
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…
The Confluence of Individual Knowledge and the Collective Intelligence At this writing (summer 2013) the term API (http://dictionary.reference.com/browse/API?s=t) has made its way into the popular lexicon of the English language.  A few years ago, …
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

911 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