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
222 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
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.
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

696 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