Run a 32-bit ISAPI DLL on 64-bit IIS 7

by timvasil 11/23/2007 9:25:00 PM

I knew this would be challenging, but the worst part of getting a 32-bit ISAPI DLL running in the 64-bit version of IIS 7 is the really crummy UI.  Here are the steps:

Allow the ISAPI DLL

  1. With the root node selected (the computer name), double-click Isapi & CGI Restrictions
  2. Click Add... on the sidebar
  3. Type/browse for the path to your ISAPI DLL.
  4. Check Allow extension path to execute.

Create a 32-bit Application Pool

  1. With the Application Pools node selected, click Add Application Pool... on the sidebar.
  2. Type in a name and choose the Classic pipeline. 
  3. Opt not to start the pool immediately.
  4. Click OK.
  5. Select the new pool.
  6. Click Advanced Settings... on the sidebar.
  7. Change Enable 32-Bit Applications (General category) to True.
  8. Start the pool.

Create the Application

  1. Right click on the Web Sites > Default Web Site node and click Add Application...
  2. Choose the alias, application pool, and physical path.  The application pool you choose should be the 32-bit one you just created.

Allow ISAPI DLLs to Execute within the Application

  1. Select the application node in the tree view and double click Hander Mappings.
  2. Click Add Script Map...
  3. Type a request path of *.dll, select the IsapiModule module, and give it a name.
  4. Click OK.

Note:  You can also enable the existing ISAPI entry at the Default Web Site level, or enable feature delegate for ISAPI Filters at the root node (computer) level and then edit it at the application level.

Tags:

IIS | ISAPI

Comments (4) -

9/14/2011 5:37:32 AM

Anders Schau Knatten

In "Create a 32-bit Application Pool", pt. 7, I think you mean "Enable 32-Bit Applications" , not "Managed Pipeline Mode"?

Anders Schau Knatten Norway

3/6/2012 10:44:05 AM

Tim Vasil

Anders, thanks for the correction.  I've updated the post.

Tim Vasil United States

3/18/2013 12:22:08 PM

Mike M

The  Isapi & CGI Restrictions is not on the list of functions. Is there a way to do this through appcmd?

Mike M United States

3/18/2013 6:13:53 PM

Tim Vasil

Mike, I think it's there, but only at the root level.  Click on the topmost node in the tree (likely corresponding to your computer name).  This isn't available at the website level.  

There's probably a way to go through these steps with appcmd as well; you'll have to check the docs -- www.iis.net/.../getting-started-with-appcmdexe.

Tim Vasil United States

Search

Calendar

«  June 2013  »
SuMoTuWeThFrSa
2627282930311
2345678
9101112131415
16171819202122
23242526272829
30123456

View posts in large calendar

Recent comments

Archive