UiPath Documentation
orchestrator
2025.10
true
Orchestrator 安装指南
重要 :
新发布内容的本地化可能需要 1-2 周的时间才能完成。

Webhook 异常

启动期间遇到的常见 Webhooks 服务异常和程序集加载错误

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,请收集内存转储,并将其提交给客户代表。

500.30 ASP.NET Core 应用程序启动失败 - System.ApplicationException:无法启动 Ledger 订阅者​

异常​

Exception Info: System.ApplicationException: Ledger subscriber could not be started.
Exception Info: System.ApplicationException: Ledger subscriber could not be started.

在应用程序事件日志中,出现此异常之前的通常是 Microsoft.Data.SqlClient.SqlException(错误 40)和“SQL Server 正在关闭”错误。条目。

提示:

在应用程序事件日志中查看 Ledger 订阅者异常之前是否存在 SQL 连接错误,以确认原因。

原因​

当 Webhook 尝试启动 Ledger 订阅者时,SQL Server 不可用。当 SQL Server 与 Orchestrator 在同一台计算机上运行,并且 SQL Server 在操作系统重新启动后启动 Orchestrator 时尚未完成启动时,就会发生这种情况。

解决方案​

  1. 确认 SQL Server 正在运行并接受连接。
  2. 在 IIS 管理器中停止 Orchestrator 站点。
  3. 在 IIS 管理器中启动 Orchestrator 站点。

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新