HSTS-IIS-Module icon indicating copy to clipboard operation
HSTS-IIS-Module copied to clipboard

Crashes for 32-bit application pools

Open UweKeim opened this issue 10 years ago • 3 comments

As described on CodePlex, the module does not work with 32 bit application pools.

The end-users see an error:

HTTP Error 503. The service is unavailable.

Plus there are several event log entries:

  • The Module DLL C:\Windows\System32\inetsrv\HstsIisModule.dll failed to load. The data is the error.
  • Application pool 'wiki.blabla.com' is being automatically disabled due to a series of failures in the process(es) serving that application pool.
  • A listener channel for protocol 'http' in worker process '7084' serving application pool 'wiki.blabla.com' reported a listener channel failure. The data field contains the error number.

Even explicitely removing the HstsIisModule from the 32 bit web application did not improve anything.

This is a show-stopper for me. I had to deinstall.

Please fix this issue.

A workaround might be to add "preCondition="bitness64"", although I have not tried this yet.

Update 1

I made it working with the above pre-condition fix:

This worked by adding "preCondition="bitness64"" to both module entries in applicationHost.config:

  • <add name="HstsIisModule" preCondition="bitness64" /> in the <modules> section
  • <add name="HstsIisModule" image="%windir%\System32\inetsrv\HstsIisModule.dll" preCondition="bitness64"/> in the <globalModues> section.

Please note that this will only work if your SSL websites are 64 bit websites since my workaround turns off this module for 32 bit websites.

UweKeim avatar Apr 07 '15 10:04 UweKeim

The module uses an 64-bit integer for the max-age. The limit of an 32-bit integer equals to just over 136 years, to I don't think that will be a limitation. Also, the XML defines a normal int, I think it wouldn't even work with a bigger number. You can find an improved version over here: https://github.com/FWest98/hsts-iis-module/releases

FWest98 avatar May 04 '15 00:05 FWest98

I've had exactly the same issue with 32bit App Pools on a Win2008R2 server

GLComputing avatar Jan 16 '18 09:01 GLComputing

I've had exactly the same issue with 32bit App Pools on a Win2016 server

eveloki avatar Sep 10 '18 09:09 eveloki