diff --git a/src/Nancy/Bootstrapper/NancyBootstrapperBase.cs b/src/Nancy/Bootstrapper/NancyBootstrapperBase.cs index fccc43030c..15539869ed 100755 --- a/src/Nancy/Bootstrapper/NancyBootstrapperBase.cs +++ b/src/Nancy/Bootstrapper/NancyBootstrapperBase.cs @@ -244,6 +244,9 @@ public void Initialise() this.ConfigureApplicationContainer(this.ApplicationContainer); + // We need to call this to fix an issue with assemblies that are referenced by DI not being loaded + AppDomainAssemblyTypeScanner.UpdateTypes(); + var typeRegistrations = this.InternalConfiguration.GetTypeRegistations() .Concat(this.GetAdditionalTypes());