Having RemoteException FileNotFoundException when trying to add connection
LINQPad 7 Beta (v7.4.4)
Having the following error when trying to add connection:
Cannot load assembly: RemoteException - FileNotFoundException - Could not load file or assembly 'Microsoft.AspNetCore.Authentication, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'. The system cannot find the file specified. Source=System.Private.CoreLib -System.Reflection.RuntimeAssembly System.Type[] GetExportedTypes() offset: 0xB -LINQPad.Extensibility.DataContext.DataContextDriver System.String[] GetCustomTypesInAssemblyCore(System.String, System.String) offset: 0x1B Inner exception: FileNotFoundException - Could not load file or assembly 'Microsoft.AspNetCore.Authentication, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'. The system cannot find the file specified.
Troubleshotting:dotnet --list-runtimes
Microsoft.AspNetCore.App 3.1.20 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 3.1.25 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 3.1.26 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 5.0.17 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 6.0.3 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 6.0.5 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 6.0.6 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.NETCore.App 3.1.19 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 3.1.20 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 3.1.25 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 3.1.26 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 5.0.17 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 6.0.3 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 6.0.5 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 6.0.6 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.WindowsDesktop.App 3.1.19 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App] Microsoft.WindowsDesktop.App 3.1.25 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App] Microsoft.WindowsDesktop.App 3.1.26 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App] Microsoft.WindowsDesktop.App 5.0.17 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App] Microsoft.WindowsDesktop.App 6.0.3 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App] Microsoft.WindowsDesktop.App 6.0.5 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App] Microsoft.WindowsDesktop.App 6.0.6 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Already have marked the Reference ASP.NET Core
, but doesn't work either!
Comments
-
Can you right-click the connection, choose "Show Assembly Resolution Log" and post the output?
Also, is there a .runtimeconfig.json file for the DLL that you've selected? If so, can you post that?
-
@JoeAlbahari
The choosed assembly is not the startup one and don't have the runtimeconfig.json!
So the.runtimeconfig.json
i put in the attachment is for the startup assembly, not for the choosed (not sure if is important). -
That will be the problem. I've added an additional check to 7.4.5 that should work around this:
https://www.linqpad.net/linqpad7.aspx#betaLet me know if it makes any difference.
-
Hi @JoeAlbahari just tried with the new version and didn't work yet!
-
If you rename the .runtimeconfig.json to match your DLL, does it work then?
-
Also, could you run the following query and let me know the result:
http://share.linqpad.net/7q2vtn.linq -
I try to rename to match the selected DLL, but it don't work either.
I have uploaded the export of the .linq you attach. -
Thanks. I've extended the ASP.NET detection algorithm in 7.4.7. Let me know if this fixes it for you.
-
Yeah! Now it works!
Thank you very much @JoeAlbahari