-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Error with Elsa DropIns: Method not found: 'Elsa.Features.Services.IModule.get_Services()' #4954
Comments
Based on the error message you're encountering, it seems there might be a mismatch between the versions of Elsa you're using and the method signatures expected by the DropIns feature. The error message indicates that the Here are a few steps you can take to troubleshoot and resolve the issue:
Remember to check the compatibility of all your dependencies and ensure that you are following the latest guidelines for using the DropIns feature with Elsa 3.x. |
So I was able to resolve parts of the issue. Building the IOCommunications Project copies the "Microsoft.Extensions.DependencyInjection.Abstractions.dll" DLL into the DropIns folder. Removing the file |
So the problem is, that the NuGet package "Grpc.Net.Client", that I use in my GrpcClient depends on Microsoft.Extensions.Logging.Abstractions. Microsoft.Extensions.Logging.Abstractions depends on Microsoft.Extensions.DependencyInjection.Abstractions.dll and copies it to the output directory.
See this thread for some additional information NuGet/Home#5986 (comment) This problem is indeed not caused by Elsa workflow but introduces complexity for a person that wants to create plugins. Using a plugin, that depends on a dll that is already been loaded by the Elsa server, would cause a crash. |
So I want to use the DropIn feature.
I created a Plugin Project, that adds GRPC activities.
The activities are implemented in a project called "IOCommunicationActivies".
The GRPC functionality is implemented in a project called "GrpcClient".
The GrpcClient is referenced by the IOCommunicationActivites project.
I build the IOCommunicationActivites project and copy the output to the configured DropIns folder.
In the class DropInStartup : IDropIn in the Install method, I want to register a grpc service.
I do that by writing:
Running the Elsa Server I get the error:
I'm relatively new to plugin like project configurations so I'll post the csproj files for GrpcClient and IOCommunicationActivities:
GrpcClient:
IOCommunicationActivities:
The text was updated successfully, but these errors were encountered: