I have an older ASP.NET Webforms application on my machine that I cannot get working. When I run the site, I get this error:
I am not sure why it is looking for AspNetCoreModule when the framework for this project is .NET 4.8. I am not using any .NET Core projects in this solution.
I do have .NET Core installed on my machine because I have been developing Blazor Server applications, however, that should not affect this solution. Also, I have the proper older frameworks installed because I do have other older projects using 4.7 and 4.8 what work.
Has anyone come across this issue and know how to solve it?
I have also seen this post in StackOverflow however, it is not the same situation as my current code: module-aspnetcoremodule-could-not-be-found-for-non-core-app
I have checked all configs in the solution as well as the application config for this solution and nowhere do I see any references to .NET Core
Any suggestions welcome.

I was able to resolve this by going into the project in IIS and going to the Modules section. For some reason AspNetCoreModule and AspNetCoreModuleV2 were in the list. They were not there originally and not sure why/how they were added. Once I removed them, my site started working with no issues.
I hope this is helpful to someone searching in the future.
Thanks to all that replied.