orchestrator
2021.10
false
重要 :
このコンテンツの一部は機械翻訳によって処理されており、完全な翻訳を保証するものではありません。
UiPath logo, featuring letters U and I in white
サポート対象外
Orchestrator インストール ガイド
Automation CloudAutomation Cloud Public SectorAutomation SuiteStandalone
Last updated 2024年10月31日

Identity Server の例外

500.30 ASP.NET Core app failed to start - System.FormatException: Could not parse the JSON file

Exception

Exception Info: System.FormatException: Could not parse the JSON file. 
---> System.Text.Json.JsonReaderException: '2' is an invalid start of a property name. Expected a '"'. LineNumber: 0 | BytePositionInLine: 1.
 at System.Text.Json.ThrowHelper.ThrowJsonReaderException(Utf8JsonReader& json, ExceptionResource resource, Byte nextByte, ReadOnlySpan`1 bytes)
 at System.Text.Json.Utf8JsonReader.ReadSingleSegment()
 at System.Text.Json.Utf8JsonReader.Read()
 at System.Text.Json.JsonDocument.Parse(ReadOnlySpan`1 utf8JsonSpan, JsonReaderOptions readerOptions, MetadataDb& database, StackRowStack& stack)
 at System.Text.Json.JsonDocument.Parse(ReadOnlyMemory`1 utf8Json, JsonReaderOptions readerOptions, Byte[] extraRentedBytes)
 at System.Text.Json.JsonDocument.Parse(ReadOnlyMemory`1 json, JsonDocumentOptions options)
 at System.Text.Json.JsonDocument.Parse(String json, JsonDocumentOptions options)
 at Microsoft.Extensions.Configuration.Json.JsonConfigurationFileParser.ParseStream(Stream input)
 at Microsoft.Extensions.Configuration.Json.JsonConfigurationFileParser.Parse(Stream input)
 at Microsoft.Extensions.Configuration.Json.JsonConfigurationProvider.Load(Stream stream) --- End of inner exception stack trace ---
 at Microsoft.Extensions.Configuration.Json.JsonConfigurationProvider.Load(Stream stream)
 at Microsoft.Extensions.Configuration.FileConfigurationProvider.Load(Boolean reload) --- End of stack trace from previous location ---
 at Microsoft.Extensions.Configuration.FileConfigurationProvider.HandleException(ExceptionDispatchInfo info)
 at Microsoft.Extensions.Configuration.FileConfigurationProvider.Load(Boolean reload)
 at Microsoft.Extensions.Configuration.FileConfigurationProvider.Load()
 at Microsoft.Extensions.Configuration.ConfigurationRoot..ctor(IList`1 providers)
 at Microsoft.Extensions.Configuration.ConfigurationBuilder.Build()
 at Microsoft.AspNetCore.Hosting.WebHostBuilder.BuildCommonServices(AggregateException& hostingStartupErrors)
 at Microsoft.AspNetCore.Hosting.WebHostBuilder.Build()
 at UiPath.IdentityServer.Web.Program.Main(String[] args)
 at UiPath.IdentityServer.Web.Program.<Main>(String[] args)Exception Info: System.FormatException: Could not parse the JSON file. 
---> System.Text.Json.JsonReaderException: '2' is an invalid start of a property name. Expected a '"'. LineNumber: 0 | BytePositionInLine: 1.
 at System.Text.Json.ThrowHelper.ThrowJsonReaderException(Utf8JsonReader& json, ExceptionResource resource, Byte nextByte, ReadOnlySpan`1 bytes)
 at System.Text.Json.Utf8JsonReader.ReadSingleSegment()
 at System.Text.Json.Utf8JsonReader.Read()
 at System.Text.Json.JsonDocument.Parse(ReadOnlySpan`1 utf8JsonSpan, JsonReaderOptions readerOptions, MetadataDb& database, StackRowStack& stack)
 at System.Text.Json.JsonDocument.Parse(ReadOnlyMemory`1 utf8Json, JsonReaderOptions readerOptions, Byte[] extraRentedBytes)
 at System.Text.Json.JsonDocument.Parse(ReadOnlyMemory`1 json, JsonDocumentOptions options)
 at System.Text.Json.JsonDocument.Parse(String json, JsonDocumentOptions options)
 at Microsoft.Extensions.Configuration.Json.JsonConfigurationFileParser.ParseStream(Stream input)
 at Microsoft.Extensions.Configuration.Json.JsonConfigurationFileParser.Parse(Stream input)
 at Microsoft.Extensions.Configuration.Json.JsonConfigurationProvider.Load(Stream stream) --- End of inner exception stack trace ---
 at Microsoft.Extensions.Configuration.Json.JsonConfigurationProvider.Load(Stream stream)
 at Microsoft.Extensions.Configuration.FileConfigurationProvider.Load(Boolean reload) --- End of stack trace from previous location ---
 at Microsoft.Extensions.Configuration.FileConfigurationProvider.HandleException(ExceptionDispatchInfo info)
 at Microsoft.Extensions.Configuration.FileConfigurationProvider.Load(Boolean reload)
 at Microsoft.Extensions.Configuration.FileConfigurationProvider.Load()
 at Microsoft.Extensions.Configuration.ConfigurationRoot..ctor(IList`1 providers)
 at Microsoft.Extensions.Configuration.ConfigurationBuilder.Build()
 at Microsoft.AspNetCore.Hosting.WebHostBuilder.BuildCommonServices(AggregateException& hostingStartupErrors)
 at Microsoft.AspNetCore.Hosting.WebHostBuilder.Build()
 at UiPath.IdentityServer.Web.Program.Main(String[] args)
 at UiPath.IdentityServer.Web.Program.<Main>(String[] args) 

原因

この例外は、不正な形式の appsettings.json または appsettings.Production.json ファイルが原因で発生します。

例外には、修正が必要な構成ファイルの行と、問題のある構造が含まれます。上記の例では、次の行です。

System.Text.Json.JsonReaderException: '2' is an invalid start of a property name. Expected a '"'. LineNumber: 0 | BytePositionInLine: 1.System.Text.Json.JsonReaderException: '2' is an invalid start of a property name. Expected a '"'. LineNumber: 0 | BytePositionInLine: 1.

解決策

1. ファイルの構文を修正します。JSON オンライン バリデーターやフォーマッターなどの JSON バリデーターを使用してエラーをチェックできます。

2. IIS で Orchestrator を再起動します。

500.30 ASP.NET Core app failed to start - certificate: 'THUMBPRINT' not found in certificate store

Exception

