DeclarativeCompositeActivitiesConsole sample throws exception
See original GitHub issueHi, all!
I noticed that DeclarativeCompositeActivitiesConsole sample triggers an error.
InvalidOperationException: Unable to resolve service for type 'Microsoft.Extensions.Configuration.IConfiguration' while attempting to activate 'Elsa.Scripting.Liquid.Handlers.ConfigureLiquidEngine'.

Steps to reproduce:
- Open Elsa solution in Visual Studio
- Make DeclarativeCompositeActivitiesConsole your startup project
- Run sample project in Debug mode
Expected result: Console messages are being displayed on the screen
Actual result: The above exception is thrown.
P.S. I’m using same pattern as in the sample to run workflows from code behind and I have the same issue.
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
In Java, is using throws Exception instead of ...
Throwing Exception forces calling code to catch exception which they will probably not want to do for all kinds of reasons. Share.
Read more >How to Throw Exceptions in Java
Throwing an exception is as simple as using the "throw" statement. You then specify the Exception object you wish to throw. Every Exception...
Read more >java - Why is "throws Exception" necessary when calling a ...
In Java, as you may know, exceptions can be categorized into two: One that needs the throws clause or must be handled if...
Read more >How to use the Throws keyword in Java (and when ...
In this example, the “addInteger” method throws an IllegalArgumentException using the throw keyword in case the “integers” ArrayList object ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I pushed an update that will register
IConfigurationif this service is not already present such as in the case when creating console apps.The sample is working fine!
Thank you for the fix!
Best! Razvan