-
Notifications
You must be signed in to change notification settings - Fork 93
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
MissingMethodException Method not found: 'Void OrchardCore.Workflows.Helpers.ServiceCollectionExtensions.AddActivity (OCC-304) #509
Comments
Sorry for the late reply, could you check if it works for you using the Cloudsmith package instead of the NuGet? |
thanks seems works with preview packages. |
@sarahelsaig using the preview build fixed that problem but uncovered another one. When you turn on the commerce feature it n no longer failed with AddActivity. However, when you tried to load the content types page it throws a missing service exception.
|
@sarahelsaig @wAsnk I am getting the same missing service exception while trying to load the content types. Bug: |
@Mohitkmr1322 which version are you using? Also to both @Mohitkmr1322 and @jeff-techstension : |
@sarahelsaig think your right. I dont have content fields in the list. Will go review that issue and see if i have anything to add. |
Thank you for your feedback, Jeff. I will try to investigate on my end as well. |
I've confirmed, this is the same as #456. I will attempt to fix it asap, but this issue can be closed as duplicate just to keep things ordered. Until it's resolved, please see the workaround described in the issue description:
|
@carlosmorenoaguilera @Mohitkmr1322 @jeff-techstension We have released a new version on NuGet! It uses Orchard Core 2.1 and you don't have to do the above mentioned workaround any more either. So for example this is enough: <ItemGroup>
<PackageReference Include="OrchardCore.Commerce" Version="3.0.0" />
<PackageReference Include="OrchardCore.Logging.NLog" Version="2.1.4" />
<PackageReference Include="OrchardCore.Application.Cms.Targets" Version="2.1.4" />
</ItemGroup> |
That's awesome @sarahelsaig. I'll give it a whirl later on today or over the weekend and let you know how it goes. Thanks a bunch. |
Took me a moment to get around to it @sarahelsaig. Can confirm this fixes it. Thank you. |
Glad to hear it! |
Describe the bug
System.MissingMethodException: Method not found: 'Void OrchardCore.Workflows.Helpers.ServiceCollectionExtensions.AddActivity(Microsoft.Extensions.DependencyInjection.IServiceCollection)'.
at OrchardCore.Commerce.WorkflowStartup.ConfigureServices(IServiceCollection services)
at OrchardCore.Environment.Shell.Builders.ShellContainerFactory.CreateContainerAsync(ShellSettings settings, ShellBlueprint blueprint)
at OrchardCore.Environment.Shell.Builders.ShellContextFactory.CreateDescribedContextAsync(ShellSettings settings, ShellDescriptor shellDescriptor)
at OrchardCore.Environment.Shell.Builders.ShellContextFactory.OrchardCore.Environment.Shell.Builders.IShellContextFactory.CreateShellContextAsync(ShellSettings settings)
at OrchardCore.Environment.Shell.ShellHost.GetOrCreateShellContextAsync(ShellSettings settings)
at OrchardCore.Environment.Shell.ShellHost.GetScopeAsync(ShellSettings settings)
at OrchardCore.Modules.ModularTenantContainerMiddleware.Invoke(HttpContext httpContext)
at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddlewareImpl.Invoke(HttpContext context)
To Reproduce
set this on Program.cs:
Go to admin dashboard >> Features and Install
and immediately get an error
Expected behavior
not get an error while trying to install
Jira issue
The text was updated successfully, but these errors were encountered: