I'm writing an IIS application in VB6 to control a website, and I'm having problems with the start event.

If I declare a module with events in the Declarations section of the WebClass like this:

Private WithEvents ProgressObj As IISProgressClass

then when the .asp page is accessed, the code in the WebClass_Initialise() routine runs correctly, but none of the following events in the WebClass life-cycle take place (like the BeginRequest, Start, or EndRequest events).

If I don't dimension the module as With events, like this:

Private ProgressObj As IISProgressClass

Then the WebClass life cycle runs as expected.


Has anyone experienced anything like this?
Can anyone help me?

Cheers,

Chris Thwaites