Update - eventually I just ditched the whole murky setup and instead used a jsp script. Because sleep() is an integral part of java, it works much better (significantly more consistently) than the ASP-COM integration.
For testing, we need to create an ASP page that simply writes "1" every second.
There is no Sleep() method in ASP, so we used an external COM object called WaitFor.
We had some problems using it out of the box, so my friend Pasha volunteered to help clear up the COM mess. Here is his solution (that worked), in his words:
Deploy the girlie-man WaitFor object:
- a. register object using regsvr32.exe c:\tests\waitfor.dll
- create empty application in component services
- choose type "server application"
- give it a meaningful name (like "pasha", "black cock down" etc.)
- define for your application under "properties->identity" to run with some service account (e.g. semingo\integration)
- add the component you registered (waitfor.dll) to the application you've just created:
- choose "install components that are already registered"
- check "32-bit registry"
- find your component