Skip to content

Instantly share code, notes, and snippets.

View ktownsend-personal's full-sized avatar

Keith Townsend ktownsend-personal

  • 08:46 (UTC -05:00)
View GitHub Profile
@ktownsend-personal
ktownsend-personal / (aspNetCore + classicASP).md
Last active May 12, 2024 20:52
How to host classic ASP with your ASP.NET Core project

Host classic ASP in an ASP.NET Core 8 project

I have a situation where I need to migrate a very old classic ASP website gradually into an ASP.NET Core 8 website.

In my research I found many people asking how but never found a fully working example, so I want to share this for others.

If you end up using any of this, my only ask is that you link to this gist and give me some credit in your code for the next developer to discover... and of course tell me about how it saved your life in the gist comments ☺

Solution Summary:

  • add ISAPI handler in web.config for each file extension to process as classicASP
  • put classicASP files in wwwroot folder of your aspNetCore project