I was trying to solve this issue over the last days and had already come up with a workaround. However, as I started to move onto something else, the permanent solution just jumped in my lap.

I've been trying to get Miniblog.Core to run as a virtual app. The first error barely mentioned in my last post, is caused by a line that keeps getting added back to my web.config file. The simple solution is to remove it first, then add it, as seen here:

 <handlers>

      <remove name="aspNetCore"/>

      <add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModuleV2" resourceType="Unspecified" />

    </handlers>

As found here in this github issue here:

Why it is needed to remove then add the aspNetCore handler for sub application

If he hadn't asked that, I may have never found the solution. Three years ago and still the same behavior in .Net 5.

Comments


Comments are closed