-
Notifications
You must be signed in to change notification settings - Fork 3.3k
sni.dll cannot be loaded on downlevel #1545
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Investigation results:
|
Interesting that this person reported that swapping to x64 runtime resolved the issue #1701 |
I got this error when using x64 Windows 7, x64 SQL Server 2014 Express, when I ran on x86 CLR. |
I was able to reproduce error. Active Version Runtime Architecture Location Alias ------ ------- ------- ------------ -------- ----- 1.0.0-beta3 clr x64 C:\Users\Glenn\.k\runtimes 1.0.0-beta3 clr x86 C:\Users\Glenn\.k\runtimes 1.0.0-beta3 coreclr x64 C:\Users\Glenn\.k\runtimes 1.0.0-beta3 coreclr x86 C:\Users\Glenn\.k\runtimes 1.0.0-beta4-11138 clr x86 C:\Users\Glenn\.k\runtimes * 1.0.0-beta4-11138 coreclr x86 C:\Users\Glenn\.k\runtimes default I first used 1.0.0-beta4-11138 clr x86 and that worked fine. I have Windows 7 SP1 x64, SQL Server 2014 Express x64 with CU6 applied Failed to load type token 690029c5 for the profile data in [C:\Users\Glenn\.k\runtimes\kre-coreclr-win-x86.1.0.0-beta4-11138\bin\Microsoft.C odeAnalysis.CSharp.dll] The type specified by the IBC data is no longer present in the assembly's metadata. The type was [Microsoft.CodeAna lysis]Microsoft.CodeAnalysis.ArrayBuilder`1+<>c__DisplayClass0. Failed to load type token 69000bac for the profile data in [C:\Users\Glenn\.k\runtimes\kre-coreclr-win-x86.1.0.0-beta4-11138\bin\Microsoft.C odeAnalysis.CSharp.dll] The type specified by the IBC data is no longer present in the assembly's metadata. The type was [Microsoft.CodeAna lysis]Microsoft.CodeAnalysis.CachingIdentityFactory`2+<>c__DisplayClass0. Failed to load type token 69001e5e for the profile data in [C:\Users\Glenn\.k\runtimes\kre-coreclr-win-x86.1.0.0-beta4-11138\bin\Microsoft.C odeAnalysis.CSharp.dll] The type specified by the IBC data is no longer present in the assembly's metadata. The type was [Microsoft.CodeAna lysis]Microsoft.CodeAnalysis.ArrayBuilder`1+<>c__DisplayClass0. Failed to load type token 69002056 for the profile data in [C:\Users\Glenn\.k\runtimes\kre-coreclr-win-x86.1.0.0-beta4-11138\bin\Microsoft.C odeAnalysis.CSharp.dll] The type specified by the IBC data is no longer present in the assembly's metadata. The type was [Microsoft.CodeAna lysis]Microsoft.CodeAnalysis.ArrayBuilder`1+<>c__DisplayClass0. Failed to load type token 690021e8 for the profile data in [C:\Users\Glenn\.k\runtimes\kre-coreclr-win-x86.1.0.0-beta4-11138\bin\Microsoft.C odeAnalysis.CSharp.dll] The type specified by the IBC data is no longer present in the assembly's metadata. The type was [Microsoft.CodeAna lysis]Microsoft.CodeAnalysis.ArrayBuilder`1+<>c__DisplayClass0. Failed to load type token 69002490 for the profile data in [C:\Users\Glenn\.k\runtimes\kre-coreclr-win-x86.1.0.0-beta4-11138\bin\Microsoft.C odeAnalysis.CSharp.dll] The type specified by the IBC data is no longer present in the assembly's metadata. The type was [Microsoft.CodeAna lysis]Microsoft.CodeAnalysis.ArrayBuilder`1+<>c__DisplayClass0. Failed to load type token 690024fe for the profile data in [C:\Users\Glenn\.k\runtimes\kre-coreclr-win-x86.1.0.0-beta4-11138\bin\Microsoft.C odeAnalysis.CSharp.dll] The type specified by the IBC data is no longer present in the assembly's metadata. The type was [Microsoft.CodeAna lysis]Microsoft.CodeAnalysis.Collections.PooledDictionary`2+<>c__DisplayClass0. |
tested on x64 coreclr with same error as on x86 coreclr c:\projects\2015\NeoSample-ASPNET5-master\src\NeoSample>kvm list Active Version Runtime Architecture Location Alias ------ ------- ------- ------------ -------- ----- 1.0.0-beta3 clr x64 C:\Users\Glenn\.k\runtimes 1.0.0-beta3 clr x86 C:\Users\Glenn\.k\runtimes 1.0.0-beta3 coreclr x64 C:\Users\Glenn\.k\runtimes 1.0.0-beta3 coreclr x86 C:\Users\Glenn\.k\runtimes * 1.0.0-beta4-11138 coreclr x64 C:\Users\Glenn\.k\runtimes default c:\projects\2015\NeoSample-ASPNET5-master\src\NeoSample>k --version 1.0.0-beta4-11138 c:\projects\2015\NeoSample-ASPNET5-master\src\NeoSample>k ef --version 7.0.0-beta4-12364 c:\projects\2015\NeoSample-ASPNET5-master\src\NeoSample>k ef migration apply CreateIdentitySchema -c ApplicationDbContext Using context 'ApplicationDbContext'. System.DllNotFoundException: Unable to load DLL 'sni.dll': The specified procedure could not be found. (Exception from HRESUL at System.Data.SqlClient.SNINativeMethodWrapper.UnmanagedIsTokenRestricted(IntPtr token, Boolean& isRestricted) at System.Data.Win32NativeMethods.IsTokenRestrictedWrapper(IntPtr token) |
@victorhurdugaci has confirmed that this started working correctly in recent builds. |
I can reproduce this on RC (Windows 7, sql 2008R2)
Package.json: { "compilationOptions": { "dependencies": { "commands": { "frameworks": {
} |
@ostelaymetaule this is a known issue in RC1 where SQL Client depends on Visual C++ Redistributable for Visual Studio 2012. They are working the resolve the issue. We have #3787 tracking the issue on the EF side. |
I am trying to deploy a website using the coreclr-x64-rc1-update1 on Windows Server 2008 R2. I've installed both x86 and x64 versions of the Visual C++ Redist for Visual Studio 2012, 2013 & 2015 and I still seem to get the error. Is there anything else I need to do to get this working? |
@dontbesorry80 Indeed, same issue here. @rowanmiller |
@dontbesorry80 @juswes - We have seen some more reports of this occurring on RC1 (beyond the original issues that we fixed - such as this one). Here is the issue we are tracking now #4162. No workaround as yet, but we'll keep that thread updated as we investigate (we're catching up on a backlog of issue reports after folks were out for the holidays). |
This happens on Win7 and Win2008 R2. We are seeing it during the cross plat CI runs:
The error is the same all the time:
You can repro by using the MusicStore tests with KRE 1.0.0-beta3-11014 and EF 7.0.0-beta3-12128,or by building EF from the
release
branch and using the same KRE.Later edit: it happens with the bits in the
dev
branch too.The text was updated successfully, but these errors were encountered: