- Erste Schritte
- Anforderungen
- Best Practices
- Installation
- Wird aktualisiert
- Identity Server
- Fehlerbehebung bei Startfehlern
Webhooks-Ausnahmen
Häufige Ausnahmen des Webhooks-Diensts und Fehler beim Laden von Assemblys, die während des Starts aufgetreten sind
500.30 ASP.NET Core app failed to start - System.TypeInitializationException: The type initializer for 'System.Threading.Tasks.Task' threw an exception
Ausnahme
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)
Ursache
Das Problem wird durch den Dynatrace-Agent für Application Performance Monitoring (APM) verursacht.
Lösung
Aktualisieren Sie auf die neueste eigenständige Version oder auf die Mindestversion, die unterstützt wird. Weitere Informationen finden Sie auf der Seite Produktlebenszyklus.
ODER
Deaktivieren Sie AppInsights, Dynatrace, NewRelic, DataDog.
500.30 ASP.NET Core app failed to start - Managed server didn't initialize after X ms
Ausnahme
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.
Ursache
Das Startzeitlimit kann restriktiv sein und in Umgebungen mit hoher CPU-Auslastung und hohem Speicherverbrauch zu Ausfallzeiten führen.
Lösung
Upgraden Sie auf 20.10.5+, um das Startzeitlimit auf 300 Sekunden zu erhöhen.
Wenn das nicht ausreicht, bedeutet es, dass der Server versucht, etwas auszuführen, aber einen Deadlock hat. Dies ist für gewöhnlich der Fall, wenn der Parameter EnableMigrations auf True festgelegt ist und eine große Migration den Haupt-Thread zum Stillstand bringt.
Wenn das Flag auf False festgelegt ist, erstellen Sie einen Speicherauszug und senden Sie ihn an Ihren Kundenbetreuer.
500.30 ASP.NET Core app failed to start - System.ApplicationException: Ledger subscriber could not be started
Ausnahme
Exception Info: System.ApplicationException: Ledger subscriber could not be started.
Exception Info: System.ApplicationException: Ledger subscriber could not be started.
This exception is typically preceded in the Application event log by a Microsoft.Data.SqlClient.SqlException (error 40) and a "SQL Server is shutting down" entry.
Check the Application event log for a SQL connection error immediately before the Ledger subscriber exception to confirm the cause.
Ursache
SQL Server was not available when Webhooks attempted to start the Ledger subscriber. This happens when SQL Server runs on the same machine as Orchestrator and has not finished starting when Orchestrator starts after an OS restart.
Lösung
- Confirm that SQL Server is running and accepting connections.
- Stop the Orchestrator site in IIS Manager.
- Start the Orchestrator site in IIS Manager.
- 500.30 ASP.NET Core app failed to start - System.TypeInitializationException: The type initializer for 'System.Threading.Tasks.Task' threw an exception
- Ausnahme
- Ursache
- Lösung
- 500.30 ASP.NET Core app failed to start - Managed server didn't initialize after X ms
- Ausnahme
- Ursache
- Lösung
- 500.30 ASP.NET Core app failed to start - System.ApplicationException: Ledger subscriber could not be started
- Ausnahme
- Ursache
- Lösung