Web Connection
Inherited Handler Mappings - WC6
Gravatar is a globally recognized avatar based on your email address. Inherited Handler Mappings - WC6
  Michael Hogan (Ideate Hosting)
  All
  Mar 27, 2017 @ 01:43pm

I'm moving my application to WC6. The handler mappings do not appear to be inherited downstream.

The setup program created an application under the web root and created a mapping to my extension. The test page works at localhost/MyApp/TestPage.cdo - but if I go one directory lower - localhost/MyApp/MyDirectory/TestPage.cdo, WC does not see the hit.

My cdo path does show up at the MyApp (application) level (Entry Type = Local) - and if I go to the subdirectory in IIS it also shows up (Entry Type = Inherited).

Any idea why this might be?

TIA

Gravatar is a globally recognized avatar based on your email address. re: Inherited Handler Mappings - WC6
  Rick Strahl
  Michael Hogan (Ideate Hosting)
  Mar 27, 2017 @ 07:46pm

Is the subfolder a virtual or just a folder?

If it's not a virtual, make sure you have the check file exists options turned off.

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: Inherited Handler Mappings - WC6
  Michael Hogan (Ideate Hosting)
  Rick Strahl
  Mar 28, 2017 @ 03:36pm

It's a folder under the 'application' (strictly speaking, not a virtual).

In the handler mappings, my extension setting shows that 'invoke handler only if request is mapped to...' is UNchecked - so I don't think that's it.

This is IIS 10

Gravatar is a globally recognized avatar based on your email address. re: Inherited Handler Mappings - WC6
  Rick Strahl
  Michael Hogan (Ideate Hosting)
  Mar 29, 2017 @ 03:25am

Well there's nothing in Web Connection that prevents mappings from inheriting, unless there's a Web config in the sub-folder that configures things differently.

I suspect there's something else going on, but I'm not sure what it could be. Double check the handler mappings in web.config, and then also in the IIS Service manager. Those should match - if they don't comment out the the handler mappings in web.config and then remove all your application mappings in the IIS Manager. Then uncomment the handlers in web.config. It could be a metabase mis-config.

Check the mappings both in the base folder and the sub-folder - they should show exactly the same.

Also make sure there aren't duplicate mappings to the same folder. That can sometimes produce unpredictable behavior.

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: Inherited Handler Mappings - WC6
  Michael Hogan (Ideate Hosting)
  Rick Strahl
  Apr 4, 2017 @ 12:14pm

The problem was a neglected web.config file in the subfolder which has some old ISAPI settings from a previous version of my app. Removed it and voila.

Thanks

Gravatar is a globally recognized avatar based on your email address. re: Inherited Handler Mappings - WC6
  Rick Strahl
  Michael Hogan (Ideate Hosting)
  Apr 4, 2017 @ 01:43pm

Yup most common problem for these things - web.config files in non-root folders can really hose things and it's hard to track down. Always make sure web.config only lives in the root, or - in rare cases - has settings that just apply to the subfolder.

+++ Rick ---

© 1996-2024