Handler has a bad module "WebSocketModule" in its module list


On 64-bit Windows 10 and IIS 10, I am trying to develop and test a native HTTP module that will act as a WebSockets handler mapping for a specific set of script files. This is all in native C++ starting with RegisterModule(). I am not using any part of ASP.NET.

When I access a URL that should invoke the handler, I receive this response:

HTTP Error 500.21 - Internal Server Error

Handler "QuadooWebSocket" has a bad module "WebSocketModule" in its module list

Detailed Error Information:

Module IIS Web Core
Notification ExecuteRequestHandler
Handler QuadooWebSocket
Error Code 0x8007000d

More Information:

IIS core does not recognize the module.

I used the IIS Manager to setup the handler mapping, and it created an entry in the applicationHost.config file.

        <handlers accessPolicy="Read, Script">
            <other_modules />
            <add name="QuadooWebSocket" path="*.qws" verb="*" modules="WebSocketModule" scriptProcessor="E:\dev\projects\trunk\target\debug\ActiveQuadoo.dll" resourceType="File" preCondition="bitness32" />

Before that, I installed support for WebSockets using the "Windows Features" control panel, and it also added a line to the applicationHost.config file.

            <other_modules />
            <add name="WebSocketModule" image="%windir%\System32\inetsrv\iiswsock.dll" />

When I attach Visual Studio to w3wp.exe, none of the breakpoints in my code are resolved. RegisterModule() is not being called. DllMain() isn't even being called. My module also implements IActiveScript, and IIS does load my module for classic ASP requests.

My code is being built into a 32-bit module, and I have enable32BitAppOnWin64="true" in the applicationHost.config file. This works for the Classic ActiveScript/ASP environment, but does this setting also work when using code that is expected to be loaded via the RegisterModule() export? If that's not the issue, then are there other steps needed to enable a native HTTP module for WebSockets?


asked on Stack Overflow Dec 21, 2019 by David

0 Answers

Nobody has answered this question yet.

User contributions licensed under CC BY-SA 3.0