question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

NRules Autofac integration package does not support Autofac 3.3.1 and higher

See original GitHub issue

Taking from the example @ https://github.com/NRules/NRules/wiki/Rule-Dependencies (i.e. using NRules.Integration.Autofac) I keep getting an exception with the following code:

 var types = containerBuilder.RegisterRules(x => x.AssemblyOf(typeof(IMyRule)));
 containerBuilder.RegisterRepository(r => r.Load(x => x.From(types)));
 containerBuilder.RegisterSessionFactory();
 containerBuilder.RegisterSession();

System.MissingMethodException : Method not found: ‘Autofac.Builder.IRegistrationBuilder3<!0,!1,!2> Autofac.Builder.IRegistrationBuilder3.PropertiesAutowired(Autofac.PropertyWiringOptions)’. at NRules.Integration.Autofac.RegistrationExtensions.RegisterRepository(ContainerBuilder builder, Action`1 initAction)

Any thoughts?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
snikolayevcommented, Dec 21, 2017

This will be addressed in 0.8.1 release (upgrading references to Autofac 3.3.1, which is compatible with 4.4.0)

0reactions
snikolayevcommented, Oct 25, 2020

@tuzik12 Autofac had some breaking changes, so the Autofac integration code needs to be recompiled against the new version. For now, until the new NRules release is out, I recommend that you recompile it yourself against the version of Autofac that you are using in your project.

Read more comments on GitHub >

github_iconTop Results From Across the Web

NRules.Integration.Autofac 0.9.3
Autofac IoC container integration for NRules.
Read more >
Error after update Autofac.Mvc5 from 3.3.2 to 3.3.3
The dependency resolver is not of type 'Autofac.Integration.Mvc.AutofacDependencyResolver' and does not appear to be wrapped using DynamicProxy ...
Read more >
Web API — Autofac 3.3 documentation
WebApi NuGet package. Web API integration provides dependency injection integration for controllers, model binders, and action filters. It also adds per-request ...
Read more >
The requested service has not been registered
This error means that Autofac tried to resolve a service based on an application request but that service was not registered in the...
Read more >
Autofac Integration | Documentation Center | ABP.IO
Install Autofac Integration. All the startup templates and samples are Autofac integrated. So, most of the time you don't need to manually install...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found