RazorEngine icon indicating copy to clipboard operation
RazorEngine copied to clipboard

CleanupHelperDomain_ won't unload

Open dnovakovic opened this issue 9 years ago • 1 comments

Hello there, I've been using RazorEngine within IIS context. I've did as explained in the documentation: constructed a separate AppDomain where template engine will do its thing. However, I've noticed that my assembly (my code that actually turns .cshtml into string) will not unload from IIS process. This is valid even if I unload new AppDomain after using it. I did some research and my code/assembly is still loaded in CleanupHelperDomain_xxx domain, which is constructed by RazorEngine (CrossAppDomainCleanup). Why is that domain required and how to unload that domain as well? Perhaps I'm doing something wrong but in setting up the engine, but on the other hand I was only following the docs.

Appreciate if you can spare a minute to provide some pointers how to go around this.

Kind regards, Novakovic Dejan

dnovakovic avatar Apr 27 '17 08:04 dnovakovic

Any updates on this?

cosminpopescu avatar Oct 11 '19 13:10 cosminpopescu