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

StackOverflow https://stackoverflow.com/questions/22171881

سؤال

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?

هل كانت مفيدة؟

المحلول

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.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top