Mark Derricutt <[EMAIL PROTECTED]> wrote on 11/04/2001 11:20:26:
>
>Hiya, I was wondering the best way to debug an ISAPI? I have one
>project that IIS insists on returning "Internal Server Error" messages
>for, from looking at the logs my dll writes (or is supposed to write),
>it doesnt seem like the DLL is even reaching any of my code.
We had a similar problem with IIS and a cgi app we were working on,
which worked fine on my computer during testing (with Sambar server),
but when we tried it on IIS the program never got anywhere. After much
messing around and searching for answers we discovered that it was an
evnironment problem.
On Windows NT/2K each user has a set of environment variables which are
loaded after login. Before login (when most services are loaded,
including IIS) the system has a separate set of environment variables.
Now, because IIS is a service it inherits the system environment, and
all ISAPI modules it loads will too. This may cause problems if the
default Path does not include all of the DLLs, packages, etc. your
ISAPI is trying to load.
Possible Solution: Go to System Properties and locate the Environment
Variables (NT: Environment tab. 2K: Advanced tab, Environment
Variables). There you'll find two lists - user and system variables.
Edit Path in the System Variables list to include all required
directories.
To find out what you need grab a dependancy walker, or use TDump or
QuickView to view your ISAPI DLL. That'll let you know what the DLL is
looking for so you can make sure everything is available to it. You
might also want to make sure that your ISAPI DLL is not using dynamic
RTL or runtime packages. In fact this may fix the problem without you
having to edit the system environment.
--
Corey Murtagh
The Electric Monk
"Quidquid latine dictum sit, altum viditur!"
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"