Windows error 0x80131F06, -2146230522

Detailed Error Information

NGEN_E_SYS_ASM_NI_MISSING[1]

Message"NGen cannot proceed because Mscorlib.dll does not have a native image"
CommentCompiling any assembly other than mscorlib in the absence of mscorlib.ni.dll is not allowed.

HRESULT analysis[2]

FlagsSeverityFailure
Reserved (R)false
OriginMicrosoft
NTSTATUSfalse
Reserved (X)false
FacilityCode19 (0x013)
NameFACILITY_URT[2][3]
DescriptionThe source of the error code is .NET CLR.[2][3]
Error Code7942 (0x1f06)

Questions

1vote
1answer

Ngen error because "Mscorlib.dll does not have a native image" (x64 only, .NET 4.0 only)

I'm trying to generate a native image of my .NET 4.0 application using Ngen using a 64-bit Windows 7. When Platform is set to x64 (or Any CPU) - Ngen fails, complaining that 'NGen cannot proceed because Mscorlib.dll does not have a native image.' When compiling as x86 and using [...] read more
c#
.net
native
ngen
1vote
1answer

Running "ngen install EntityFramework.dll" fails with error 0x800706BE and 0x80131F06

As advised by the Entity Framework Team I've tried to create a native image of EntityFramework.dll with this command: ngen install packages\EntityFramework.6.1.0-beta1\lib\net40\EntityFramework.dll this results in the error 0x80131F06 (no native image for mscorlib.dll). When I now try to run ngen install mscorlib.dll I get the error 0x800706BE (RPC_S_CALL_FAILED - The [...] read more
entity-framework
windows-8
ngen

Comments

Leave a comment

(plain text only)

Sources

  1. https://github.com/dotnet/coreclr/blob/v1.1.0/src/inc/corerror.xml
  2. https://msdn.microsoft.com/en-us/library/cc231198.aspx
  3. winerror.h from Windows SDK 10.0.14393.0

User contributions licensed under CC BY-SA 3.0