orchestrator
2023.10
false
- Getting Started
- Requirements
- Best Practices
- Installation
- Updating
- Identity Server
- Troubleshooting startup errors
- Orchestrator exceptions
- Identity Server Exceptions
- Webhooks exceptions
Webhooks exceptions
Orchestrator Installation Guide
Last updated Oct 3, 2024
Webhooks exceptions
500.30 ASP.NET Core app failed to start - System.TypeInitializationException: The type initializer for 'System.Threading.Tasks.Task' threw an exception
Exception Info: System.TypeInitializationException: The type initializer for 'System.Threading.Tasks.Task' threw an exception.
---> System.IO.FileNotFoundException: Could not load file or assembly 'System.Threading.Tasks, Version=4.0.10.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The system cannot find the file specified.
File name: 'System.Threading.Tasks, Version=4.0.10.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
at Dynatrace.OneAgent.Introspection.TaskEventHandler.NotifyCreated(Object taskObject, Object stateObject)
at System.Threading.Tasks.Task..ctor(Boolean canceled, TaskCreationOptions creationOptions, CancellationToken ct)
at System.Threading.Tasks.Task..cctor()
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.get_CompletedTask()
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean useAsync)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at System.Diagnostics.StackTraceSymbols.TryOpenFile(String path)
at UiPath.IdentityServer.Web.Program.<Main>(String[] args)
Exception Info: System.TypeInitializationException: The type initializer for 'System.Threading.Tasks.Task' threw an exception.
---> System.IO.FileNotFoundException: Could not load file or assembly 'System.Threading.Tasks, Version=4.0.10.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The system cannot find the file specified.
File name: 'System.Threading.Tasks, Version=4.0.10.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
at Dynatrace.OneAgent.Introspection.TaskEventHandler.NotifyCreated(Object taskObject, Object stateObject)
at System.Threading.Tasks.Task..ctor(Boolean canceled, TaskCreationOptions creationOptions, CancellationToken ct)
at System.Threading.Tasks.Task..cctor()
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.get_CompletedTask()
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean useAsync)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at System.Diagnostics.StackTraceSymbols.TryOpenFile(String path)
at UiPath.IdentityServer.Web.Program.<Main>(String[] args)
The issue is caused by the Dynatrace agent responsible for Application Performance Monitoring (APM).
Upgrade to the latest standalone version or to the minimum version in support. See the Product lifecycle page for details.
OR
Disable AppInsights, Dynatrace, NewRelic, DataDog.
Application '/LM/W3SVC/1/ROOT' with physical root 'C:\Program Files (x86)\UiPath\APPLICATIONNAME\' failed to load coreclr. Exception message:
Managed server didn't initialize after X ms.
Application '/LM/W3SVC/1/ROOT' with physical root 'C:\Program Files (x86)\UiPath\APPLICATIONNAME\' failed to load coreclr. Exception message:
Managed server didn't initialize after X ms.
The startup time limit might be restrictive and cause downtime in environments affected by high CPU usage and memory consumption.
Upgrade to 20.10.5+ to increase the startup time limit to 300 seconds.
If this is insufficient, it means that the server is attempting to execute something, and has a deadlock. This is usually
the case when the
EnableMigrations
parameter is set to True
, and there is a large migration hanging the main thread.
If the flag is set to
False
, collect a memory dump, and submit it to your customer representative.