davidfowl/IISCrossover

Can't bypass ASPX pages

AndyMcKenna opened this issue · 4 comments

I'm attempting to have a URL that is an ASPX page fall through to the DotNetCore app without success. It works for extensionless URLs and my commit works for that particular page but now all the other ASPX pages that should still be handled by Legacy fail. I think I'm doing something wrong with my subclass of PageHandlerFactory

AndyMcKenna@a801b66

I'm playing with this scenario; will let you know when I have something. So far, IIS is defeating me...

Here's my first stab at this 47580fb. It forces all pages to go through routing so that they follow the same pattern. It seems the PageHandlerFactory runs super late. The other thing that can be done with routing is using patterns. So you can map {*page}.aspx and then selectively move pages to ASP.NET Core.

In fact, I'll try that!

OK this commit handles all .aspx pages via routing automagically and lets you follow the same technique to forward to the ASP.NET Core application.

Closing this as solved!