Exception Info: System.AggregateException: One or more errors occurred. (certificate: '0A38CB4B920B2FE107051C32EBE7BA898CCE0441' not found in certificate store)
 ---> System.InvalidOperationException: certificate: '0A38CB4B920B2FE107051C32EBE7BA898CCE0441' not found in certificate store
   at Microsoft.Extensions.DependencyInjection.IdentityServerBuilderExtensionsCrypto.AddSigningCredential(IIdentityServerBuilder builder, String name, StoreLocation location, NameType nameType, String signingAlgorithm)
   at UiPath.IdentityServer.Web.Extensions.Configuration.IdentityServerExtensions.SignWithStoreCertificate(IIdentityServerBuilder builder, SigningCredentialStores storeLocation)
   at UiPath.IdentityServer.Web.Extensions.Configuration.IdentityServerExtensions.AddSigningCredential(IIdentityServerBuilder builder, SigningCredentialSettings settings, IConfiguration configuration)
   at UiPath.IdentityServer.Web.Extensions.Configuration.IdentityServerExtensions.AddAndConfigureIdentityServer(IServiceCollection services, AppSettings appSettings, IConfiguration configuration, String dbConnection, ILogger`1 _logger, IHostEnvironment environment)
   at UiPath.IdentityServer.Web.Startup.ConfigureServicesAsync(IServiceCollection services)
   --- 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 UiPath.IdentityServer.Web.Startup.ConfigureServices(IServiceCollection services)
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor, Boolean wrapExceptions)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at Microsoft.AspNetCore.Hosting.MethodInfoExtensions.InvokeWithoutWrappingExceptions(MethodInfo methodInfo, Object obj, Object[] parameters)
   at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.InvokeCore(Object instance, IServiceCollection services)
   at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.<>c__DisplayClass9_0.<Invoke>g__Startup|0(IServiceCollection serviceCollection)
   at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.Invoke(Object instance, IServiceCollection services)
   at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.<>c__DisplayClass8_0.<Build>b__0(IServiceCollection services)
   at Microsoft.AspNetCore.Hosting.StartupLoader.ConfigureServicesDelegateBuilder`1.<>c__DisplayClass14_0.<ConfigureServices>g__ConfigureServicesWithContainerConfiguration|0(IServiceCollection services)
   at Microsoft.AspNetCore.Hosting.ConventionBasedStartup.ConfigureServices(IServiceCollection services)
   at Microsoft.AspNetCore.Hosting.WebHost.EnsureApplicationServices()
   at Microsoft.AspNetCore.Hosting.WebHost.Initialize()
   at Microsoft.AspNetCore.Hosting.WebHostBuilder.Build()
   at UiPath.IdentityServer.Web.Program.Main(String[] args)
   at UiPath.IdentityServer.Web.Program.<Main>(String[] args)Exception Info: System.AggregateException: One or more errors occurred. (certificate: '0A38CB4B920B2FE107051C32EBE7BA898CCE0441' not found in certificate store)
 ---> System.InvalidOperationException: certificate: '0A38CB4B920B2FE107051C32EBE7BA898CCE0441' not found in certificate store
   at Microsoft.Extensions.DependencyInjection.IdentityServerBuilderExtensionsCrypto.AddSigningCredential(IIdentityServerBuilder builder, String name, StoreLocation location, NameType nameType, String signingAlgorithm)
   at UiPath.IdentityServer.Web.Extensions.Configuration.IdentityServerExtensions.SignWithStoreCertificate(IIdentityServerBuilder builder, SigningCredentialStores storeLocation)
   at UiPath.IdentityServer.Web.Extensions.Configuration.IdentityServerExtensions.AddSigningCredential(IIdentityServerBuilder builder, SigningCredentialSettings settings, IConfiguration configuration)
   at UiPath.IdentityServer.Web.Extensions.Configuration.IdentityServerExtensions.AddAndConfigureIdentityServer(IServiceCollection services, AppSettings appSettings, IConfiguration configuration, String dbConnection, ILogger`1 _logger, IHostEnvironment environment)
   at UiPath.IdentityServer.Web.Startup.ConfigureServicesAsync(IServiceCollection services)
   --- 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 UiPath.IdentityServer.Web.Startup.ConfigureServices(IServiceCollection services)
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor, Boolean wrapExceptions)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at Microsoft.AspNetCore.Hosting.MethodInfoExtensions.InvokeWithoutWrappingExceptions(MethodInfo methodInfo, Object obj, Object[] parameters)
   at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.InvokeCore(Object instance, IServiceCollection services)
   at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.<>c__DisplayClass9_0.<Invoke>g__Startup|0(IServiceCollection serviceCollection)
   at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.Invoke(Object instance, IServiceCollection services)
   at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.<>c__DisplayClass8_0.<Build>b__0(IServiceCollection services)
   at Microsoft.AspNetCore.Hosting.StartupLoader.ConfigureServicesDelegateBuilder`1.<>c__DisplayClass14_0.<ConfigureServices>g__ConfigureServicesWithContainerConfiguration|0(IServiceCollection services)
   at Microsoft.AspNetCore.Hosting.ConventionBasedStartup.ConfigureServices(IServiceCollection services)
   at Microsoft.AspNetCore.Hosting.WebHost.EnsureApplicationServices()
   at Microsoft.AspNetCore.Hosting.WebHost.Initialize()
   at Microsoft.AspNetCore.Hosting.WebHostBuilder.Build()
   at UiPath.IdentityServer.Web.Program.Main(String[] args)
   at UiPath.IdentityServer.Web.Program.<Main>(String[] args)

原因

appsettings.Production.json ファイルで宣言されているストアに証明書が見つからないか、アプリケーション プールが証明書の秘密キーにアクセスできません。
重要:

Windows 証明書ビューアーから拇印をコピーするときに、非表示の文字を挿入しないように注意してください。

解決策

1. appsettings.Production.json ファイル内の証明書ストアに証明書が含まれていることを確認します。
この例では、アプリケーションは LocalMachine の場所で 0A38CB4B920B2FE107051C32EBE7BA898CCE0441 の拇印を持つ証明書を検索します。
"SigningCredentialSettings": {
      "StoreLocation": {
        "Name": "0A38CB4B920B2FE107051C32EBE7BA898CCE0441",
        "Location": "LocalMachine",
        "NameType": "Thumbprint"
      }"SigningCredentialSettings": {
      "StoreLocation": {
        "Name": "0A38CB4B920B2FE107051C32EBE7BA898CCE0441",
        "Location": "LocalMachine",
        "NameType": "Thumbprint"
      }

詳細については、「秘密キーの証明書」のページをご覧ください。

2. アプリケーション プールを実行しているユーザーが秘密キーへのアクセス権を持っていることを確認します。

3. IIS で Orchestrator を再起動します。

また、詳細については、「インストール後に証明書を変更する」をご覧ください。

500.30 ASP.NET Core app failed to start - Internal.Cryptography.CryptoThrowHelper+WindowsCryptographicException: The parameter is incorrect

Exception

Exception Info: System.AggregateException: One or more errors occurred. (The parameter is incorrect.)
 ---> Internal.Cryptography.CryptoThrowHelper+WindowsCryptographicException: The parameter is incorrect.
   at System.Security.Cryptography.RSACng.EncryptOrDecrypt(SafeNCryptKeyHandle key, ReadOnlySpan`1 input, AsymmetricPaddingMode paddingMode, Void* paddingInfo, Boolean encrypt)
   at System.Security.Cryptography.RSACng.EncryptOrDecrypt(Byte[] data, RSAEncryptionPadding padding, Boolean encrypt)
   at System.Security.Cryptography.RSACng.Decrypt(Byte[] data, RSAEncryptionPadding padding)
   at UiPath.IdentityServer.Web.Extensions.Utils.ConfigCryptoProvider.DecryptKey(String encryptedString)
   at UiPath.IdentityServer.Web.Extensions.Configuration.AppSettingsConfigInitializer.LoadEncryptedAppSettings(IHostEnvironment env, IConfiguration configuration, AppSettings settings, ConnectionStrings& dbConnection, ILogger logger)
   at UiPath.IdentityServer.Web.Startup.ConfigureServicesAsync(IServiceCollection services)
   --- 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 UiPath.IdentityServer.Web.Startup.ConfigureServices(IServiceCollection services)
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor, Boolean wrapExceptions)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at Microsoft.AspNetCore.Hosting.MethodInfoExtensions.InvokeWithoutWrappingExceptions(MethodInfo methodInfo, Object obj, Object[] parameters)
   at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.InvokeCore(Object instance, IServiceCollection services)
   at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.<>c__DisplayClass9_0.<Invoke>g__Startup|0(IServiceCollection serviceCollection)
   at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.Invoke(Object instance, IServiceCollection services)
   at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.<>c__DisplayClass8_0.<Build>b__0(IServiceCollection services)
   at Microsoft.AspNetCore.Hosting.StartupLoader.ConfigureServicesDelegateBuilder`1.<>c__DisplayClass14_0.<ConfigureServices>g__ConfigureServicesWithContainerConfiguration|0(IServiceCollection services)
   at Microsoft.AspNetCore.Hosting.ConventionBasedStartup.ConfigureServices(IServiceCollection services)
   at Microsoft.AspNetCore.Hosting.WebHost.EnsureApplicationServices()
   at Microsoft.AspNetCore.Hosting.WebHost.Initialize()
   at Microsoft.AspNetCore.Hosting.WebHostBuilder.Build()
   at UiPath.IdentityServer.Web.Program.Main(String[] args)
   at UiPath.IdentityServer.Web.Program.<Main>(String[] args)Exception Info: System.AggregateException: One or more errors occurred. (The parameter is incorrect.)
 ---> Internal.Cryptography.CryptoThrowHelper+WindowsCryptographicException: The parameter is incorrect.
   at System.Security.Cryptography.RSACng.EncryptOrDecrypt(SafeNCryptKeyHandle key, ReadOnlySpan`1 input, AsymmetricPaddingMode paddingMode, Void* paddingInfo, Boolean encrypt)
   at System.Security.Cryptography.RSACng.EncryptOrDecrypt(Byte[] data, RSAEncryptionPadding padding, Boolean encrypt)
   at System.Security.Cryptography.RSACng.Decrypt(Byte[] data, RSAEncryptionPadding padding)
   at UiPath.IdentityServer.Web.Extensions.Utils.ConfigCryptoProvider.DecryptKey(String encryptedString)
   at UiPath.IdentityServer.Web.Extensions.Configuration.AppSettingsConfigInitializer.LoadEncryptedAppSettings(IHostEnvironment env, IConfiguration configuration, AppSettings settings, ConnectionStrings& dbConnection, ILogger logger)
   at UiPath.IdentityServer.Web.Startup.ConfigureServicesAsync(IServiceCollection services)
   --- 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 UiPath.IdentityServer.Web.Startup.ConfigureServices(IServiceCollection services)
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor, Boolean wrapExceptions)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at Microsoft.AspNetCore.Hosting.MethodInfoExtensions.InvokeWithoutWrappingExceptions(MethodInfo methodInfo, Object obj, Object[] parameters)
   at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.InvokeCore(Object instance, IServiceCollection services)
   at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.<>c__DisplayClass9_0.<Invoke>g__Startup|0(IServiceCollection serviceCollection)
   at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.Invoke(Object instance, IServiceCollection services)
   at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.<>c__DisplayClass8_0.<Build>b__0(IServiceCollection services)
   at Microsoft.AspNetCore.Hosting.StartupLoader.ConfigureServicesDelegateBuilder`1.<>c__DisplayClass14_0.<ConfigureServices>g__ConfigureServicesWithContainerConfiguration|0(IServiceCollection services)
   at Microsoft.AspNetCore.Hosting.ConventionBasedStartup.ConfigureServices(IServiceCollection services)
   at Microsoft.AspNetCore.Hosting.WebHost.EnsureApplicationServices()
   at Microsoft.AspNetCore.Hosting.WebHost.Initialize()
   at Microsoft.AspNetCore.Hosting.WebHostBuilder.Build()
   at UiPath.IdentityServer.Web.Program.Main(String[] args)
   at UiPath.IdentityServer.Web.Program.<Main>(String[] args)

原因

appsettings.Production.json ファイルは復号されずに変更されました。

解決策

1. 「AppSettings.Production.json を暗号化する」ページの「復号」セクションのコマンドを使用して、appsettings.Production.json ファイルを復号します。
2. appsettings.Production.json ファイルを更新します。
3. appsettings.Production.json ファイルを暗号化します。

500.30 ASP.NET Core app failed to start - System.NullReferenceException: Object reference not set to an instance of an object at UiPath.IdentityServer.Web.Extensions.Configuration.IdentityServerExtensions.AddSigningCredential

Exception

Exception Info: System.AggregateException: One or more errors occurred. (Object reference not set to an instance of an object.) ---> System.NullReferenceException: Object reference not set to an instance of an object.
 at UiPath.IdentityServer.Web.Extensions.Configuration.IdentityServerExtensions.AddSigningCredential(IIdentityServerBuilder builder, SigningCredentialSettings settings, IConfiguration configuration)
 at UiPath.IdentityServer.Web.Extensions.Configuration.IdentityServerExtensions.AddAndConfigureIdentityServer(IServiceCollection services, AppSettings appSettings, IConfiguration configuration, String dbConnection, ILogger`1 _logger, IHostEnvironment environment)
 at UiPath.IdentityServer.Web.Startup.ConfigureServicesAsync(IServiceCollection services) --- 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 UiPath.IdentityServer.Web.Startup.ConfigureServices(IServiceCollection services)
 at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor, Boolean wrapExceptions)
 at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
 at Microsoft.AspNetCore.Hosting.MethodInfoExtensions.InvokeWithoutWrappingExceptions(MethodInfo methodInfo, Object obj, Object[] parameters)
 at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.InvokeCore(Object instance, IServiceCollection services)
 at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.<>c__DisplayClass9_0.<Invoke>g__Startup|0(IServiceCollection serviceCollection)
 at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.Invoke(Object instance, IServiceCollection services)
 at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.<>c__DisplayClass8_0.<Build>b__0(IServiceCollection services)
 at Microsoft.AspNetCore.Hosting.StartupLoader.ConfigureServicesDelegateBuilder`1.<>c__DisplayClass14_0.<ConfigureServices>g__ConfigureServicesWithContainerConfiguration|0(IServiceCollection services)
 at Microsoft.AspNetCore.Hosting.ConventionBasedStartup.ConfigureServices(IServiceCollection services)
 at Microsoft.AspNetCore.Hosting.WebHost.EnsureApplicationServices()
 at Microsoft.AspNetCore.Hosting.WebHost.Initialize()
 at Microsoft.AspNetCore.Hosting.WebHostBuilder.Build()
 at UiPath.IdentityServer.Web.Program.Main(String[] args)
 at UiPath.IdentityServer.Web.Program.<Main>(String[] args)Exception Info: System.AggregateException: One or more errors occurred. (Object reference not set to an instance of an object.) ---> System.NullReferenceException: Object reference not set to an instance of an object.
 at UiPath.IdentityServer.Web.Extensions.Configuration.IdentityServerExtensions.AddSigningCredential(IIdentityServerBuilder builder, SigningCredentialSettings settings, IConfiguration configuration)
 at UiPath.IdentityServer.Web.Extensions.Configuration.IdentityServerExtensions.AddAndConfigureIdentityServer(IServiceCollection services, AppSettings appSettings, IConfiguration configuration, String dbConnection, ILogger`1 _logger, IHostEnvironment environment)
 at UiPath.IdentityServer.Web.Startup.ConfigureServicesAsync(IServiceCollection services) --- 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 UiPath.IdentityServer.Web.Startup.ConfigureServices(IServiceCollection services)
 at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor, Boolean wrapExceptions)
 at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
 at Microsoft.AspNetCore.Hosting.MethodInfoExtensions.InvokeWithoutWrappingExceptions(MethodInfo methodInfo, Object obj, Object[] parameters)
 at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.InvokeCore(Object instance, IServiceCollection services)
 at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.<>c__DisplayClass9_0.<Invoke>g__Startup|0(IServiceCollection serviceCollection)
 at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.Invoke(Object instance, IServiceCollection services)
 at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.<>c__DisplayClass8_0.<Build>b__0(IServiceCollection services)
 at Microsoft.AspNetCore.Hosting.StartupLoader.ConfigureServicesDelegateBuilder`1.<>c__DisplayClass14_0.<ConfigureServices>g__ConfigureServicesWithContainerConfiguration|0(IServiceCollection services)
 at Microsoft.AspNetCore.Hosting.ConventionBasedStartup.ConfigureServices(IServiceCollection services)
 at Microsoft.AspNetCore.Hosting.WebHost.EnsureApplicationServices()
 at Microsoft.AspNetCore.Hosting.WebHost.Initialize()
 at Microsoft.AspNetCore.Hosting.WebHostBuilder.Build()
 at UiPath.IdentityServer.Web.Program.Main(String[] args)
 at UiPath.IdentityServer.Web.Program.<Main>(String[] args)  

原因

SigningCredentialSettings プロパティは、 appsettings.Production.json や Azure App Service の設定では設定されません。

OR

ASPNET_ENVIRONMENT 環境変数が Production 以外に設定されているため、appsettings.Production.json から設定の読み取りができません。

解決策

Windows Server の場合

appsettings.Production.json ファイルに SigningCredentialSettings セクションが含まれていることを確認します。例:
"AppSettings": {
    [...]
    "SigningCredentialSettings": {
      "StoreLocation": {
        "Name": "0A38CB4B920B2FE107051C32EBE7BA898CCE0446",
        "Location": "LocalMachine",
        "NameType": "Thumbprint"
      }
    }  "AppSettings": {
    [...]
    "SigningCredentialSettings": {
      "StoreLocation": {
        "Name": "0A38CB4B920B2FE107051C32EBE7BA898CCE0446",
        "Location": "LocalMachine",
        "NameType": "Thumbprint"
      }
    }

Azure App Service の場合

Identity Server にパブリッシュする」ページの手順 5 で説明されている設定が正しく構成されていることを確認します。

500.30 ASP.NET Core app failed to start - Microsoft.Data.SqlClient.SqlException (0x80131904): Login failed for user 'USERNAME'

Exception

Exception Info: System.AggregateException: One or more errors occurred. (Login failed for user 'USERNAME'.) ---> Microsoft.Data.SqlClient.SqlException (0x80131904): Login failed for user 'USERNAME'.
 at Microsoft.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
 at Microsoft.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
 at Microsoft.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
 at Microsoft.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
 at Microsoft.Data.SqlClient.SqlInternalConnectionTds.CompleteLogin(Boolean enlistOK)
 at Microsoft.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, SecureString newSecurePassword, Boolean ignoreSniOpenTimeout, TimeoutTimer timeout, Boolean withFailover)
 at Microsoft.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(ServerInfo serverInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString connectionOptions, SqlCredential credential, TimeoutTimer timeout)
 at Microsoft.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(TimeoutTimer timeout, SqlConnectionString connectionOptions, SqlCredential credential, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance)
 at Microsoft.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, Boolean applyTransientFaultHandling, String accessToken, DbConnectionPool pool)
 at Microsoft.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)
 at Microsoft.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions)
 at Microsoft.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)
 at Microsoft.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)
 at Microsoft.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
 at Microsoft.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
 at Microsoft.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
 at Microsoft.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
 at Microsoft.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
 at Microsoft.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry, SqlConnectionOverrides overrides)
 at Microsoft.Data.SqlClient.SqlConnection.Open(SqlConnectionOverrides overrides)
 at Microsoft.Data.SqlClient.SqlConnection.Open()
 at UiPath.IdentityServer.Infrastructure.Data.SqlDatabaseFeatures.GetSqlServerEdition()
 at UiPath.IdentityServer.Infrastructure.Data.SqlDatabaseFeatures.OnlineIndexOperationsSupported(String edition)
 at UiPath.IdentityServer.Infrastructure.Data.ApplicationContext.SetDatabaseFeatures(Boolean onlineIndexOperationsEnabled, String connectionName, String connectionString)
 at UiPath.IdentityServer.Infrastructure.Data.ApplicationContext.SetSwitches(Boolean onlineIndexOperationsEnabled, String connectionName, String connectionStrings)
 at UiPath.IdentityServer.Web.Startup.ConfigureServicesAsync(IServiceCollection services) ClientConnectionId:5ae3b113-df69-484f-a02e-03d7fc6b8889 Error Number:18456,State:1,Class:14 --- 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 UiPath.IdentityServer.Web.Startup.ConfigureServices(IServiceCollection services)
 at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor, Boolean wrapExceptions)
 at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
 at Microsoft.AspNetCore.Hosting.MethodInfoExtensions.InvokeWithoutWrappingExceptions(MethodInfo methodInfo, Object obj, Object[] parameters)
 at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.InvokeCore(Object instance, IServiceCollection services)
 at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.<>c__DisplayClass9_0.<Invoke>g__Startup|0(IServiceCollection serviceCollection)
 at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.Invoke(Object instance, IServiceCollection services)
 at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.<>c__DisplayClass8_0.<Build>b__0(IServiceCollection services)
 at Microsoft.AspNetCore.Hosting.StartupLoader.ConfigureServicesDelegateBuilder`1.<>c__DisplayClass14_0.<ConfigureServices>g__ConfigureServicesWithContainerConfiguration|0(IServiceCollection services)
 at Microsoft.AspNetCore.Hosting.ConventionBasedStartup.ConfigureServices(IServiceCollection services)
 at Microsoft.AspNetCore.Hosting.WebHost.EnsureApplicationServices()
 at Microsoft.AspNetCore.Hosting.WebHost.Initialize()
 at Microsoft.AspNetCore.Hosting.WebHostBuilder.Build()
 at UiPath.IdentityServer.Web.Program.Main(String[] args)
 at UiPath.IdentityServer.Web.Program.<Main>(String[] args)Exception Info: System.AggregateException: One or more errors occurred. (Login failed for user 'USERNAME'.) ---> Microsoft.Data.SqlClient.SqlException (0x80131904): Login failed for user 'USERNAME'.
 at Microsoft.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
 at Microsoft.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
 at Microsoft.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
 at Microsoft.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
 at Microsoft.Data.SqlClient.SqlInternalConnectionTds.CompleteLogin(Boolean enlistOK)
 at Microsoft.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, SecureString newSecurePassword, Boolean ignoreSniOpenTimeout, TimeoutTimer timeout, Boolean withFailover)
 at Microsoft.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(ServerInfo serverInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString connectionOptions, SqlCredential credential, TimeoutTimer timeout)
 at Microsoft.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(TimeoutTimer timeout, SqlConnectionString connectionOptions, SqlCredential credential, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance)
 at Microsoft.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, Boolean applyTransientFaultHandling, String accessToken, DbConnectionPool pool)
 at Microsoft.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)
 at Microsoft.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions)
 at Microsoft.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)
 at Microsoft.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection)
 at Microsoft.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection)
 at Microsoft.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
 at Microsoft.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
 at Microsoft.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
 at Microsoft.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
 at Microsoft.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry, SqlConnectionOverrides overrides)
 at Microsoft.Data.SqlClient.SqlConnection.Open(SqlConnectionOverrides overrides)
 at Microsoft.Data.SqlClient.SqlConnection.Open()
 at UiPath.IdentityServer.Infrastructure.Data.SqlDatabaseFeatures.GetSqlServerEdition()
 at UiPath.IdentityServer.Infrastructure.Data.SqlDatabaseFeatures.OnlineIndexOperationsSupported(String edition)
 at UiPath.IdentityServer.Infrastructure.Data.ApplicationContext.SetDatabaseFeatures(Boolean onlineIndexOperationsEnabled, String connectionName, String connectionString)
 at UiPath.IdentityServer.Infrastructure.Data.ApplicationContext.SetSwitches(Boolean onlineIndexOperationsEnabled, String connectionName, String connectionStrings)
 at UiPath.IdentityServer.Web.Startup.ConfigureServicesAsync(IServiceCollection services) ClientConnectionId:5ae3b113-df69-484f-a02e-03d7fc6b8889 Error Number:18456,State:1,Class:14 --- 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 UiPath.IdentityServer.Web.Startup.ConfigureServices(IServiceCollection services)
 at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor, Boolean wrapExceptions)
 at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
 at Microsoft.AspNetCore.Hosting.MethodInfoExtensions.InvokeWithoutWrappingExceptions(MethodInfo methodInfo, Object obj, Object[] parameters)
 at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.InvokeCore(Object instance, IServiceCollection services)
 at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.<>c__DisplayClass9_0.<Invoke>g__Startup|0(IServiceCollection serviceCollection)
 at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.Invoke(Object instance, IServiceCollection services)
 at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.<>c__DisplayClass8_0.<Build>b__0(IServiceCollection services)
 at Microsoft.AspNetCore.Hosting.StartupLoader.ConfigureServicesDelegateBuilder`1.<>c__DisplayClass14_0.<ConfigureServices>g__ConfigureServicesWithContainerConfiguration|0(IServiceCollection services)
 at Microsoft.AspNetCore.Hosting.ConventionBasedStartup.ConfigureServices(IServiceCollection services)
 at Microsoft.AspNetCore.Hosting.WebHost.EnsureApplicationServices()
 at Microsoft.AspNetCore.Hosting.WebHost.Initialize()
 at Microsoft.AspNetCore.Hosting.WebHostBuilder.Build()
 at UiPath.IdentityServer.Web.Program.Main(String[] args)
 at UiPath.IdentityServer.Web.Program.<Main>(String[] args) 

原因

appsettings.Production.json ファイルの構成文字列に間違ったパスワードが含まれています。

解決策

1. appsettings.Production.json ファイルの接続文字列パスワードを修正します。

2. IIS で Orchestrator を再起動します。

500.30 ASP.NET Core app failed to start - System.InvalidOperationException: Signing credentails settings is invalid

Exception

Exception Info: System.AggregateException: One or more errors occurred. (Signing credentails settings is invalid.)
 ---> System.InvalidOperationException: Signing credentails settings is invalid.
   at UiPath.IdentityServer.Web.Extensions.Configuration.IdentityServerExtensions.AddSigningCredential(IIdentityServerBuilder builder, SigningCredentialSettings settings, IConfiguration configuration)
   at UiPath.IdentityServer.Web.Extensions.Configuration.IdentityServerExtensions.AddAndConfigureIdentityServer(IServiceCollection services, AppSettings appSettings, IConfiguration configuration)
   at UiPath.IdentityServer.Web.Startup.ConfigureServicesAsync(IServiceCollection services)
   --- 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 UiPath.IdentityServer.Web.Startup.ConfigureServices(IServiceCollection services)
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor, Boolean wrapExceptions)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at Microsoft.AspNetCore.Hosting.MethodInfoExtensions.InvokeWithoutWrappingExceptions(MethodInfo methodInfo, Object obj, Object[] parameters)
   at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.InvokeCore(Object instance, IServiceCollection services)
   at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.<>c__DisplayClass9_0.<Invoke>g__Startup|0(IServiceCollection serviceCollection)
   at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.Invoke(Object instance, IServiceCollection services)
   at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.<>c__DisplayClass8_0.<Build>b__0(IServiceCollection services)
   at Microsoft.AspNetCore.Hosting.StartupLoader.ConfigureServicesDelegateBuilder`1.<>c__DisplayClass14_0.<ConfigureServices>g__ConfigureServicesWithContainerConfiguration|0(IServiceCollection services)
   at Microsoft.AspNetCore.Hosting.ConventionBasedStartup.ConfigureServices(IServiceCollection services)
   at Microsoft.AspNetCore.Hosting.WebHost.EnsureApplicationServices()
   at Microsoft.AspNetCore.Hosting.WebHost.Initialize()
   at Microsoft.AspNetCore.Hosting.WebHostBuilder.Build()
   at UiPath.IdentityServer.Web.Program.Main(String[] args)
   at UiPath.IdentityServer.Web.Program.<Main>(String[] args)Exception Info: System.AggregateException: One or more errors occurred. (Signing credentails settings is invalid.)
 ---> System.InvalidOperationException: Signing credentails settings is invalid.
   at UiPath.IdentityServer.Web.Extensions.Configuration.IdentityServerExtensions.AddSigningCredential(IIdentityServerBuilder builder, SigningCredentialSettings settings, IConfiguration configuration)
   at UiPath.IdentityServer.Web.Extensions.Configuration.IdentityServerExtensions.AddAndConfigureIdentityServer(IServiceCollection services, AppSettings appSettings, IConfiguration configuration)
   at UiPath.IdentityServer.Web.Startup.ConfigureServicesAsync(IServiceCollection services)
   --- 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 UiPath.IdentityServer.Web.Startup.ConfigureServices(IServiceCollection services)
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor, Boolean wrapExceptions)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at Microsoft.AspNetCore.Hosting.MethodInfoExtensions.InvokeWithoutWrappingExceptions(MethodInfo methodInfo, Object obj, Object[] parameters)
   at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.InvokeCore(Object instance, IServiceCollection services)
   at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.<>c__DisplayClass9_0.<Invoke>g__Startup|0(IServiceCollection serviceCollection)
   at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.Invoke(Object instance, IServiceCollection services)
   at Microsoft.AspNetCore.Hosting.ConfigureServicesBuilder.<>c__DisplayClass8_0.<Build>b__0(IServiceCollection services)
   at Microsoft.AspNetCore.Hosting.StartupLoader.ConfigureServicesDelegateBuilder`1.<>c__DisplayClass14_0.<ConfigureServices>g__ConfigureServicesWithContainerConfiguration|0(IServiceCollection services)
   at Microsoft.AspNetCore.Hosting.ConventionBasedStartup.ConfigureServices(IServiceCollection services)
   at Microsoft.AspNetCore.Hosting.WebHost.EnsureApplicationServices()
   at Microsoft.AspNetCore.Hosting.WebHost.Initialize()
   at Microsoft.AspNetCore.Hosting.WebHostBuilder.Build()
   at UiPath.IdentityServer.Web.Program.Main(String[] args)
   at UiPath.IdentityServer.Web.Program.<Main>(String[] args)

原因

SigningCredentialSettings プロパティは appsettings.Production.json では設定されません。

OR

ASPNET_ENVIRONMENT 環境変数が Production 以外に設定されているため、appsettings.Production.json から設定の読み取りができません。

解決策

1. appsettings.Production.json ファイルに SigningCredentialSettings セクションが含まれていることを確認します。例:
"AppSettings": {
    [...]
    "SigningCredentialSettings": {
      "StoreLocation": {
        "Name": "0A38CB4B920B2FE107051C32EBE7BA898CCE0446",
        "Location": "LocalMachine",
        "NameType": "Thumbprint"
      }
    }  "AppSettings": {
    [...]
    "SigningCredentialSettings": {
      "StoreLocation": {
        "Name": "0A38CB4B920B2FE107051C32EBE7BA898CCE0446",
        "Location": "LocalMachine",
        "NameType": "Thumbprint"
      }
    }

2. 管理者特権のコマンド ライン インターフェイスから次のコマンドを実行します。

setx ASPNETCORE_ENVIRONMENT Productionsetx ASPNETCORE_ENVIRONMENT Production

3. IIS で Orchestrator を再起動します。

500.30 ASP.NET Core app failed to start - System.IO.FileNotFoundException: Could not load file or assembly 'System.Threading.Tasks'

Exception

Exception Info: 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`1..ctor()
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.InitializeTaskAsPromise()
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetException(Exception exception)
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.SetException(Exception exception)
   at UiPath.IdentityServer.Web.Program.Main(String[] args)
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
   at UiPath.IdentityServer.Web.Program.Main(String[] args)
   at UiPath.IdentityServer.Web.Program.<Main>(String[] args)Exception Info: 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`1..ctor()
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.InitializeTaskAsPromise()
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.SetException(Exception exception)
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.SetException(Exception exception)
   at UiPath.IdentityServer.Web.Program.Main(String[] args)
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
   at UiPath.IdentityServer.Web.Program.Main(String[] args)
   at UiPath.IdentityServer.Web.Program.<Main>(String[] args)

原因

この問題は、アプリケーション パフォーマンス モニタリング (APM) を担当する Dynatrace エージェントが原因で発生します。

解決策

最新のスタンドアロン バージョンまたはサポート対象の最小バージョンにアップグレードします。詳しくは、「プロダクト ライフサイクル」をご覧ください。

OR

AppInsights、Dynatrace、NewRelic、DataDog を無効化します。

500.30 ASP.NET Core app failed to start - System.TypeInitializationException: The system cannot find the file specified. File name: 'System.Runtime'

Exception

Application: w3wp.exe CoreCLR Version: 5.0.1221.52207 .NET Version: 5.0.12 
Description: The process was terminated due to an unhandled exception. 
Exception Info: System.TypeInitializationException: The type initializer for '<Module>' threw an exception. 
---> System.IO.FileNotFoundException: Could not load file or assembly 'System.Runtime, Version=4.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. 
The system cannot find the file specified. File name: 'System.Runtime, Version=4.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' at .cctor() --- End of inner exception stack trace ---</Application: w3wp.exe CoreCLR Version: 5.0.1221.52207 .NET Version: 5.0.12 
Description: The process was terminated due to an unhandled exception. 
Exception Info: System.TypeInitializationException: The type initializer for '<Module>' threw an exception. 
---> System.IO.FileNotFoundException: Could not load file or assembly 'System.Runtime, Version=4.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. 
The system cannot find the file specified. File name: 'System.Runtime, Version=4.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' at .cctor() --- End of inner exception stack trace ---</

原因

この問題は、Dynatrace OneAgent for Application Performance Monitoring (APM) が原因で発生します。

解決策

最新のスタンドアロン バージョンまたはサポート対象の最小バージョンにアップグレードします。詳しくは、「プロダクト ライフサイクル」をご覧ください。

OR

AppInsights、Dynatrace、NewRelic、DataDog を無効化します。

500.30 ASP.NET Core app failed to start - FileNotFoundException*Could not load file or assembly 'System.Text.Encoding'

Exception

2022-03-24 14:55:22.7046 Microsoft.AspNetCore.Server.IIS.Core.IISHttpServer Connection ID "17582052951159996422", Request ID "80000007-0001-f400-b63f-84710c7967bb": An unhandled exception was thrown by the application. FileNotFoundException*Could not load file or assembly 'System.Text.Encoding, Version=4.0.10.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The system cannot find the file specified.*
 at  Dynatrace.OneAgent.Introspection.NewAspNetCoreTracingMiddleware.CreateIHttpContext(HttpContext context)
 at  Dynatrace.OneAgent.Introspection.Shared.NewAspNetCoreTracingMiddlewareBase`1.Invoke(Context context)
 at  Microsoft.AspNetCore.Server.IIS.Core.IISHttpContextOfT`1.ProcessRequestAsync()2022-03-24 14:55:22.7046 Microsoft.AspNetCore.Server.IIS.Core.IISHttpServer Connection ID "17582052951159996422", Request ID "80000007-0001-f400-b63f-84710c7967bb": An unhandled exception was thrown by the application. FileNotFoundException*Could not load file or assembly 'System.Text.Encoding, Version=4.0.10.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The system cannot find the file specified.*
 at  Dynatrace.OneAgent.Introspection.NewAspNetCoreTracingMiddleware.CreateIHttpContext(HttpContext context)
 at  Dynatrace.OneAgent.Introspection.Shared.NewAspNetCoreTracingMiddlewareBase`1.Invoke(Context context)
 at  Microsoft.AspNetCore.Server.IIS.Core.IISHttpContextOfT`1.ProcessRequestAsync()

原因

この問題は、アプリケーション パフォーマンス モニタリング (APM) を担当する Dynatrace エージェントが原因で発生します。

解決策

最新のスタンドアロン バージョンまたはサポート対象の最小バージョンにアップグレードします。詳しくは、「プロダクト ライフサイクル」をご覧ください。

OR

AppInsights、Dynatrace、NewRelic、DataDog を無効化します。

500.30 ASP.NET Core app failed to start - SqlException (0x80131904): Connection Timeout Expired. The timeout period elapsed while attempting to consume the pre-login handshake acknowledgement

Exception

Application: w3wp.exe CoreCLR Version: 6.0.922.41905 .NET Version: 6.0.9 Description: The process was terminated due to an unhandled exception. Exception Info: System.Data.Entity.Core.EntityException: The underlying provider failed on Open. ---> Microsoft.Data.SqlClient.SqlException (0x80131904): Connection Timeout Expired. The timeout period elapsed while attempting to consume the pre-login handshake acknowledgement. This could be because the pre-login handshake failed or the server was unable to respond back in time. The duration spent while attempting to connect to this server was - [Pre-Login] initialization=21041; handshake=0; ---> System.ComponentModel.Win32Exception (258): The wait operation timed out. at bool Microsoft.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, uint waitForMultipleObjectsTimeout, bool allowCreate, bool onlyOneCheckConnection, DbConnectionOptions userOptions, out DbConnectionInternal connection) at void Microsoft.Data.ProviderBase.DbConnectionPool.WaitForPendingOpen() at void System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy+<>c__DisplayClass4_0+<<ExecuteAsync>b__0>d.MoveNext() in /_/src/ErikEJ.EntityFramework.SqlServer/DefaultSqlExecutionStrategy.cs:line 67 at async Task<TResult> System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.ExecuteAsyncImplementation<TResult>(Func<Task<TResult>> func) in /_/src/ErikEJ.EntityFramework.SqlServer/DefaultSqlExecutionStrategy.cs:line 85
 at void System.Data.Entity.Utilities.TaskExtensions+CultureAwaiter.GetResult()
 at async Task System.Data.Entity.Core.EntityClient.EntityConnection.OpenAsync(CancellationToken cancellationToken) ClientConnectionId:7adb755f-b116-4a08-8835-589603d1e3e6 Error Number:-2,State:0,Class:11 --- End of inner exception stack trace ---
 at System.Data.Entity.Core.EntityClient.EntityConnection.OpenAsync(CancellationToken cancellationToken)
 at System.Data.Entity.Utilities.TaskExtensions.CultureAwaiter.GetResult()
 at System.Data.Entity.Core.Objects.ObjectContext.EnsureConnectionAsync(Boolean shouldMonitorTransactions, CancellationToken cancellationToken)
 at System.Data.Entity.Utilities.TaskExtensions.CultureAwaiter.GetResult()
 at System.Data.Entity.Core.Objects.ObjectContext.ExecuteInTransactionAsync[T](Func`1 func, IDbExecutionStrategy executionStrategy, Boolean startLocalTransaction, Boolean releaseConnectionOnSuccess, CancellationToken cancellationToken)
 at System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.ExecuteAsyncImplementation[TResult](Func`1 func) in /_/src/ErikEJ.EntityFramework.SqlServer/DefaultSqlExecutionStrategy.cs:line 85
 at System.Data.Entity.Utilities.TaskExtensions.CultureAwaiter`1.GetResult()
 at System.Data.Entity.Core.Objects.ObjectContext.ExecuteStoreQueryReliablyAsync[TElement](String commandText, String entitySetName, ExecutionOptions executionOptions, CancellationToken cancellationToken, IDbExecutionStrategy executionStrategy, Object[] parameters)
 at System.Data.Entity.Utilities.TaskExtensions.CultureAwaiter`1.GetResult()
 at System.Data.Entity.Internal.LazyAsyncEnumerator`1.FirstMoveNextAsync(CancellationToken cancellationToken)
 at System.Data.Entity.Utilities.TaskExtensions.CultureAwaiter`1.GetResult()
 at System.Data.Entity.Infrastructure.IDbAsyncEnumerableExtensions.SingleAsync[TSource](IDbAsyncEnumerable`1 source, CancellationToken cancellationToken)
 at UiPath.Orchestrator.DataAccess.Common.Abstractions.BaseDatabaseCommands`1.LockTransactionAsync(String resource, Nullable`1 lockTimeout)
 at UiPath.Orchestrator.UpdateServer.Domain.Managers.SystemSchedulesManager.AddOrUpdateScheduleAsync[THandler,TArgs](String name, String cronExpression)
 at UiPath.Orchestrator.UpdateServer.Domain.Managers.SystemSchedulesManager.InitializeSystemSchedulesAsync()
 at Nito.AsyncEx.Synchronous.TaskExtensions.WaitAndUnwrapException(Task task)
 at Nito.AsyncEx.AsyncContext.<>c__DisplayClass15_0.<Run>b__0(Task t)
 at System.Threading.Tasks.ContinuationTaskFromTask.InnerInvoke()
 at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) --- End of stack trace from previous location ---
 at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) --- End of stack trace from previous location ---
 at Nito.AsyncEx.Synchronous.TaskExtensions.WaitAndUnwrapException(Task task)
 at Nito.AsyncEx.AsyncContext.Run(Func`1 action)
 at Abp.Threading.AsyncHelper.RunSync(Func`1 action)
 at UiPath.Orchestrator.UpdateServer.UpdateServerModule.PostInitialize()
 at Abp.Modules.AbpModuleManager.<>c.<StartModules>b__15_2(AbpModuleInfo module)
 at System.Collections.Generic.List`1.ForEach(Action`1 action)
 at Abp.Modules.AbpModuleManager.StartModules()
 at Abp.AbpBootstrapper.Initialize()
 at Abp.AspNetCore.AbpApplicationBuilderExtensions.InitializeAbp(IApplicationBuilder app)
 at Abp.AspNetCore.AbpApplicationBuilderExtensions.UseAbp(IApplicationBuilder app)
 at UiPath.Orchestrator.Startup.Startup.Configure(IApplicationBuilder app, IApiVersionDescriptionProvider apiVersionProvider, VersionedODataModelBuilder modelBuilder, IServiceProvider serviceProvider)
 at System.RuntimeMethodHandle.InvokeMethod(Object target, Span`1& arguments, Signature sig, Boolean constructor, Boolean wrapExceptions)
 at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
 at Microsoft.AspNetCore.Hosting.ConfigureBuilder.Invoke(Object instance, IApplicationBuilder builder)
 at Microsoft.AspNetCore.Hosting.ConfigureBuilder.<>c__DisplayClass4_0.<Build>b__0(IApplicationBuilder builder)
 at Microsoft.AspNetCore.Hosting.ConventionBasedStartup.Configure(IApplicationBuilder app)
 at Microsoft.Extensions.DependencyInjection.AutoRegisterMiddleware.<>c__DisplayClass4_0.<Configure>b__0(IApplicationBuilder app)
 at Microsoft.AspNetCore.Mvc.Filters.MiddlewareFilterBuilderStartupFilter.<>c__DisplayClass0_0.<Configure>g__MiddlewareFilterBuilder|0(IApplicationBuilder builder)
 at Microsoft.ApplicationInsights.AspNetCore.ApplicationInsightsStartupFilter.<>c__DisplayClass2_0.<Configure>b__0(IApplicationBuilder app)
 at Microsoft.AspNetCore.Server.IIS.Core.IISServerSetupFilter.<>c__DisplayClass2_0.<Configure>b__0(IApplicationBuilder app)
 at Microsoft.AspNetCore.Server.IIS.Core.IISServerSetupFilter.<>c__DisplayClass2_0.<Configure>b__0(IApplicationBuilder app)
 at Microsoft.AspNetCore.HostFilteringStartupFilter.<>c__DisplayClass0_0.<Configure>b__0(IApplicationBuilder app)
 at Microsoft.AspNetCore.Hosting.WebHost.BuildApplication()
 at Microsoft.AspNetCore.Hosting.WebHost.StartAsync(CancellationToken cancellationToken)
 at Microsoft.AspNetCore.Hosting.WebHostExtensions.RunAsync(IWebHost host, CancellationToken token, String startupMessage)
 at Microsoft.AspNetCore.Hosting.WebHostExtensions.RunAsync(IWebHost host, CancellationToken token, String startupMessage)
 at Microsoft.AspNetCore.Hosting.WebHostExtensions.RunAsync(IWebHost host, CancellationToken token)
 at UiPath.Orchestrator.Startup.Program.Main(String[] args)
 at UiPath.Orchestrator.Startup.Program.<Main>(String[] args)Application: w3wp.exe CoreCLR Version: 6.0.922.41905 .NET Version: 6.0.9 Description: The process was terminated due to an unhandled exception. Exception Info: System.Data.Entity.Core.EntityException: The underlying provider failed on Open. ---> Microsoft.Data.SqlClient.SqlException (0x80131904): Connection Timeout Expired. The timeout period elapsed while attempting to consume the pre-login handshake acknowledgement. This could be because the pre-login handshake failed or the server was unable to respond back in time. The duration spent while attempting to connect to this server was - [Pre-Login] initialization=21041; handshake=0; ---> System.ComponentModel.Win32Exception (258): The wait operation timed out. at bool Microsoft.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, uint waitForMultipleObjectsTimeout, bool allowCreate, bool onlyOneCheckConnection, DbConnectionOptions userOptions, out DbConnectionInternal connection) at void Microsoft.Data.ProviderBase.DbConnectionPool.WaitForPendingOpen() at void System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy+<>c__DisplayClass4_0+<<ExecuteAsync>b__0>d.MoveNext() in /_/src/ErikEJ.EntityFramework.SqlServer/DefaultSqlExecutionStrategy.cs:line 67 at async Task<TResult> System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.ExecuteAsyncImplementation<TResult>(Func<Task<TResult>> func) in /_/src/ErikEJ.EntityFramework.SqlServer/DefaultSqlExecutionStrategy.cs:line 85
 at void System.Data.Entity.Utilities.TaskExtensions+CultureAwaiter.GetResult()
 at async Task System.Data.Entity.Core.EntityClient.EntityConnection.OpenAsync(CancellationToken cancellationToken) ClientConnectionId:7adb755f-b116-4a08-8835-589603d1e3e6 Error Number:-2,State:0,Class:11 --- End of inner exception stack trace ---
 at System.Data.Entity.Core.EntityClient.EntityConnection.OpenAsync(CancellationToken cancellationToken)
 at System.Data.Entity.Utilities.TaskExtensions.CultureAwaiter.GetResult()
 at System.Data.Entity.Core.Objects.ObjectContext.EnsureConnectionAsync(Boolean shouldMonitorTransactions, CancellationToken cancellationToken)
 at System.Data.Entity.Utilities.TaskExtensions.CultureAwaiter.GetResult()
 at System.Data.Entity.Core.Objects.ObjectContext.ExecuteInTransactionAsync[T](Func`1 func, IDbExecutionStrategy executionStrategy, Boolean startLocalTransaction, Boolean releaseConnectionOnSuccess, CancellationToken cancellationToken)
 at System.Data.Entity.SqlServer.DefaultSqlExecutionStrategy.ExecuteAsyncImplementation[TResult](Func`1 func) in /_/src/ErikEJ.EntityFramework.SqlServer/DefaultSqlExecutionStrategy.cs:line 85
 at System.Data.Entity.Utilities.TaskExtensions.CultureAwaiter`1.GetResult()
 at System.Data.Entity.Core.Objects.ObjectContext.ExecuteStoreQueryReliablyAsync[TElement](String commandText, String entitySetName, ExecutionOptions executionOptions, CancellationToken cancellationToken, IDbExecutionStrategy executionStrategy, Object[] parameters)
 at System.Data.Entity.Utilities.TaskExtensions.CultureAwaiter`1.GetResult()
 at System.Data.Entity.Internal.LazyAsyncEnumerator`1.FirstMoveNextAsync(CancellationToken cancellationToken)
 at System.Data.Entity.Utilities.TaskExtensions.CultureAwaiter`1.GetResult()
 at System.Data.Entity.Infrastructure.IDbAsyncEnumerableExtensions.SingleAsync[TSource](IDbAsyncEnumerable`1 source, CancellationToken cancellationToken)
 at UiPath.Orchestrator.DataAccess.Common.Abstractions.BaseDatabaseCommands`1.LockTransactionAsync(String resource, Nullable`1 lockTimeout)
 at UiPath.Orchestrator.UpdateServer.Domain.Managers.SystemSchedulesManager.AddOrUpdateScheduleAsync[THandler,TArgs](String name, String cronExpression)
 at UiPath.Orchestrator.UpdateServer.Domain.Managers.SystemSchedulesManager.InitializeSystemSchedulesAsync()
 at Nito.AsyncEx.Synchronous.TaskExtensions.WaitAndUnwrapException(Task task)
 at Nito.AsyncEx.AsyncContext.<>c__DisplayClass15_0.<Run>b__0(Task t)
 at System.Threading.Tasks.ContinuationTaskFromTask.InnerInvoke()
 at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) --- End of stack trace from previous location ---
 at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread) --- End of stack trace from previous location ---
 at Nito.AsyncEx.Synchronous.TaskExtensions.WaitAndUnwrapException(Task task)
 at Nito.AsyncEx.AsyncContext.Run(Func`1 action)
 at Abp.Threading.AsyncHelper.RunSync(Func`1 action)
 at UiPath.Orchestrator.UpdateServer.UpdateServerModule.PostInitialize()
 at Abp.Modules.AbpModuleManager.<>c.<StartModules>b__15_2(AbpModuleInfo module)
 at System.Collections.Generic.List`1.ForEach(Action`1 action)
 at Abp.Modules.AbpModuleManager.StartModules()
 at Abp.AbpBootstrapper.Initialize()
 at Abp.AspNetCore.AbpApplicationBuilderExtensions.InitializeAbp(IApplicationBuilder app)
 at Abp.AspNetCore.AbpApplicationBuilderExtensions.UseAbp(IApplicationBuilder app)
 at UiPath.Orchestrator.Startup.Startup.Configure(IApplicationBuilder app, IApiVersionDescriptionProvider apiVersionProvider, VersionedODataModelBuilder modelBuilder, IServiceProvider serviceProvider)
 at System.RuntimeMethodHandle.InvokeMethod(Object target, Span`1& arguments, Signature sig, Boolean constructor, Boolean wrapExceptions)
 at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
 at Microsoft.AspNetCore.Hosting.ConfigureBuilder.Invoke(Object instance, IApplicationBuilder builder)
 at Microsoft.AspNetCore.Hosting.ConfigureBuilder.<>c__DisplayClass4_0.<Build>b__0(IApplicationBuilder builder)
 at Microsoft.AspNetCore.Hosting.ConventionBasedStartup.Configure(IApplicationBuilder app)
 at Microsoft.Extensions.DependencyInjection.AutoRegisterMiddleware.<>c__DisplayClass4_0.<Configure>b__0(IApplicationBuilder app)
 at Microsoft.AspNetCore.Mvc.Filters.MiddlewareFilterBuilderStartupFilter.<>c__DisplayClass0_0.<Configure>g__MiddlewareFilterBuilder|0(IApplicationBuilder builder)
 at Microsoft.ApplicationInsights.AspNetCore.ApplicationInsightsStartupFilter.<>c__DisplayClass2_0.<Configure>b__0(IApplicationBuilder app)
 at Microsoft.AspNetCore.Server.IIS.Core.IISServerSetupFilter.<>c__DisplayClass2_0.<Configure>b__0(IApplicationBuilder app)
 at Microsoft.AspNetCore.Server.IIS.Core.IISServerSetupFilter.<>c__DisplayClass2_0.<Configure>b__0(IApplicationBuilder app)
 at Microsoft.AspNetCore.HostFilteringStartupFilter.<>c__DisplayClass0_0.<Configure>b__0(IApplicationBuilder app)
 at Microsoft.AspNetCore.Hosting.WebHost.BuildApplication()
 at Microsoft.AspNetCore.Hosting.WebHost.StartAsync(CancellationToken cancellationToken)
 at Microsoft.AspNetCore.Hosting.WebHostExtensions.RunAsync(IWebHost host, CancellationToken token, String startupMessage)
 at Microsoft.AspNetCore.Hosting.WebHostExtensions.RunAsync(IWebHost host, CancellationToken token, String startupMessage)
 at Microsoft.AspNetCore.Hosting.WebHostExtensions.RunAsync(IWebHost host, CancellationToken token)
 at UiPath.Orchestrator.Startup.Program.Main(String[] args)
 at UiPath.Orchestrator.Startup.Program.<Main>(String[] args) 

原因

更新サーバーの接続文字列の MultiSubnetFailover パラメーターが true に設定されていません。

解決策

1. すべての接続文字列を修正して、MultiSubnetFailover パラメーターが true に設定されるようにします。

2. IIS で Orchestrator を再起動します。

500.30 ASP.NET Core app failed to start - Managed server didn't initialize after X ms

Exception

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 コミュニティ フォーラム
Uipath Logo White
信頼とセキュリティ
© 2005-2024 UiPath. All rights reserved.