Groups > Borland > Borland Delphi migration > Getting an ISAPI Dll running on Vista/IIS7/Delphi 2007




Getting an ISAPI Dll running on Vista/IIS7/Delphi 2007

Getting an ISAPI Dll running on Vista/IIS7/Delphi 2007
24 Jul 2007 20:49:55 -0700
Help, 
 I run a large ISAPI web site (compiled with Delphi 2005) on IIS6 and Windows
Server 2003.  I have to set up a new development laptop with Vista Ultimate and
IIS7 (my first experience with Vista or IIS7).  I've set up the website in IIS7,
I've added the ISAPI filter entry for c:\open\www\open.dll, accessing
http:\\localhost\open.dll\welcome though gives me the error below:
  
HTTP Error 500.0 - Internal Server Error
Description: Calling GetProcAddress on ISAPI filter
"C:\open\www\open.dll" failed 
Error Code: 0x8007007f 
Notification: Unknown 
Module: IIS Web Core 
Requested URL: http://localhost:80/open.dll/welcome 
Physical Path: c:\open\www\open.dll\welcome 
Logon User: Not yet determined 
Logon Method: Not yet determined 
Handler: StaticFile 
Most likely causes: 
•	The ISAPI Filter has dependencies that are not available on the Web server. 
•	IIS received the request; however, an internal error occurred during the
processing of the request. The root cause of this error depends on which module
handles the request and what was happening in the worker process when this error
occurred. 
•	IIS was not able to access the web.config file for the Web site or
application. This can occur if the NTFS permissions are set incorrectly. 
•	IIS was not able to process configuration for the Web site or application. 
•	The authenticated user does not have permission to use this DLL. 
What you can try: 
•	Try running Reskit tool "depends" on the ISAPI DLL. 
•	Ensure that the NTFS permissions for the web.config file are correct and allow
access to the Web server's machine account. 
•	Check the event logs to see if any additional information was logged. 
•	Verify the permissions for the DLL. 
•	Create a tracing rule to track failed requests for this HTTP status code. For
more information about creating a tracing rule for failed requests, click here.

More Information... This error means that there was a problem while processing
the request. The request was received by the Web server, but during processing a
fatal error occurred, causing the 500 error. 
Microsoft Knowledge Base Articles: 
•	294807
I’ve compiled our source with Delphi 2007 and it compiles cleanly (for the
IIS6/W2003 environment we use Delphi 2005).  Running depends on the open.dll it
does mention that a lot of the modules has an unresolved import due to a missing
export function in a delay-load dependent module. but I think this is just
because a lot of the functions are resolved at run time and not resolved at link
time.

In the event viewer error is:
The HTTP Filter DLL C:\open\www\open.dll failed to load.  The data is the error.
  The data is 0000007f

Are there any articles on how to run isapi dlls in the delphi debuger? under
Vista inetpub.exe is way down in some cryptic directory, I've tried specifying
C:\Windows\winsxs\x86_microsoft-windows-iis-metabase_31bf3856ad364e35_6.0.6000.1
6386_none_36fb35d9250810d2\inetinfo.exe in Run->Parameters but get an access
violation if I try running.
 
Post Reply
about | contact