Reference to CoreLib from EF context?
So after auto update to LinqPad 6.10.13 (x64), I can't use it properly to query for EF:
Data from about box:
Host runtime version: 3.1.8 Default query runtime version: 3.1.8 Default query reference assembly version: 3.1.0 Roslyn Version: 3.7.0-6.20375.2 FSharp.Compiler.Service version: 22.0.3.0 NuGet client version: 5.6.0.5
I am sure it was working just fine with 6.9.
Comments
And if I add that expected lib:
ends up with:
Similar issue for LinqPad 5 since this morning
mije - you definitely want to remove the reference to System.Private.CoreLib - that will only make things worse. Can you post a screenshot of the connection dialog? Also, after removing the reference to System.Private.CoreLib, could you please right-click the connection and choose Show Assembly Resolution Log and post the output?
EricJohannsen - nothing's changed recently in LINQPad 5. Have you tried a restart/reboot?
Here is the scree-shot to the local SQL server:
And also advanced connection options:
And the compressed references.html file attached.
Can you try refreshing the connection? (Right-click, Refresh)
I did that. Even restarted computer. Still the same.
It only happens in
SQL
queries - both LINQ-to-SQL and EF.Normal snippet works:
Are you able to reproduce this error on another machine?
Could you also please run this query and post the result:
http://share.linqpad.net/7xi4sh.linq
So, I tried another machine and can't repro there. Hmm, so it's something local to my default work box.
Attached is the result from the snippet.
This is a scenario I never anticipated: you have .NET 3.0 Desktop runtime installed without .NET 3.0 Core. To fix this, either uninstall .NET Desktop 3.0, or, if you need it, re-install the 3.0 SDK.
LINQPad normally ignores 3.0 if 3.1 is installed; however with data contexts, it compiles against the earlier version so that you can target queries against either runtime.
I'll update LINQPad in the next build to ensure that this condition triggers a rejection of the 3.0 runtime rather than binding to the runtime assemblies and causing an error.
Thanks Joe. I've uninstalled .NET3.0 Desktop. Now everything is working again. Thanks again so much.