Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crashes for 32-bit application pools #3

Open
UweKeim opened this issue Apr 7, 2015 · 3 comments
Open

Crashes for 32-bit application pools #3

UweKeim opened this issue Apr 7, 2015 · 3 comments

Comments

@UweKeim
Copy link

UweKeim commented Apr 7, 2015

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.

@FWest98
Copy link
Owner

FWest98 commented May 4, 2015

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

@GLComputing
Copy link

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

@FWest98 FWest98 reopened this Jan 17, 2018
@eveloki
Copy link

eveloki commented Sep 10, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants