HI
I am hitting very often the 500 error when i want to install custom code using CLI,
recently i am trying to install Connector.ServiceBus.dll i am getting error:
Installing addin
Request failed, returned error:
{
type: 'https://tools.ietf.org/html/rfc9110#section-15.6.1',
title: 'One or more errors occurred. (Failure has occurred while loading a type.)',
status: 500,
traceId: '00-2ce362603bf19e1d5040550878b25f7e-aa99f7428daf99da-00'
}
in logs i have message that not allow me to determine why this dll cannot be installed
2026-01-14 11:31:09.6440: Management API request failed. Trace ID: 00-2ce362603bf19e1d5040550878b25f7e-aa99f7428daf99da-00. System.AggregateException: One or more errors occurred. (Failure has occurred while loading a type.)
---> System.TypeAccessException: Failure has occurred while loading a type.
at Dynamicweb.Marketplace.Providers.LocalAddinProvider.InstallDll(String path, Boolean queue, String package)
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
at System.Threading.Tasks.Task.Wait()
at Dynamicweb.Marketplace.MarketplaceService.Sync(Func`2 func, String manager)
at Dynamicweb.Marketplace.MarketplaceService.InstallViaManager(String package, String version, String manager, Boolean queue)
at Dynamicweb.Marketplace.MarketplaceService.Install(String package, String version, String manager, Boolean queue)
at Dynamicweb.Application.UI.Commands.AddinInstallCommand.Handle()
at Dynamicweb.Management.Api.Controllers.Api.DataController.GetCommandResult(Type commandType, Type queryType, String body)
at Dynamicweb.Management.Api.Controllers.Api.DataController.Post(String command, Object body)
at lambda_method96(Closure, Object)
at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.AwaitableObjectResultExecutor.Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()
--- End of stack trace from previous location ---
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeFilterPipelineAsync()
--- End of stack trace from previous location ---
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Logged|17_1(ResourceInvoker invoker)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Logged|17_1(ResourceInvoker invoker)
at Microsoft.AspNetCore.Routing.EndpointMiddleware.g__AwaitRequestTask|7_0(Endpoint endpoint, Task requestTask, ILogger logger)
at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddlewareImpl.g__Awaited|10_0(ExceptionHandlerMiddlewareImpl middleware, HttpContext context, Task task)
2026-01-14 11:31:09.6515: Request headers: [
"Accept",
"Accept-Encoding",
"Authorization",
"Connection",
"Content-Length",
"Content-Type",
"Host",
"User-Agent"
]
2026-01-14 11:31:09.6522: Request item keys: [
"DW_Current_ExecutionTable"
]
2026-01-14 11:31:09.6524: Request form: []
The package not contains many additional nugets:
Transitive Package Resolved
> FluentFTP 51.1.0
> Microsoft.Extensions.ApiDescription.Server 3.0.0
> Microsoft.OpenApi 1.2.3
> RestSharp 112.1.0
> Swashbuckle.AspNetCore 6.3.1
> Swashbuckle.AspNetCore.Swagger 6.3.1
> Swashbuckle.AspNetCore.SwaggerGen 6.3.1
> Swashbuckle.AspNetCore.SwaggerUI 6.3.1
This is not the first project where i have the issue, the worst thing is that in CD pipe the not installed dlls could change (this one appears always).
The log message is not helpfull here at all and the CI/CD was to help us i think but seems like it is creating problems that need to be solve by work arrounds
Sometimes app recycle help but not here.
i rise this issue before but not answer here: DW not seeing deployed dll
Regards
Mateusz