Does ASP.NET load all assemblies into the AppDomain from the bin folder?
Why I ask is because I'm trying to look for specific implementations of an interface and it seems to be resolving them without an explicit Assembly.Load(...)
.
I think it does load them all, via System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory(). I get that in profiling stack traces but can't find much documentation of it.
Fellow SO'ers discuss controlling it here though: How to stop ASP.NET from loading all assemblies from bin on first load
It will not load them unless they are referenced (either statically or dynamically). But the Bin folder is considered part of the probing path, so it will get used to try to load Assemblies.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With