System.AggregateException while upgrading plugin to 4.50

7 mesi tempo fa
Hi,
I'm having below error while upgrading plugin to 4.50.

System.AggregateException: One or more errors occurred. (Execution Timeout Expired.  The timeout period elapsed prior to completion of the operation or the server is not responding.
Operation cancelled by user.
The statement has been terminated.)
---> Microsoft.Data.SqlClient.SqlException (0x80131904): Execution Timeout Expired.  The timeout period elapsed prior to completion of the operation or the server is not responding.
Operation cancelled by user.
The statement has been terminated.
---> System.ComponentModel.Win32Exception (258): The wait operation timed out.
   at Microsoft.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
   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.SqlBulkCopy.RunParser(BulkCopySimpleResultSet bulkCopyHandler)
   at Microsoft.Data.SqlClient.SqlBulkCopy.CopyBatchesAsyncContinuedOnSuccess(BulkCopySimpleResultSet internalResults, String updateBulkCommandText, CancellationToken cts, TaskCompletionSource`1 source)
--- End of stack trace from previous location ---
   at LinqToDB.DataProvider.SqlServer.SqlServerBulkCopy.<>c__DisplayClass10_1`1.<<ProviderSpecificCopyInternalAsync>b__3>d.MoveNext()
--- End of stack trace from previous location ---
   at LinqToDB.DataProvider.BasicBulkCopy.TraceActionAsync(DataConnection dataConnection, Func`1 commandText, Func`1 action)
   at LinqToDB.DataProvider.SqlServer.SqlServerBulkCopy.ProviderSpecificCopyInternalAsync[T](ProviderConnections providerConnections, ITable`1 table, BulkCopyOptions options, Func`2 createDataReader, CancellationToken cancellationToken)
   at Nop.Data.DataProviders.BaseDataProvider.BulkInsertEntitiesAsync[TEntity](IEnumerable`1 entities) in F:\Work\Projects_Github\Nop450\Libraries\Nop.Data\DataProviders\BaseDataProvider.cs:line 385
   at Nop.Data.EntityRepository`1.InsertAsync(IList`1 entities, Boolean publishEvent) in F:\Work\Projects_Github\Nop450\Libraries\Nop.Data\EntityRepository.cs:line 364
   at Nop.Services.Localization.LocalizationService.AddOrUpdateLocaleResourceAsync(IDictionary`2 resources, Nullable`1 languageId) in F:\Work\Projects_Github\Nop450\Libraries\Nop.Services\Localization\LocalizationService.cs:line 752
ClientConnectionId:9ef38ae0-5892-48df-9a49-86b597f9daba
Error Number:-2,State:0,Class:11
   --- 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 Nop.Web.Framework.Migrations.UpgradeTo450.LocalizationMigration.Up() in F:\Work\Projects_Github\Nop450\Presentation\Nop.Web.Framework\Migrations\UpgradeTo450\LocalizationMigration.cs:line 44
   at FluentMigrator.MigrationBase.GetUpExpressions(IMigrationContext context)
   at FluentMigrator.Runner.MigrationRunner.<>c.<ApplyMigrationUp>b__69_0(IMigration m, IMigrationContext c)
   at FluentMigrator.Runner.MigrationRunner.ExecuteMigration(IMigration migration, Action`2 getExpressions)
   at FluentMigrator.Runner.MigrationRunner.ApplyMigrationUp(IMigrationInfo migrationInfo, Boolean useTransaction)
   at FluentMigrator.Runner.MigrationRunner.Up(IMigration migration)
   at Nop.Data.Migrations.MigrationManager.ApplyUpMigrations(Assembly assembly, MigrationProcessType migrationProcessType) in F:\Work\Projects_Github\Nop450\Libraries\Nop.Data\Migrations\MigrationManager.cs:line 92
   at Nop.Web.Framework.Infrastructure.Extensions.ApplicationBuilderExtensions.StartEngine(IApplicationBuilder application) in F:\Work\Projects_Github\Nop450\Presentation\Nop.Web.Framework\Infrastructure\Extensions\ApplicationBuilderExtensions.cs:line 71
   at Program.<Main>$(String[] args) in F:\Work\Projects_Github\Nop450\Presentation\Nop.Web\Program.cs:line 20


Anyone faces this error while upgrading to 4.50?
7 mesi tempo fa
there may a recursive call at you query.
https://stackoverflow.com/questions/8602395/timeout-expired-the-timeout-period-elapsed-prior-to-completion-of-the-operation
you can try after increasing connection timeout time from db  connection string
you could append ;Connection Timeout=30