Closed CNBoland closed 4 years ago
Thanks for raising the issue; it looks like when we changed the build to run on Linux, it accidentally turned on delay-signing.
Just to absolutely double and triple check, would you mind grabbing the latest CI build from MyGet, with the corrected signing option, 7.0.2-develop-00488, and see if that works with your project?
If it does, we'll get a 7.0.2 release out.
I updated to the MyGet preview and am now getting this error:
_[MissingMethodException: Method not found: 'Void Autofac.Core.IComponentRegistration.add_Preparing(System.EventHandler1<Autofac.Core.PreparingEventArgs>)'.] Autofac.Extras.NLog.NLogModule.AttachToComponentRegistration(IComponentRegistryBuilder componentRegistry, IComponentRegistration registration) +0 Autofac.Core.Registration.ComponentRegistryBuilder.add_Registered(EventHandler
1 value) in /home/appveyor/projects/autofac/src/Autofac/Core/Registration/ComponentRegistryBuilder.cs:154
Autofac.Module.Configure(IComponentRegistryBuilder componentRegistry) in /home/appveyor/projects/autofac/src/Autofac/Module.cs:67
Autofac.ContainerBuilder.Build(IComponentRegistryBuilder componentRegistry, Boolean excludeDefaultModules) in /home/appveyor/projects/autofac/src/Autofac/ContainerBuilder.cs:219
Autofac.ContainerBuilder.Build(ContainerBuildOptions options) in /home/appveyor/projects/autofac/src/Autofac/ContainerBuilder.cs:161
APA.MAP.RegistrationServices.Sec.AutofacConfig.Configure(HttpConfiguration httpConfig) in C:\Projects\Repos\MAP\APA.MAP\APA.MAP.RegistrationServices.Sec\App_Start\AutofacConfig.cs:44
APA.MAP.RegistrationServices.Sec.WebApiApplication.ApplicationStart() in C:\Projects\Repos\MAP\APA.MAP\APA.MAP.RegistrationServices.Sec\Global.asax.cs:35
I'm using Autofac v6.0 from NuGet.
It looks like the Autofac.Extras.NLog project is not compatible with Autofac v6; that package isn't one of ours, so will need updating.
Yes, I see that now. I maintain Autofac.Extras.NLog and updated it recently for compatibility with Autofac 6.0, so I'll address it there and report back here. Thank you for looking into this.
No worries; we'll get the proper release of 7.0.2 out soon.
I'm in the process of pushing 7.0.2 out now.
Describe the bug Upgraded MVC5 project from Autofac 5.2 to 6.0, including Autofac.Extensions.DependencyInjection from 6.0.0 to 7.0.1. Project builds, but on load results in the runtime exception described below.
To reproduce I'd have to build a sample site with relevant pieces and include as attachment. Hopefully the description here is sufficient enough to identify if problem is with the signed assembly or with my project somehow.
Full exception with stack trace:
Assembly/dependency versions:
Additional context Project has been working with latest versions of the Autofac 5.x stack. Problem occurred after upgrading to 6.x.