Web Connection
May not have switched from ISAPI correctly
Gravatar is a globally recognized avatar based on your email address. May not have switched from ISAPI correctly
  Carl Chambers
  All
  Dec 27, 2016 @ 07:19am

It was a long time ago that I created the WC project I'm working on and I think I selected ISAPI rather than .Net Module when I created it. I later edited the "handlers" section in web.config (all but the "*.psp" handler were typed in manually) as follows...

<handlers>
            <remove name="AboMapperCustom-47557388" />
      <add name=".psp_wconnect-module" path="*.psp" verb="*" type="Westwind.WebConnection.WebConnectionHandler,WebConnectionModule" />
      <add name=".plm_wconnect-module" path="*.plm" verb="*" type="Westwind.WebConnection.WebConnectionHandler,WebConnectionModule" />
      <add name=".psv_wconnect-module" path="*.psv" verb="*" type="Westwind.WebConnection.WebConnectionHandler,WebConnectionModule" />
      <add name=".pfc_wconnect-module" path="*.pfc" verb="*" type="Westwind.WebConnection.WebConnectionHandler,WebConnectionModule" />
      <add name=".pws_wconnect-module" path="*.pws" verb="*" type="Westwind.WebConnection.WebConnectionHandler,WebConnectionModule" />
      <add name=".ppa_wconnect-module" path="*.ppa" verb="*" type="Westwind.WebConnection.WebConnectionHandler,WebConnectionModule" />
    </handlers>

and thought that's all there was to it.

But now I'm trying to familiarize myself with various aspects of going live (rather intimidating) and when I click "Web Connection Module Administration" on the Admin.aspx page, the "Web Connection ISAPI Configuration" page is displayed. It makes me wonder which handler I'm actually using.

What else do I need to do to ensure that I'm using the .NET Managed Handler and to get the Web Connnection Module Status Page to display?

EDIT

I just took a look in the IIS Manager Handler Mappings and found 4 entries named "AboMapperCustom-47557389" thru "AboMapperCustom-47557392" which have the paths *.wc, *.wcs, *.wcsx and *.wwsoap respectively.
So I presume that

<remove name="AboMapperCustom-47557388" />

in the snippet above, being sequentially before these other 4, must have been for the original ISAPI entry for my first process class created by the New Process Wizard (all my other Process classes were created manually) which I switched to .Net Handler.
Since this name is not in the IIS Handler list, I presume I can safely delete this line from web.config?

Now, is it a simple matter of changing the Handler in IIS for these 4 paths from ISAPI to the WebConnectionModule ? I see that the .aspx path is also using the ISAPIModule. Does that need to be changed ?

Whatever dabbling I have done with this stuff in the past is no longer in my memory. I'm leary about monkeying around with config stuff when I don't know what it's going to do so I'm asking before I make a mess.

Thanks, Carl

Gravatar is a globally recognized avatar based on your email address. re: May not have switched from ISAPI correctly
  Rick Strahl
  Carl Chambers
  Dec 27, 2016 @ 08:12pm

Generally you only need the entries in web.config. If IIS is showing something different than what's in your web.config there are mapping coming down from the parent application (root site?). In that case you have to either remove those or as you did explicitly use the <remove> element to remove the handlers.

To change to ISAPI you simply point at the ISAPI dll and change as described in this topic:

+++ Rick ---

© 1996-2024