ISAPI Applications that Refuse to Run

One of my customers developed an interesting problem the other day.  None of their ISAPI applications would run.  Any attempt to use an ISAPI DLL would hang and eventually time out.  IIS was not logging any errors to the IIS log files or the system event log.  It was a genuine mystery.

By inserting code that wrote progress messages to a trace file I was able to determine that the DLL was being initialized but the HTTP request was not being processed.  I could see code in the project’s main (.DPR) file being executed, then the TISAPIApplication.GetExtensionVersion method was being executed but that was it, TISAPIApplication.HTTPExtensionProc was never executed.

It took me a very long time to realize that IIS was failing when trying to switch to the internet guest account before executing HTTPExtensionProc.  I never did figure out what happened to the internet guest account, but by changing the ISAPI DLLs to execute using a ‘real’ user id rather than the internet guest account I got everything working again.  Go figure.

Leave a Reply