You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)
using OrchardCore.Logging;
var builder = WebApplication.CreateBuilder(args);
builder.Host.UseNLogHost();
builder.Services
.AddOrchardCms()
// // Orchard Specific Pipeline
// .ConfigureServices( services => {
// })
// .Configure( (app, routes, services) => {
// })
;
var app = builder.Build();
if (!app.Environment.IsDevelopment())
{
app.UseExceptionHandler("/Error");
// The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts.
app.UseHsts();
}
//app.UseHttpsRedirection();
app.UseStaticFiles();
app.UseOrchardCore();
app.Run();
github-actionsbot
changed the title
MissingMethodException Method not found: 'Void OrchardCore.Workflows.Helpers.ServiceCollectionExtensions.AddActivity
MissingMethodException Method not found: 'Void OrchardCore.Workflows.Helpers.ServiceCollectionExtensions.AddActivity (OCC-304)
Nov 18, 2024
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: