2

Resolved

Compatibility problem with Autofac 3.1.3+

description

Autofac introduced a breaking change somewhere between version 3.0.1 and 3.1.3, resulting in an exception thrown from Atlas on Host.Start:

An unhandled exception of type 'System.MissingMethodException' occurred in Atlas.dll

Additional information: Method not found: 'Void Autofac.ContainerBuilder.Update(Autofac.IContainer)'.

The problem is that a parameter with a default value has been added to the Update method, thus requiring a recompile of any client code. Issue 462 is open about this with Autofac, but it could also be solved at the Atlas end by recompiling and producing a NuGet package with a dependency on Autofac >= 3.1.3 && <= 4.

comments

amiller wrote Nov 21, 2013 at 5:36 PM

Thanks. I'll update the nuget package with a version that is 3.1.3+ compliant. Unless you want to submit a pull request.

Jawvig wrote Nov 23, 2013 at 6:49 PM

Please do go ahead without awaiting a PR from me.

amiller wrote Dec 6, 2013 at 3:22 AM

This has been rebuilt into Atlas 1.6.0.

Feel free to download the release, or install via nugget.

mdNivers wrote Feb 25, 2014 at 7:48 PM

Adam,

It looks like this issue may be back with Autofac 3.3.0. Is there any way you can compile a version of Atlas with the latest version of Autofac?

Thanks!

amiller wrote Mar 29, 2014 at 6:03 PM

Hey, I'm terribly sorry for the delay getting back to you. Somehow my auto-notifications got disabled. I'll take care of this ASAP.

amiller wrote Mar 29, 2014 at 7:08 PM

I just release 1.7.0.0 via nuget and the downloads tab. It uses Autofac 3.3.1 and has fixed the dependency on this version to prevent this breaking upgrade issue. I've also re-subscribed to Autofac's releases so I can update the versions as needed in Atlas faster.

Thanks for your patience and I apologize for the long delay.