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

1

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 remote procedure call failed).

I already used sfc /scannow and it reports no broken files.

Any ideas what is wrong here?

entity-framework
windows-8
ngen
asked on Stack Overflow Mar 4, 2014 by magicandre1981 • edited Mar 5, 2014 by magicandre1981

1 Answer

3

I fixed the issue myself. It is caused by the enabled DeveloperMode which was set by Redgates .NET Reflector VisualStudio Addon. Disabling it with this entry in the machine.config fixed it:

  <runtime>
    <developmentMode developerInstallation="false"/>
  </runtime>

Now I have a native Image for mscorlib and I can ngen EF.

answered on Stack Overflow Mar 5, 2014 by magicandre1981 • edited Mar 18, 2014 by magicandre1981

User contributions licensed under CC BY-SA 3.0