title: Failed to find the RegisterModule entrypoint in the module DLL... - what's going on?
body: <p>I have an ISAPI module (<strong>native - NO ASP.net etc</strong>) written in Delphi XE. Trying to run it on IIS 7.5 on a Win 7 64 enterprise desktop machine.</p>
  
  <p>App pool, webSite, etc are configured correctly, ISAPI module is permissioned to execute, classic pipeline, 32 bit etc - have performed these operations many times.</p>
  
  <p><strong>Same module runs fine on a Win 2008 R2 server and it USED to run on my Win 7 desktop IIS 7.5 as well.</strong> </p>
  
  <p>But my hard drive died last week and I got a new Win 7 installation - the standard corporate wide Win 7 Enterprise image (not the same as my previous Win 7 64 installation).</p>
  
  <p>Now when launching the module, browser hangs a bit and then returns "HTTP Error 503. The service is unavailable."  In IIS, I see that my app pool is stopped after the error occurs - which I know means a serious error occurred in the web application.</p>
  
  <p>In the windows event log I found this message:</p>
  
  <p>"Failed to find the RegisterModule entrypoint in the module DLL G:\Mikey.dll.  The data is the error."</p>
  
  <p>Some debug strings showed me the error surfaces after application.run is called in the DLL dpr.</p>
  
  <p>What's going on here? How can I fix this? I need this deployment for my development work.</p>
  
  <p>Please - the dll is properly permissioned to execute code and the app pool is properly configured - a good deal of my initialization code executes in the DLL <strong>BEFORE</strong> application.run is called - so this is not a simple configuration or permissions issue - the 503 error and the event log entry also indicate such.</p>