Hosting environment: Production Content root path: . Now listening on: http://[::]:3000 Application started. Press Ctrl+C to shut down. fail: Microsoft.AspNetCore.Server.Kestrel[13] Connection id "0HM0URSJF2VM8", Request id "0HM0URSJF2VM8:00000002": An unhandled exception was thrown by the application. System.ArgumentException: Destination array was not long enough. Check the destination index, length, and the array's lower bounds. (Parameter 'destinationArray') at System.Array.Copy(Array sourceArray, Int32 sourceIndex, Array destinationArray, Int32 destinationIndex, Int32 length, Boolean reliable) at System.Collections.Generic.EnumerableHelpers.ToArray[T](IEnumerable`1 source) at TgNewsLib.Services.Indexing.CategoryLanguageIndexContainer.Save(Stream indexStream, Stream valuesStream) in D:\ML\tgcontest2\TgNewsLib\Services\Indexing\CategoryLanguageIndexContainer.cs:line 78 at TgNewsLib.Services.Indexing.DatabaseCategoryLanguageIndexProvider.Save(CategoryLanguageIndexContainer container) in D:\ML\tgcontest2\TgNewsLib\Services\Indexing\DatabaseCategoryLanguageIndexProvider.cs:line 89 at TgNewsLib.Services.Indexing.CategoryLanguageIndex.AddValue(String category, String language, Single[] features) in D:\ML\tgcontest2\TgNewsLib\Services\Indexing\CategoryLanguageIndex.cs:line 38 at TgNewsLib.Services.IndexArticleService.CreateAsync(Stream stream, Int64 contentLength, String articleName, TimeSpan ttl) in D:\ML\tgcontest2\TgNewsLib\Services\IndexArticleService.cs:line 107 at TgNewsApp.Controllers.ArticleController.Put(String articleName, CancellationToken cancellationToken) in D:\ML\tgcontest2\TgNewsApp\Controllers\ArticleController.cs:line 58 at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.TaskOfIActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync() --- End of stack trace from previous location --- at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|19_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope) at Microsoft.AspNetCore.Routing.EndpointMiddleware.g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger) at Microsoft.AspNetCore.Builder.Extensions.MapWhenMiddleware.Invoke(HttpContext context) at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpProtocol.ProcessRequests[TContext](IHttpApplication`1 application) Application is shutting down...