Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Set .NET CLR Version to No Managed Code

Im trying to build an installer for my asp.net core service, but im having problems setting the .NET CLR Version on IIS app pool. Is there any way to set it to No Managed Code?

Setting <iis:WebAppPool ManagedRuntimeVersion="No Managed Code"> results in error The worker process failed to pre-load .Net Runtime version No Managed Code.

like image 388
Milan Halada Avatar asked Nov 07 '16 12:11

Milan Halada


People also ask

What is no managed code?

Unmanaged Code. It is executed by managed runtime environment or managed by the CLR. It is executed directly by the operating system. It provides security to the application written in . NET Framework.

Is .NET core managed code?

NET is sometimes called a "managed code" runtime. It's called managed primarily because it uses a garbage collector for memory management and because it enforces type and memory safety. The CLR virtualizes (or abstracts) various operating system and hardware concepts, such as memory, threads, and exceptions.


1 Answers

Solution is to use "" instead of "No Managed Code" when setting ManagedRuntimeVersion.

like image 185
PhilAI Avatar answered Oct 11 '22 14:10

PhilAI