Hi
I hit the issue during CI/CD configuration. I have some custom code, few dlls. i can see in azure devops that they were install properly :
i can see custom dlls on server :
but than in installed the "infrastucture" dll is missing :
so because of that i am getting error after app recycle:
[2025-11-02 17:34:27.612] Custom.ScanApp (Context) System.Reflection.ReflectionTypeLoadException Unable to load one or more of the requested types.Could not load file or assembly 'Custom.ScanApp.Infrastructure, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.Could not load file or assembly 'Custom.Infrastructure, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.Could not load file or assembly 'Custom.Infrastructure, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
(Custom - is just to hide dll full name)
when i install missing dll from my computer using cli it appears on env and there is no more errors and dlls are loading properly
Do you know what might causing this issue ? Is there a way how to solve this issue ?
Ps: i am getting error when trying do install .infrastructure.dll
from cli:
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-0e166ff8d1810e4cf1830a294a4823f0-aba59963fbd373f6-00'
}
in env :
2025-11-02 22:12:54.6251: Management API request failed. Trace ID: 00-0e166ff8d1810e4cf1830a294a4823f0-aba59963fbd373f6-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_method160(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)
2025-11-02 22:12:54.6278: Request headers: [
"Accept",
"Accept-Encoding",
"Authorization",
"Connection",
"Content-Length",
"Content-Type",
"Host",
"User-Agent"
]
2025-11-02 22:12:54.6281: Request item keys: [
"DW_Current_ExecutionTable"
]
2025-11-02 22:12:54.6283: Request form: []
it looks like i need to recycle app before i can install this dll
Regards
Mateusz