Is ASP.Net running in a standard AppDomain application?

I have an interesting situation when I want to make sure that I do not start in AppDomain by default in the ASP.Net Web Api service (it is obvious that RazorEngine has problems locking temporary files if they are running in AppDomain by default). From what I see, by the time it starts, Application_Startit is no longer in AppDomain by default.

Checked with: AppDomain.CurrentDomain.IsDefaultAppDomain()returnsfalse

Are there any situations where ASP.Net will run in AppDomain by default?

+4
source share
2 answers

. CLR AppDomain ASP.NET. ASP.NET AppDomain, AppDomain . IsDefaultAppDomain false :)

, !

+1

, . w3wp -, . Asp.net . / , ..

+1

Source: https://habr.com/ru/post/1669991/


All Articles