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.
User contributions licensed under CC BY-SA 3.0