13

I am currently developing an app which uses .Net core.

I have hosted a lot of micro-services on IIS Manager in new app pool.

I was wondering is there any advantages for app pool version instead of the latest.NET CLR v4.0, to use no managed code?

I heard some things that no managed code option gets better performance. Is that true?

Thank you.

Jerry Chong
  • 7,954
  • 4
  • 45
  • 40
R. Vait
  • 918
  • 2
  • 7
  • 20

1 Answers1

16

You should use "No managed code" if only an ASP.NET Core app is hosted,

https://learn.microsoft.com/en-us/aspnet/core/host-and-deploy/iis/?view=aspnetcore-3.1

The official guide has made it clear.

Carsten Führmann
  • 3,119
  • 4
  • 26
  • 24
Lex Li
  • 60,503
  • 9
  • 116
  • 147
  • 2
    What is the consequence of NOT setting "No managed code"? – Pawel Feb 15 '21 at 09:00
  • 4
    @Pawel you are asking for trouble. – Lex Li Feb 15 '21 at 09:01
  • No, I am genuinely looking for an answer. I want to make my app always running on the IIS as it needs to run background tasks. A couple of solutions are asking to change back to .NET CLR Version v4.0 hence my question. https://docs.hangfire.io/en/latest/deployment-to-production/making-aspnet-app-always-running.html#making-asp-net-core-application-always-running-on-iis – Pawel Feb 15 '21 at 11:34
  • 2
    Again, running background tasks is asking for more trouble. – Lex Li Feb 15 '21 at 15:38
  • 2
    Thanks, Can you update this link, as only the https://learn.microsoft.com/en-us/aspnet/core/host-and-deploy/iis/?view=aspnetcore-3.1 has the related content, the newest one version don't. It may cause confused – Bingoabs Apr 02 '21 at 06:23