Orchestrator
2021.10
False
横幅背景图像
Orchestrator 安装指南
上次更新日期 2024年4月19日

Webhook 异常

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)

原因

此问题是由负责应用程序性能监控 (APM) 的 Dynatrace 代理引起。

解决方案

升级到最新的独立版本或支持的最低版本。有关详细信息,请参阅产品生命周期页面。

禁用 AppInsights、Dynatrace、NewRelic、DataDug。

500.30 ASP.NET Core app failed to start - 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.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.

原因

在受 CPU 使用率和内存消耗偏高影响的环境中,启动时间限制可能会受到限制,并导致停机。

解决方案

升级到 20.10.5 及更高版本,以将启动时间限制增加到 300 秒。

如果这还不够,则意味着服务器正在尝试执行某些操作,并且存在死锁。当 EnableMigrations 参数设置为 True 时,通常就会出现这种情况,并且有一个大型迁移挂起主线程。
如果该标志设置为 False,请收集内存转储,并将其提交给客户代表。

此页面是否有帮助?

获取您需要的帮助
了解 RPA - 自动化课程
UiPath Community 论坛
Uipath 白色徽标
信任与安全
© 2005-2024 UiPath. All rights reserved.