Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Host] Fix runtime dependency issue #180

Merged
merged 1 commit into from
May 11, 2023
Merged

Conversation

zarusz
Copy link
Owner

@zarusz zarusz commented May 11, 2023

The 2.1.5 version experiences the following runtime error:

System.MissingMethodException: Method not found: 'System.Collections.Generic.IReadOnlyCollection`1<SlimMessageBus.Host.DiscoveryProspectType> SlimMessageBus.Host.ReflectionDiscoveryScanner.GetInterceptorTypes(System.Func`2<System.Type,Boolean>)'.
   at SlimMessageBus.Host.ServiceCollectionExtensions.AddServicesFromAssembly(MessageBusBuilder mbb, Assembly assembly, Func`2 filter, ServiceLifetime consumerLifetime, ServiceLifetime interceptorLifetime)
   at SlimMessageBus.Host.ServiceCollectionExtensions.AddServicesFromAssemblyContaining[T](MessageBusBuilder mbb, Func`2 filter, ServiceLifetime consumerLifetime, ServiceLifetime interceptorLifetime)

The fix is to upgrade the SlimMessageBus.Host.Configuration version.

Signed-off-by: Tomasz Maruszak <maruszaktomasz@gmail.com>
@zarusz zarusz self-assigned this May 11, 2023
@zarusz zarusz merged commit f2974a3 into master May 11, 2023
@zarusz zarusz changed the title Fix runtime dependency issue [Host] Fix runtime dependency issue May 11, 2023
@Juandavi1
Copy link

Hi ! Awesome project !!

I have the similar issue.

image

versions

image

config

image

Do you know how to resolve it?

thanks a lot !

@zarusz
Copy link
Owner Author

zarusz commented Sep 1, 2023

Hey @Juandavi1 , please uninstall the obsolete package SlimMessageBus.Host.Hybrid - it has been dropped since 2.x version (see here).
Then also I recommend to update the Kafka libraries to latest version (2.1.10 is latest as of now).

If you still have problem, lets re-open this issue.

@zarusz zarusz deleted the feature/fix_dependencies branch September 1, 2023 05:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants