Blazor - getting System.BadImageFormatException the second time i do hot reload

44 Views Asked by At

i have a website in blazor server that throws System.BadImageFormatException the second time i do hot reload

the project is in net8, upgraded from net7 only in project file. this website is a Side-by-side incremental upgrade from net 4.5 using the yarp proxy.

the two project are both set to start on debug.

I don't know exactly when it begin but now when I edit some blazor component and then click hot reload the first time works well but if i made a second change and then re-click hot reload i get the error System.BadImageFormatException on the page i made change but i can navigate the other pages without problems.

To exclude problems on the computer in use I created a new clean blazor project and follow the two edit steps and everything works fine.

0

There are 0 best solutions below