linqpad 7 - Cannot load assembly
Hello,
I migrated a .NET 5 web app to .net 6
Then I try to create a connection with linqpad 7 to my new path and I get the following error : Cannot load assembly - type load exception
Actually, my .NET6 app references some libraries like rotativacore or WebEssentials.AspNetCore.PWA , which have dependencies with old framework.
But it should not be a problem, right ?
My application works like a charm, either in VS 2022 and the server. But not in linqpad
Any idea ?
Thanks,
Olivier Chicaud
Comments
I get the same. Migrated from .Net 5 to 6. When trying to create a new DbContext connection I get the following:
Need some help.
Thanks,
Mike
I am getting similar error with LinqPad 7, see attached. Tried the beta with same error
If you manually enter the full name of the typed DbContext (such as
ContosoUniversity.Data.SchoolContext
) into the box provided, does it work?Yes, it works when I manually enter the DbContext.
Looks like there's been a change in the format of the .runtimeconfig.json file that's generated for ASP.NET applications.
Try the 7.2.6 beta - it should resolve the problem.
https://www.linqpad.net/LINQPad7.aspx#beta
I can confirm it is now working in 7.2.6 beta. Appreciate it.