none
Porting a working 32 bit ISAPI Extension under Win 2003 & IIS 6 to Win 2008 R2 IIS 7.5 throws 500 error RRS feed

  • Question

  • Hello,
    We are trying to run a 32 bit ISAPI Extension under windows 2008 R2 IIS 7.5. This extension runs fine under IIS6 & Win 2003. Our web application also uses WebLogic 10.3 iisproxy.dll which is another 32 bit DLL. After setting the following configurations to the site, the weblogic DLL works fine but accessing our ISAPI throws simply 500 -Internal server error. Everything works fine is IIS 6 with the same weblogic and our dlls.
     
    IIS7.5 Configuration:
    * Default Site using DefaultAppPool
    * Set DefaultAppPool advanced setting "Enable 32-bit applications" to True.
    * IIS ISAPI Extension is enabled
    * Added Application Handlers for our DLL (*.ftdll) and WebLogic DLL (*.ftservlet, *.ftjsp) with "Invoke handler only if request is mapped to " to File, All Verbs and Script Access.
    * See the above dlls as enabled under the "ISAPI and CGI Restrictions .. " list

    We tried to debug using Visual C++ Studio Prof 2010. But control never reaches the ISAPI DLLMain or HttpExtensionProc functions (Dll written in C)

    Here is the snapshot from the Failed Request Tracing File (we can provide the entire tracelog if needed) :

    <failedRequest url="http://192.168.0.99:80/TradeTrack/FtTradeTrackKeepAlive.ftdll?OpenKeepAlive+0+0+0+"
                   siteId="1"
                   appPoolId="DefaultAppPool"
                   processId="2824"
                   verb="GET"
                   remoteUserName=""
                   userName=""
                   tokenUserName="NT AUTHORITY\IUSR"
                   authenticationType="anonymous"
                   activityId="{00000000-0000-0000-0500-0080000000FE}"
                   failureReason="STATUS_CODE"
                   statusCode="500"
                   triggerStatusCode="500"
                   timeTaken="0"
                   xmlns:freb="http://schemas.microsoft.com/win/2006/06/iis/freb"
                   >
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
     <System>
      <Provider Name="WWW Server" Guid="{3A2A4E84-4C21-4981-AE10-3FDA0D9B0F83}"/>
      <EventID>0</EventID>
      <Version>1</Version>
      <Level>0</Level>
      <Opcode>1</Opcode>
      <Keywords>0x0</Keywords>
      <TimeCreated SystemTime="2011-09-27T16:31:18.358Z"/>
      <Correlation ActivityID="{00000000-0000-0000-0500-0080000000FE}"/>
      <Execution ProcessID="2824" ThreadID="1880"/>
      <Computer>WIN8-001</Computer>
     </System>
     <EventData>
      <Data Name="ContextId">{00000000-0000-0000-0500-0080000000FE}</Data>
      <Data Name="SiteId">1</Data>
      <Data Name="AppPoolId">DefaultAppPool</Data>
      <Data Name="ConnId">1610612738</Data>
      <Data Name="RawConnId">0</Data>
      <Data Name="RequestURL">http://192.168.0.99:80/TradeTrack/FtTradeTrackKeepAlive.ftdll?OpenKeepAlive+0+0+0+</Data>
      <Data Name="RequestVerb">GET</Data>

    ..........

     <RenderingInfo Culture="en-US">
      <Opcode>NOTIFY_MODULE_START</Opcode>
      <Keywords>
       <Keyword>RequestNotifications</Keyword>
      </Keywords>
      <freb:Description Data="Notification">EXECUTE_REQUEST_HANDLER</freb:Description>
     </RenderingInfo>
     <ExtendedTracingInfo xmlns="http://schemas.microsoft.com/win/2004/08/events/trace">
      <EventGuid>{002E91E3-E7AE-44AB-8E07-99230FFA6ADE}</EventGuid>
     </ExtendedTracingInfo>
    </Event>
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
     <System>
      <Provider Name="WWW Server" Guid="{3A2A4E84-4C21-4981-AE10-3FDA0D9B0F83}"/>
      <EventID>0</EventID>
      <Version>1</Version>
      <Level>3</Level>
      <Opcode>16</Opcode>
      <Keywords>0x100</Keywords>
      <TimeCreated SystemTime="2011-09-27T16:31:18.358Z"/>
      <Correlation ActivityID="{00000000-0000-0000-0500-0080000000FE}"/>
      <Execution ProcessID="2824" ThreadID="1880"/>
      <Computer>WIN8-001</Computer>
     </System>
     <EventData>
      <Data Name="ContextId">{00000000-0000-0000-0500-0080000000FE}</Data>
      <Data Name="ModuleName">IsapiModule</Data>
      <Data Name="Notification">128</Data>
      <Data Name="HttpStatus">500</Data>
      <Data Name="HttpReason">Internal Server Error</Data>
      <Data Name="HttpSubStatus">0</Data>
      <Data Name="ErrorCode">3221225620</Data>
      <Data Name="ConfigExceptionInfo"></Data>
     </EventData>
     <RenderingInfo Culture="en-US">
      <Opcode>MODULE_SET_RESPONSE_ERROR_STATUS</Opcode>
      <Keywords>
       <Keyword>RequestNotifications</Keyword>
      </Keywords>
      <freb:Description Data="Notification">EXECUTE_REQUEST_HANDLER</freb:Description>
     </RenderingInfo>
     <ExtendedTracingInfo xmlns="http://schemas.microsoft.com/win/2004/08/events/trace">
      <EventGuid>{002E91E3-E7AE-44AB-8E07-99230FFA6ADE}</EventGuid>
     </ExtendedTracingInfo>
    </Event>
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
     <System>
      <Provider Name="WWW Server" Guid="{3A2A4E84-4C21-4981-AE10-3FDA0D9B0F83}"/>
      <EventID>0</EventID>
      <Version>1</Version>
      <Level>5</Level>
      <Opcode>2</Opcode>
      <Keywords>0x100</Keywords>
      <TimeCreated SystemTime="2011-09-27T16:31:18.358Z"/>
      <Correlation ActivityID="{00000000-0000-0000-0500-0080000000FE}"/>
      <Execution ProcessID="2824" ThreadID="1880"/>
      <Computer>WIN8-001</Computer>
     </System>
     <EventData>
      <Data Name="ContextId">{00000000-0000-0000-0500-0080000000FE}</Data>
      <Data Name="ModuleName">IsapiModule</Data>
      <Data Name="Notification">128</Data>
      <Data Name="fIsPostNotificationEvent">false</Data>
      <Data Name="NotificationStatus">2</Data>
     </EventData>
     <RenderingInfo Culture="en-US">
      <Opcode>NOTIFY_MODULE_END</Opcode>
      <Keywords>
    ------------------------------------------------------------------------------------------------

    Tuesday, September 27, 2011 5:12 PM