2024-02-20 08:37:20.9590 E:1 Program ============================================ 2024-02-20 08:37:21.0549 E:1 Program === Сервер запущен 2024-02-20 08:37:21.0549 E:1 Program ============================================ 2024-02-20 10:05:45.2093 E:10 Lers.Administration.Maintenance.Request.BackupDatabaseRequestProcessor Невозможно проверить резервную копию, так как у пользователя, под которым запущен сервер ЛЭРС УЧЁТ, отсутствуют необходимые разрешения. Если вам нужна возможность проверить резервную копию, выдайте пользователю сервера нужные разрешения. Инструкция доступна по ссылке: https://docs.lers.ru/uid/ServerCreateDb CREATE DATABASE permission denied in database 'master'. VERIFY DATABASE is terminating abnormally. 2024-02-20 10:07:35.1056 E:39 Lers.Administration.Maintenance.Request.BackupDatabaseRequestProcessor Невозможно проверить резервную копию, так как у пользователя, под которым запущен сервер ЛЭРС УЧЁТ, отсутствуют необходимые разрешения. Если вам нужна возможность проверить резервную копию, выдайте пользователю сервера нужные разрешения. Инструкция доступна по ссылке: https://docs.lers.ru/uid/ServerCreateDb CREATE DATABASE permission denied in database 'master'. VERIFY DATABASE is terminating abnormally. 2024-02-20 10:51:48.4205 E:1 Program ============================================ 2024-02-20 10:51:48.5608 E:1 Program === Сервер запущен 2024-02-20 10:51:48.5608 E:1 Program ============================================ 2024-02-20 10:52:52.8647 E:17 Lers.Administration.Maintenance.Request.BackupDatabaseRequestProcessor Невозможно проверить резервную копию, так как у пользователя, под которым запущен сервер ЛЭРС УЧЁТ, отсутствуют необходимые разрешения. Если вам нужна возможность проверить резервную копию, выдайте пользователю сервера нужные разрешения. Инструкция доступна по ссылке: https://docs.lers.ru/uid/ServerCreateDb CREATE DATABASE permission denied in database 'master'. VERIFY DATABASE is terminating abnormally. 2024-02-20 11:00:38.8808 E:32 Lers.Administration.Maintenance.Request.BackupDatabaseRequestProcessor Невозможно проверить резервную копию, так как у пользователя, под которым запущен сервер ЛЭРС УЧЁТ, отсутствуют необходимые разрешения. Если вам нужна возможность проверить резервную копию, выдайте пользователю сервера нужные разрешения. Инструкция доступна по ссылке: https://docs.lers.ru/uid/ServerCreateDb CREATE DATABASE permission denied in database 'master'. VERIFY DATABASE is terminating abnormally. 2024-02-20 11:09:46.6226 E:23 Lers.Administration.Maintenance.Request.BackupDatabaseRequestProcessor Невозможно проверить резервную копию, так как у пользователя, под которым запущен сервер ЛЭРС УЧЁТ, отсутствуют необходимые разрешения. Если вам нужна возможность проверить резервную копию, выдайте пользователю сервера нужные разрешения. Инструкция доступна по ссылке: https://docs.lers.ru/uid/ServerCreateDb CREATE DATABASE permission denied in database 'master'. VERIFY DATABASE is terminating abnormally. 2024-02-20 11:25:35.1294 E:1 Program ============================================ 2024-02-20 11:25:35.1294 E:1 Program === Сервер запущен 2024-02-20 11:25:35.1294 E:1 Program ============================================ 2024-02-20 11:27:12.4667 E:21 Microsoft.EntityFrameworkCore.Database.Command Failed executing DbCommand (10ms) [Parameters=[], CommandType='Text', CommandTimeout='0'] RESTORE VERIFYONLY FROM DISK = 'LERS_20240220112652_3.55.3.15.bak' 2024-02-20 11:27:12.4667 E:21 Lers.Administration.Maintenance.Request.BackupDatabaseRequestProcessor Невозможно проверить резервную копию, так как у пользователя, под которым запущен сервер ЛЭРС УЧЁТ, отсутствуют необходимые разрешения. Если вам нужна возможность проверить резервную копию, выдайте пользователю сервера нужные разрешения. Инструкция доступна по ссылке: https://docs.lers.ru/uid/ServerCreateDb CREATE DATABASE permission denied in database 'master'. VERIFY DATABASE is terminating abnormally. 2024-02-20 11:35:03.6596 E:33 Microsoft.EntityFrameworkCore.Database.Connection An error occurred using the connection to database 'LERS' on server '(local)\LERS'. 2024-02-20 11:35:03.6596 E:28 Microsoft.EntityFrameworkCore.Database.Connection An error occurred using the connection to database 'LERS' on server '(local)\LERS'. 2024-02-20 11:35:03.6596 E:7 Microsoft.EntityFrameworkCore.Database.Connection An error occurred using the connection to database 'LERS' on server '(local)\LERS'. 2024-02-20 11:35:05.1446 F:28 Lers.ExceptionHandler Ошибка сохранения данных для сеанса опроса 410359. При обращении к базе данных произошла ошибка: Ошибка входа пользователя "LersUchetAccount". Проверьте соединение сервера ЛЭРС УЧЕТ с SQL-сервером. 2024-02-20 11:35:04.9463 F:7 Lers.ExceptionHandler Ошибка записи сообщений в журнал службы опроса При обращении к базе данных произошла ошибка: Ошибка входа пользователя "LersUchetAccount". Проверьте соединение сервера ЛЭРС УЧЕТ с SQL-сервером. 2024-02-20 11:35:04.9463 F:33 Lers.ExceptionHandler Ошибка записи сообщений в журнал службы опроса При обращении к базе данных произошла ошибка: Ошибка входа пользователя "LersUchetAccount". Проверьте соединение сервера ЛЭРС УЧЕТ с SQL-сервером. 2024-02-20 11:35:05.1446 E:11 Microsoft.EntityFrameworkCore.Database.Connection An error occurred using the connection to database 'LERS' on server '(local)\LERS'. 00-62150f26e412054b8915ea06d0060780-d044cfb5fb89f1ba-00 2024-02-20 11:35:05.2338 E:11 Microsoft.EntityFrameworkCore.Query An exception occurred while iterating over the results of a query for context type 'Lers.Dal.LersDbContext'. Microsoft.Data.SqlClient.SqlException (0x80131904): Ошибка входа пользователя "LersUchetAccount". 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.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry, SqlConnectionOverrides overrides) at Microsoft.Data.SqlClient.SqlConnection.Open(SqlConnectionOverrides overrides) at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.OpenInternal(Boolean errorsExpected) at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.Open(Boolean errorsExpected) at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReader(RelationalCommandParameterObject parameterObject) at Microsoft.EntityFrameworkCore.Query.Internal.SingleQueryingEnumerable`1.Enumerator.InitializeReader(Enumerator enumerator) at Microsoft.EntityFrameworkCore.Storage.ExecutionStrategy.<>c__DisplayClass28_0`2.b__0(DbContext context, TState state) at Microsoft.EntityFrameworkCore.Storage.ExecutionStrategy.ExecuteImplementation[TState,TResult](Func`3 operation, Func`3 verifySucceeded, TState state) at Microsoft.EntityFrameworkCore.Storage.ExecutionStrategy.Execute[TState,TResult](TState state, Func`3 operation, Func`3 verifySucceeded) at Microsoft.EntityFrameworkCore.Query.Internal.SingleQueryingEnumerable`1.Enumerator.MoveNext() ClientConnectionId:85398473-02da-48da-a5c7-4e1e6ccf9daa Error Number:18456,State:1,Class:14 1. [Core Microsoft SqlClient Data Provider] Microsoft.Data.SqlClient.SqlException: Ошибка входа пользователя "LersUchetAccount". Стек вызовов: 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.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry, SqlConnectionOverrides overrides) at Microsoft.Data.SqlClient.SqlConnection.Open(SqlConnectionOverrides overrides) at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.OpenInternal(Boolean errorsExpected) at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.Open(Boolean errorsExpected) at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReader(RelationalCommandParameterObject parameterObject) at Microsoft.EntityFrameworkCore.Query.Internal.SingleQueryingEnumerable`1.Enumerator.InitializeReader(Enumerator enumerator) at Microsoft.EntityFrameworkCore.Storage.ExecutionStrategy.<>c__DisplayClass28_0`2.b__0(DbContext context, TState state) at Microsoft.EntityFrameworkCore.Storage.ExecutionStrategy.ExecuteImplementation[TState,TResult](Func`3 operation, Func`3 verifySucceeded, TState state) at Microsoft.EntityFrameworkCore.Storage.ExecutionStrategy.Execute[TState,TResult](TState state, Func`3 operation, Func`3 verifySucceeded) at Microsoft.EntityFrameworkCore.Query.Internal.SingleQueryingEnumerable`1.Enumerator.MoveNext() HResult:-2146232060 Дополнительная информация (Data): HelpLink.ProdName=Microsoft SQL Server HelpLink.EvtSrc=MSSQLServer HelpLink.EvtID=18456 HelpLink.BaseHelpUrl=https://go.microsoft.com/fwlink HelpLink.LinkId=20476 Дополнительная информация из ExternalException: HRESULT=0x80131904 Дополнительная информация из SqlException: Message=Ошибка входа пользователя "LersUchetAccount". Class=14 Number=18456 State=1 Server=(local)\LERS Procedure= LineNumber=1 Source=Core Microsoft SqlClient Data Provider -------------------------------------------------------------------------------------- 00-62150f26e412054b8915ea06d0060780-d044cfb5fb89f1ba-00 2024-02-20 11:35:05.2338 E:11 Microsoft.AspNetCore.SignalR.HubConnectionHandler Error when dispatching 'OnDisconnectedAsync' on hub. 1. [Core Microsoft SqlClient Data Provider] Microsoft.Data.SqlClient.SqlException: Ошибка входа пользователя "LersUchetAccount". Стек вызовов: 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.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry, SqlConnectionOverrides overrides) at Microsoft.Data.SqlClient.SqlConnection.Open(SqlConnectionOverrides overrides) at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.OpenInternal(Boolean errorsExpected) at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.Open(Boolean errorsExpected) at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReader(RelationalCommandParameterObject parameterObject) at Microsoft.EntityFrameworkCore.Query.Internal.SingleQueryingEnumerable`1.Enumerator.InitializeReader(Enumerator enumerator) at Microsoft.EntityFrameworkCore.Storage.ExecutionStrategy.<>c__DisplayClass28_0`2.b__0(DbContext context, TState state) at Microsoft.EntityFrameworkCore.Storage.ExecutionStrategy.ExecuteImplementation[TState,TResult](Func`3 operation, Func`3 verifySucceeded, TState state) at Microsoft.EntityFrameworkCore.Storage.ExecutionStrategy.Execute[TState,TResult](TState state, Func`3 operation, Func`3 verifySucceeded) at Microsoft.EntityFrameworkCore.Query.Internal.SingleQueryingEnumerable`1.Enumerator.MoveNext() at System.Linq.Enumerable.TryGetSingle[TSource](IEnumerable`1 source, Boolean& found) at lambda_method10039(Closure, QueryContext) at Lers.Dal.UserSessionDataAccess.UpdateUserSessionLog(Int32 sessionId, DateTime endDatetime, DisconnectionCode exitCode) at Lers.UserSessions.EndUserSessionHandler.CloseUserSessionAsync(UserSession session, DisconnectionCode exitCode) at Lers.UserSessions.EndUserSessionHandler.EndSessionAsync(String connectionId) at Lers.Server.Api.Rpc.ServerHub.OnDisconnectedAsync(Exception exception) at Microsoft.AspNetCore.SignalR.Internal.DefaultHubDispatcher`1.OnDisconnectedAsync(HubConnectionContext connection, Exception exception) at Microsoft.AspNetCore.SignalR.Internal.DefaultHubDispatcher`1.OnDisconnectedAsync(HubConnectionContext connection, Exception exception) at Microsoft.AspNetCore.SignalR.HubConnectionHandler`1.HubOnDisconnectedAsync(HubConnectionContext connection, Exception exception) HResult:-2146232060 Дополнительная информация (Data): HelpLink.ProdName=Microsoft SQL Server HelpLink.EvtSrc=MSSQLServer HelpLink.EvtID=18456 HelpLink.BaseHelpUrl=https://go.microsoft.com/fwlink HelpLink.LinkId=20476 Дополнительная информация из ExternalException: HRESULT=0x80131904 Дополнительная информация из SqlException: Message=Ошибка входа пользователя "LersUchetAccount". Class=14 Number=18456 State=1 Server=(local)\LERS Procedure= LineNumber=1 Source=Core Microsoft SqlClient Data Provider -------------------------------------------------------------------------------------- 00-62150f26e412054b8915ea06d0060780-d044cfb5fb89f1ba-00 2024-02-20 11:35:05.2338 E:11 Microsoft.AspNetCore.Http.Connections.Internal.HttpConnectionManager Failed disposing connection _cO5pdVxFmDxy1yYcKlzBw. 1. [Core Microsoft SqlClient Data Provider] Microsoft.Data.SqlClient.SqlException: Ошибка входа пользователя "LersUchetAccount". Стек вызовов: 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.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry, SqlConnectionOverrides overrides) at Microsoft.Data.SqlClient.SqlConnection.Open(SqlConnectionOverrides overrides) at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.OpenInternal(Boolean errorsExpected) at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.Open(Boolean errorsExpected) at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReader(RelationalCommandParameterObject parameterObject) at Microsoft.EntityFrameworkCore.Query.Internal.SingleQueryingEnumerable`1.Enumerator.InitializeReader(Enumerator enumerator) at Microsoft.EntityFrameworkCore.Storage.ExecutionStrategy.<>c__DisplayClass28_0`2.b__0(DbContext context, TState state) at Microsoft.EntityFrameworkCore.Storage.ExecutionStrategy.ExecuteImplementation[TState,TResult](Func`3 operation, Func`3 verifySucceeded, TState state) at Microsoft.EntityFrameworkCore.Storage.ExecutionStrategy.Execute[TState,TResult](TState state, Func`3 operation, Func`3 verifySucceeded) at Microsoft.EntityFrameworkCore.Query.Internal.SingleQueryingEnumerable`1.Enumerator.MoveNext() at System.Linq.Enumerable.TryGetSingle[TSource](IEnumerable`1 source, Boolean& found) at lambda_method10039(Closure, QueryContext) at Lers.Dal.UserSessionDataAccess.UpdateUserSessionLog(Int32 sessionId, DateTime endDatetime, DisconnectionCode exitCode) at Lers.UserSessions.EndUserSessionHandler.CloseUserSessionAsync(UserSession session, DisconnectionCode exitCode) at Lers.UserSessions.EndUserSessionHandler.EndSessionAsync(String connectionId) at Lers.Server.Api.Rpc.ServerHub.OnDisconnectedAsync(Exception exception) at Microsoft.AspNetCore.SignalR.Internal.DefaultHubDispatcher`1.OnDisconnectedAsync(HubConnectionContext connection, Exception exception) at Microsoft.AspNetCore.SignalR.Internal.DefaultHubDispatcher`1.OnDisconnectedAsync(HubConnectionContext connection, Exception exception) at Microsoft.AspNetCore.SignalR.HubConnectionHandler`1.HubOnDisconnectedAsync(HubConnectionContext connection, Exception exception) at Microsoft.AspNetCore.SignalR.HubConnectionHandler`1.RunHubAsync(HubConnectionContext connection) at Microsoft.AspNetCore.SignalR.HubConnectionHandler`1.OnConnectedAsync(ConnectionContext connection) at Microsoft.AspNetCore.SignalR.HubConnectionHandler`1.OnConnectedAsync(ConnectionContext connection) at Microsoft.AspNetCore.Http.Connections.Internal.HttpConnectionContext.ExecuteApplication(ConnectionDelegate connectionDelegate) at Microsoft.AspNetCore.Http.Connections.Internal.HttpConnectionContext.WaitOnTasks(Task applicationTask, Task transportTask, Boolean closeGracefully) at Microsoft.AspNetCore.Http.Connections.Internal.HttpConnectionContext.DisposeAsync(Boolean closeGracefully) at Microsoft.AspNetCore.Http.Connections.Internal.HttpConnectionManager.DisposeAndRemoveAsync(HttpConnectionContext connection, Boolean closeGracefully) HResult:-2146232060 Дополнительная информация (Data): HelpLink.ProdName=Microsoft SQL Server HelpLink.EvtSrc=MSSQLServer HelpLink.EvtID=18456 HelpLink.BaseHelpUrl=https://go.microsoft.com/fwlink HelpLink.LinkId=20476 Дополнительная информация из ExternalException: HRESULT=0x80131904 Дополнительная информация из SqlException: Message=Ошибка входа пользователя "LersUchetAccount". Class=14 Number=18456 State=1 Server=(local)\LERS Procedure= LineNumber=1 Source=Core Microsoft SqlClient Data Provider -------------------------------------------------------------------------------------- 00-62150f26e412054b8915ea06d0060780-d044cfb5fb89f1ba-00 2024-02-20 11:35:05.2338 E:31 Microsoft.AspNetCore.Http.Connections.Internal.HttpConnectionManager Failed disposing connection _cO5pdVxFmDxy1yYcKlzBw. 1. [Core Microsoft SqlClient Data Provider] Microsoft.Data.SqlClient.SqlException: Ошибка входа пользователя "LersUchetAccount". Стек вызовов: 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.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry, SqlConnectionOverrides overrides) at Microsoft.Data.SqlClient.SqlConnection.Open(SqlConnectionOverrides overrides) at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.OpenInternal(Boolean errorsExpected) at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.Open(Boolean errorsExpected) at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReader(RelationalCommandParameterObject parameterObject) at Microsoft.EntityFrameworkCore.Query.Internal.SingleQueryingEnumerable`1.Enumerator.InitializeReader(Enumerator enumerator) at Microsoft.EntityFrameworkCore.Storage.ExecutionStrategy.<>c__DisplayClass28_0`2.b__0(DbContext context, TState state) at Microsoft.EntityFrameworkCore.Storage.ExecutionStrategy.ExecuteImplementation[TState,TResult](Func`3 operation, Func`3 verifySucceeded, TState state) at Microsoft.EntityFrameworkCore.Storage.ExecutionStrategy.Execute[TState,TResult](TState state, Func`3 operation, Func`3 verifySucceeded) at Microsoft.EntityFrameworkCore.Query.Internal.SingleQueryingEnumerable`1.Enumerator.MoveNext() at System.Linq.Enumerable.TryGetSingle[TSource](IEnumerable`1 source, Boolean& found) at lambda_method10039(Closure, QueryContext) at Lers.Dal.UserSessionDataAccess.UpdateUserSessionLog(Int32 sessionId, DateTime endDatetime, DisconnectionCode exitCode) at Lers.UserSessions.EndUserSessionHandler.CloseUserSessionAsync(UserSession session, DisconnectionCode exitCode) at Lers.UserSessions.EndUserSessionHandler.EndSessionAsync(String connectionId) at Lers.Server.Api.Rpc.ServerHub.OnDisconnectedAsync(Exception exception) at Microsoft.AspNetCore.SignalR.Internal.DefaultHubDispatcher`1.OnDisconnectedAsync(HubConnectionContext connection, Exception exception) at Microsoft.AspNetCore.SignalR.Internal.DefaultHubDispatcher`1.OnDisconnectedAsync(HubConnectionContext connection, Exception exception) at Microsoft.AspNetCore.SignalR.HubConnectionHandler`1.HubOnDisconnectedAsync(HubConnectionContext connection, Exception exception) at Microsoft.AspNetCore.SignalR.HubConnectionHandler`1.RunHubAsync(HubConnectionContext connection) at Microsoft.AspNetCore.SignalR.HubConnectionHandler`1.OnConnectedAsync(ConnectionContext connection) at Microsoft.AspNetCore.SignalR.HubConnectionHandler`1.OnConnectedAsync(ConnectionContext connection) at Microsoft.AspNetCore.Http.Connections.Internal.HttpConnectionContext.ExecuteApplication(ConnectionDelegate connectionDelegate) at Microsoft.AspNetCore.Http.Connections.Internal.HttpConnectionContext.WaitOnTasks(Task applicationTask, Task transportTask, Boolean closeGracefully) at Microsoft.AspNetCore.Http.Connections.Internal.HttpConnectionContext.DisposeAsync(Boolean closeGracefully) at Microsoft.AspNetCore.Http.Connections.Internal.HttpConnectionManager.DisposeAndRemoveAsync(HttpConnectionContext connection, Boolean closeGracefully) HResult:-2146232060 Дополнительная информация (Data): HelpLink.ProdName=Microsoft SQL Server HelpLink.EvtSrc=MSSQLServer HelpLink.EvtID=18456 HelpLink.BaseHelpUrl=https://go.microsoft.com/fwlink HelpLink.LinkId=20476 Дополнительная информация из ExternalException: HRESULT=0x80131904 Дополнительная информация из SqlException: Message=Ошибка входа пользователя "LersUchetAccount". Class=14 Number=18456 State=1 Server=(local)\LERS Procedure= LineNumber=1 Source=Core Microsoft SqlClient Data Provider -------------------------------------------------------------------------------------- 2024-02-20 11:35:05.2530 E:27 Microsoft.EntityFrameworkCore.Database.Connection An error occurred using the connection to database 'LERS' on server '(local)\LERS'. 2024-02-20 11:35:05.2530 E:27 Lers.Logging.SystemLog Не удалось добавить запись в системный журнал. Ошибка входа пользователя "LersUchetAccount". 2024-02-20 11:35:05.2737 E:28 Microsoft.EntityFrameworkCore.Database.Connection An error occurred using the connection to database 'LERS' on server '(local)\LERS'. 2024-02-20 11:35:05.2737 E:28 Lers.Logging.SystemLog Не удалось добавить запись в системный журнал. Ошибка входа пользователя "LersUchetAccount". 2024-02-20 11:35:05.2880 E:7 Microsoft.EntityFrameworkCore.Database.Connection An error occurred using the connection to database 'LERS' on server '(local)\LERS'. 2024-02-20 11:35:05.2880 E:7 Lers.Logging.SystemLog Не удалось добавить запись в системный журнал. Ошибка входа пользователя "LersUchetAccount". 2024-02-20 11:35:05.2978 E:33 Microsoft.EntityFrameworkCore.Database.Connection An error occurred using the connection to database 'LERS' on server '(local)\LERS'. 2024-02-20 11:35:05.2978 E:33 Lers.Logging.SystemLog Не удалось добавить запись в системный журнал. Ошибка входа пользователя "LersUchetAccount". 2024-02-20 11:57:20.8100 E:1 Program ============================================ 2024-02-20 11:57:20.8280 E:1 Program === Сервер запущен 2024-02-20 11:57:20.8280 E:1 Program ============================================ 2024-02-20 12:12:02.0833 E:1 Program ============================================ 2024-02-20 12:12:02.0833 E:1 Program === Сервер запущен 2024-02-20 12:12:02.0833 E:1 Program ============================================ 2024-02-20 12:12:13.5913 E:21 Microsoft.EntityFrameworkCore.Database.Connection An error occurred using the connection to database 'LERS' on server '(local)\LERS'. 2024-02-20 12:12:13.6391 E:21 Microsoft.EntityFrameworkCore.Query An exception occurred while iterating over the results of a query for context type 'Lers.Dal.LersDbContext'. System.AggregateException: An error occurred while writing to logger(s). (Неизвестный интерфейс.) ---> System.ComponentModel.Win32Exception (1717): Неизвестный интерфейс. at System.Diagnostics.EventLogInternal.InternalWriteEvent(UInt32 eventID, UInt16 category, EventLogEntryType type, String[] strings, Byte[] rawData, String currentMachineName) at System.Diagnostics.EventLogInternal.WriteEvent(EventInstance instance, Byte[] data, Object[] values) at Microsoft.Extensions.Logging.EventLog.WindowsEventLog.WriteEntry(String message, EventLogEntryType type, Int32 eventID, Int16 category) at Microsoft.Extensions.Logging.EventLog.EventLogLogger.WriteMessage(String message, EventLogEntryType eventLogEntryType, Int32 eventId) at Microsoft.Extensions.Logging.EventLog.EventLogLogger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.Extensions.Logging.Logger.g__LoggerLog|13_0[TState](LogLevel logLevel, EventId eventId, ILogger logger, Exception exception, Func`3 formatter, List`1& exceptions, TState& state) --- End of inner exception stack trace --- at Microsoft.Extensions.Logging.Logger.ThrowLoggingError(List`1 exceptions) at Microsoft.Extensions.Logging.Logger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.Extensions.Logging.LoggerMessage.<>c__DisplayClass12_0`2.g__Log|0(ILogger logger, T1 arg1, T2 arg2, Exception exception) at Microsoft.EntityFrameworkCore.Diagnostics.EventDefinition`2.Log[TLoggerCategory](IDiagnosticsLogger`1 logger, TParam1 arg1, TParam2 arg2) at Microsoft.EntityFrameworkCore.Diagnostics.Internal.RelationalConnectionDiagnosticsLogger.LogConnectionError(IRelationalConnection connection, EventDefinition`2 definition) at Microsoft.EntityFrameworkCore.Diagnostics.Internal.RelationalConnectionDiagnosticsLogger.ConnectionErrorAsync(IRelationalConnection connection, Exception exception, DateTimeOffset startTime, TimeSpan duration, Boolean logErrorAsDebug, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.OpenInternalAsync(Boolean errorsExpected, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.OpenAsync(CancellationToken cancellationToken, Boolean errorsExpected) at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Query.Internal.SingleQueryingEnumerable`1.AsyncEnumerator.InitializeReaderAsync(AsyncEnumerator enumerator, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Storage.ExecutionStrategy.<>c__DisplayClass30_0`2.<b__0>d.MoveNext() --- End of stack trace from previous location --- at Microsoft.EntityFrameworkCore.Storage.ExecutionStrategy.ExecuteImplementationAsync[TState,TResult](Func`4 operation, Func`4 verifySucceeded, TState state, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Storage.ExecutionStrategy.ExecuteImplementationAsync[TState,TResult](Func`4 operation, Func`4 verifySucceeded, TState state, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Storage.ExecutionStrategy.ExecuteAsync[TState,TResult](TState state, Func`4 operation, Func`4 verifySucceeded, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Query.Internal.SingleQueryingEnumerable`1.AsyncEnumerator.MoveNextAsync() 1. [Microsoft.Extensions.Logging] System.AggregateException: An error occurred while writing to logger(s). (Неизвестный интерфейс.) Стек вызовов: at Microsoft.Extensions.Logging.Logger.ThrowLoggingError(List`1 exceptions) at Microsoft.Extensions.Logging.Logger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.Extensions.Logging.LoggerMessage.<>c__DisplayClass12_0`2.g__Log|0(ILogger logger, T1 arg1, T2 arg2, Exception exception) at Microsoft.EntityFrameworkCore.Diagnostics.EventDefinition`2.Log[TLoggerCategory](IDiagnosticsLogger`1 logger, TParam1 arg1, TParam2 arg2) at Microsoft.EntityFrameworkCore.Diagnostics.Internal.RelationalConnectionDiagnosticsLogger.LogConnectionError(IRelationalConnection connection, EventDefinition`2 definition) at Microsoft.EntityFrameworkCore.Diagnostics.Internal.RelationalConnectionDiagnosticsLogger.ConnectionErrorAsync(IRelationalConnection connection, Exception exception, DateTimeOffset startTime, TimeSpan duration, Boolean logErrorAsDebug, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.OpenInternalAsync(Boolean errorsExpected, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.OpenAsync(CancellationToken cancellationToken, Boolean errorsExpected) at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Query.Internal.SingleQueryingEnumerable`1.AsyncEnumerator.InitializeReaderAsync(AsyncEnumerator enumerator, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Storage.ExecutionStrategy.<>c__DisplayClass30_0`2.<b__0>d.MoveNext() --- End of stack trace from previous location --- at Microsoft.EntityFrameworkCore.Storage.ExecutionStrategy.ExecuteImplementationAsync[TState,TResult](Func`4 operation, Func`4 verifySucceeded, TState state, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Storage.ExecutionStrategy.ExecuteImplementationAsync[TState,TResult](Func`4 operation, Func`4 verifySucceeded, TState state, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Storage.ExecutionStrategy.ExecuteAsync[TState,TResult](TState state, Func`4 operation, Func`4 verifySucceeded, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Query.Internal.SingleQueryingEnumerable`1.AsyncEnumerator.MoveNextAsync() HResult:-2146233088 -------------------------------------------------------------------------------------- 2. [System.Diagnostics.EventLog] System.ComponentModel.Win32Exception: Неизвестный интерфейс. Стек вызовов: at System.Diagnostics.EventLogInternal.InternalWriteEvent(UInt32 eventID, UInt16 category, EventLogEntryType type, String[] strings, Byte[] rawData, String currentMachineName) at System.Diagnostics.EventLogInternal.WriteEvent(EventInstance instance, Byte[] data, Object[] values) at Microsoft.Extensions.Logging.EventLog.WindowsEventLog.WriteEntry(String message, EventLogEntryType type, Int32 eventID, Int16 category) at Microsoft.Extensions.Logging.EventLog.EventLogLogger.WriteMessage(String message, EventLogEntryType eventLogEntryType, Int32 eventId) at Microsoft.Extensions.Logging.EventLog.EventLogLogger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.Extensions.Logging.Logger.g__LoggerLog|13_0[TState](LogLevel logLevel, EventId eventId, ILogger logger, Exception exception, Func`3 formatter, List`1& exceptions, TState& state) HResult:-2147467259 Дополнительная информация из ExternalException: HRESULT=0x80004005 Информация из Win32Exception: NativeErrorCode=1717 -------------------------------------------------------------------------------------- 2024-02-20 12:12:13.6479 E:7 Microsoft.EntityFrameworkCore.Database.Connection An error occurred using the connection to database 'LERS' on server '(local)\LERS'. 2024-02-20 12:12:13.6479 E:7 Lers.Logging.SystemLog Не удалось добавить запись в системный журнал. An error occurred while writing to logger(s). (Неизвестный интерфейс.) 2024-02-20 12:12:13.6479 F:21 Lers.ExceptionHandler Ошибка обработки изменения состояния. 1. [Microsoft.Extensions.Logging] System.AggregateException: An error occurred while writing to logger(s). (Неизвестный интерфейс.) Стек вызовов: at Microsoft.Extensions.Logging.Logger.ThrowLoggingError(List`1 exceptions) at Microsoft.Extensions.Logging.Logger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.Extensions.Logging.LoggerMessage.<>c__DisplayClass14_0`3.g__Log|0(ILogger logger, T1 arg1, T2 arg2, T3 arg3, Exception exception) at Microsoft.EntityFrameworkCore.Diagnostics.EventDefinition`3.Log[TLoggerCategory](IDiagnosticsLogger`1 logger, TParam1 arg1, TParam2 arg2, TParam3 arg3, Exception exception) at Microsoft.EntityFrameworkCore.Diagnostics.CoreLoggerExtensions.QueryIterationFailed(IDiagnosticsLogger`1 diagnostics, Type contextType, Exception exception) at Microsoft.EntityFrameworkCore.Query.Internal.SingleQueryingEnumerable`1.AsyncEnumerator.MoveNextAsync() at Microsoft.EntityFrameworkCore.EntityFrameworkQueryableExtensions.ToListAsync[TSource](IQueryable`1 source, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.EntityFrameworkQueryableExtensions.ToListAsync[TSource](IQueryable`1 source, CancellationToken cancellationToken) at Lers.Core.MeasurePointManager.GetListAsync(IEnumerable`1 idList) at Lers.Core.ObjectStateManager.UpdateAllNodesStateAsync(CancellationToken cancellationToken) at Lers.Core.ObjectStates.ObjectStateMonitorCommandHandler.UpdateAllStatesAsync(CancellationToken cancellationToken) at Lers.Server.BackgroundServices.ObjectStateMonitor.UpdateAllStates(ObjectStateMonitorCommandHandler handler, CancellationToken stoppingToken) at Lers.Server.BackgroundServices.ObjectStateMonitor.RunUpdateCollectedMeasurePointStatesLoop(CancellationToken stoppingToken) HResult:-2146233088 -------------------------------------------------------------------------------------- 2. [System.Diagnostics.EventLog] System.ComponentModel.Win32Exception: Неизвестный интерфейс. Стек вызовов: at System.Diagnostics.EventLogInternal.InternalWriteEvent(UInt32 eventID, UInt16 category, EventLogEntryType type, String[] strings, Byte[] rawData, String currentMachineName) at System.Diagnostics.EventLogInternal.WriteEvent(EventInstance instance, Byte[] data, Object[] values) at Microsoft.Extensions.Logging.EventLog.WindowsEventLog.WriteEntry(String message, EventLogEntryType type, Int32 eventID, Int16 category) at Microsoft.Extensions.Logging.EventLog.EventLogLogger.WriteMessage(String message, EventLogEntryType eventLogEntryType, Int32 eventId) at Microsoft.Extensions.Logging.EventLog.EventLogLogger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.Extensions.Logging.Logger.g__LoggerLog|13_0[TState](LogLevel logLevel, EventId eventId, ILogger logger, Exception exception, Func`3 formatter, List`1& exceptions, TState& state) HResult:-2147467259 Дополнительная информация из ExternalException: HRESULT=0x80004005 Информация из Win32Exception: NativeErrorCode=1717 -------------------------------------------------------------------------------------- 2024-02-20 12:12:13.6933 E:21 Microsoft.EntityFrameworkCore.Database.Connection An error occurred using the connection to database 'LERS' on server '(local)\LERS'. 2024-02-20 12:12:13.6933 E:21 Lers.Logging.SystemLog Не удалось добавить запись в системный журнал. An error occurred while writing to logger(s). (Неизвестный интерфейс.) 2024-02-20 12:12:13.7119 E:10 Microsoft.Extensions.Hosting.Internal.Host BackgroundService failed 1. [Microsoft.Extensions.Logging] System.AggregateException: An error occurred while writing to logger(s). (Неизвестный интерфейс.) Стек вызовов: at Microsoft.Extensions.Logging.Logger.ThrowLoggingError(List`1 exceptions) at Microsoft.Extensions.Logging.Logger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.Extensions.Logging.LoggerExtensions.Log(ILogger logger, LogLevel logLevel, EventId eventId, Exception exception, String message, Object[] args) at Microsoft.Extensions.Logging.LoggerExtensions.LogWarning(ILogger logger, String message, Object[] args) at Lers.Poll.PollQueueThread.Run(CancellationToken stoppingToken) at Microsoft.Extensions.Hosting.Internal.Host.TryExecuteBackgroundServiceAsync(BackgroundService backgroundService) HResult:-2146233088 -------------------------------------------------------------------------------------- 2. [System.Diagnostics.EventLog] System.ComponentModel.Win32Exception: Неизвестный интерфейс. Стек вызовов: at System.Diagnostics.EventLogInternal.InternalWriteEvent(UInt32 eventID, UInt16 category, EventLogEntryType type, String[] strings, Byte[] rawData, String currentMachineName) at System.Diagnostics.EventLogInternal.WriteEvent(EventInstance instance, Byte[] data, Object[] values) at Microsoft.Extensions.Logging.EventLog.WindowsEventLog.WriteEntry(String message, EventLogEntryType type, Int32 eventID, Int16 category) at Microsoft.Extensions.Logging.EventLog.EventLogLogger.WriteMessage(String message, EventLogEntryType eventLogEntryType, Int32 eventId) at Microsoft.Extensions.Logging.EventLog.EventLogLogger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.Extensions.Logging.Logger.g__LoggerLog|13_0[TState](LogLevel logLevel, EventId eventId, ILogger logger, Exception exception, Func`3 formatter, List`1& exceptions, TState& state) HResult:-2147467259 Дополнительная информация из ExternalException: HRESULT=0x80004005 Информация из Win32Exception: NativeErrorCode=1717 -------------------------------------------------------------------------------------- 2024-02-20 12:12:13.7304 E:21 Lers.ExceptionHandler Не удалось отправить сообщение об ошибке. 1. [] System.Runtime.InteropServices.COMException: Идет завершение работы системы. Стек вызовов: at System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(Int32 errorCode, IntPtr errorInfo) at System.Management.ManagementScope.InitializeGuts(Object o) at System.Management.ManagementScope.Initialize() at System.Management.ManagementScope.Connect() at Lers.Activation.Fingerprint.GetMotherboardSerial() at Lers.Activation.Fingerprint.GetMotherboardHash() at Lers.Activation.Fingerprint.Create() at Lers.Fingerprints.WindowsFingerprintFactory.Get() at Lers.Telemetry.Utils.TelemetryUtils.GenerateToken(String licenseNumber) at Lers.Telemetry.TelemetryManager.GenerateToken() at Lers.Telemetry.TelemetryManager..ctor(IServerLicense license, IServerEnvironment serverEnv) at Lers.ExceptionHandler.SendBugReport(Exception exception, String message, String fullInfo) HResult:-2147023781 Дополнительная информация из ExternalException: HRESULT=0x8007045B -------------------------------------------------------------------------------------- 2024-02-20 12:12:13.7942 F:21 Lers.ExceptionHandler Необработанная ошибка в сервере. "Ошибка обработки изменения состояния.". Обратитесь в службу технической поддержки ЛЭРС УЧЕТ. 1. [Microsoft.Extensions.Logging] System.AggregateException: An error occurred while writing to logger(s). (Неизвестный интерфейс.) Стек вызовов: at Microsoft.Extensions.Logging.Logger.ThrowLoggingError(List`1 exceptions) at Microsoft.Extensions.Logging.Logger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.Extensions.Logging.LoggerMessage.<>c__DisplayClass14_0`3.g__Log|0(ILogger logger, T1 arg1, T2 arg2, T3 arg3, Exception exception) at Microsoft.EntityFrameworkCore.Diagnostics.EventDefinition`3.Log[TLoggerCategory](IDiagnosticsLogger`1 logger, TParam1 arg1, TParam2 arg2, TParam3 arg3, Exception exception) at Microsoft.EntityFrameworkCore.Diagnostics.CoreLoggerExtensions.QueryIterationFailed(IDiagnosticsLogger`1 diagnostics, Type contextType, Exception exception) at Microsoft.EntityFrameworkCore.Query.Internal.SingleQueryingEnumerable`1.AsyncEnumerator.MoveNextAsync() at Microsoft.EntityFrameworkCore.EntityFrameworkQueryableExtensions.ToListAsync[TSource](IQueryable`1 source, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.EntityFrameworkQueryableExtensions.ToListAsync[TSource](IQueryable`1 source, CancellationToken cancellationToken) at Lers.Core.MeasurePointManager.GetListAsync(IEnumerable`1 idList) at Lers.Core.ObjectStateManager.UpdateAllNodesStateAsync(CancellationToken cancellationToken) at Lers.Core.ObjectStates.ObjectStateMonitorCommandHandler.UpdateAllStatesAsync(CancellationToken cancellationToken) at Lers.Server.BackgroundServices.ObjectStateMonitor.UpdateAllStates(ObjectStateMonitorCommandHandler handler, CancellationToken stoppingToken) at Lers.Server.BackgroundServices.ObjectStateMonitor.RunUpdateCollectedMeasurePointStatesLoop(CancellationToken stoppingToken) HResult:-2146233088 -------------------------------------------------------------------------------------- 2. [System.Diagnostics.EventLog] System.ComponentModel.Win32Exception: Неизвестный интерфейс. Стек вызовов: at System.Diagnostics.EventLogInternal.InternalWriteEvent(UInt32 eventID, UInt16 category, EventLogEntryType type, String[] strings, Byte[] rawData, String currentMachineName) at System.Diagnostics.EventLogInternal.WriteEvent(EventInstance instance, Byte[] data, Object[] values) at Microsoft.Extensions.Logging.EventLog.WindowsEventLog.WriteEntry(String message, EventLogEntryType type, Int32 eventID, Int16 category) at Microsoft.Extensions.Logging.EventLog.EventLogLogger.WriteMessage(String message, EventLogEntryType eventLogEntryType, Int32 eventId) at Microsoft.Extensions.Logging.EventLog.EventLogLogger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.Extensions.Logging.Logger.g__LoggerLog|13_0[TState](LogLevel logLevel, EventId eventId, ILogger logger, Exception exception, Func`3 formatter, List`1& exceptions, TState& state) HResult:-2147467259 Дополнительная информация из ExternalException: HRESULT=0x80004005 Информация из Win32Exception: NativeErrorCode=1717 -------------------------------------------------------------------------------------- 2024-02-20 12:12:13.8002 E:21 Microsoft.EntityFrameworkCore.Database.Connection An error occurred using the connection to database 'LERS' on server '(local)\LERS'. 2024-02-20 12:12:13.8002 E:21 Lers.Logging.SystemLog Не удалось добавить запись в системный журнал. An error occurred while writing to logger(s). (Неизвестный интерфейс.) 2024-02-20 12:15:28.5489 E:1 Program ============================================ 2024-02-20 12:15:28.5721 E:1 Program === Сервер запущен 2024-02-20 12:15:28.5721 E:1 Program ============================================ 2024-02-20 14:53:40.9558 E:17 Microsoft.EntityFrameworkCore.Database.Connection An error occurred using the connection to database 'LERS' on server '(local)\LERS'. 00-7df2f74eb4005a439c2604b1d245e4ab-62c0286e93aa4c71-00 2024-02-20 14:53:40.9960 E:55 Microsoft.EntityFrameworkCore.Database.Connection An error occurred using the connection to database 'LERS' on server '(local)\LERS'. 2024-02-20 14:53:41.0124 E:55 Microsoft.EntityFrameworkCore.Query An exception occurred while iterating over the results of a query for context type 'Lers.Dal.LersDbContext'. System.AggregateException: An error occurred while writing to logger(s). (Cannot open log for source 'Lers.Server'. You may not have write access.) ---> System.InvalidOperationException: Cannot open log for source 'Lers.Server'. You may not have write access. ---> System.ComponentModel.Win32Exception (1717): Неизвестный интерфейс. --- End of inner exception stack trace --- at System.Diagnostics.EventLogInternal.OpenForWrite(String currentMachineName) at System.Diagnostics.EventLogInternal.InternalWriteEvent(UInt32 eventID, UInt16 category, EventLogEntryType type, String[] strings, Byte[] rawData, String currentMachineName) at System.Diagnostics.EventLogInternal.WriteEvent(EventInstance instance, Byte[] data, Object[] values) at Microsoft.Extensions.Logging.EventLog.WindowsEventLog.WriteEntry(String message, EventLogEntryType type, Int32 eventID, Int16 category) at Microsoft.Extensions.Logging.EventLog.EventLogLogger.WriteMessage(String message, EventLogEntryType eventLogEntryType, Int32 eventId) at Microsoft.Extensions.Logging.EventLog.EventLogLogger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.Extensions.Logging.Logger.g__LoggerLog|13_0[TState](LogLevel logLevel, EventId eventId, ILogger logger, Exception exception, Func`3 formatter, List`1& exceptions, TState& state) --- End of inner exception stack trace --- at Microsoft.Extensions.Logging.Logger.ThrowLoggingError(List`1 exceptions) at Microsoft.Extensions.Logging.Logger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.Extensions.Logging.LoggerMessage.<>c__DisplayClass12_0`2.g__Log|0(ILogger logger, T1 arg1, T2 arg2, Exception exception) at Microsoft.EntityFrameworkCore.Diagnostics.EventDefinition`2.Log[TLoggerCategory](IDiagnosticsLogger`1 logger, TParam1 arg1, TParam2 arg2) at Microsoft.EntityFrameworkCore.Diagnostics.Internal.RelationalConnectionDiagnosticsLogger.LogConnectionError(IRelationalConnection connection, EventDefinition`2 definition) at Microsoft.EntityFrameworkCore.Diagnostics.Internal.RelationalConnectionDiagnosticsLogger.ConnectionError(IRelationalConnection connection, Exception exception, DateTimeOffset startTime, TimeSpan duration, Boolean logErrorAsDebug) at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.OpenInternal(Boolean errorsExpected) at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.Open(Boolean errorsExpected) at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReader(RelationalCommandParameterObject parameterObject) at Microsoft.EntityFrameworkCore.Query.Internal.SingleQueryingEnumerable`1.Enumerator.InitializeReader(Enumerator enumerator) at Microsoft.EntityFrameworkCore.Storage.ExecutionStrategy.<>c__DisplayClass28_0`2.b__0(DbContext context, TState state) at Microsoft.EntityFrameworkCore.Storage.ExecutionStrategy.ExecuteImplementation[TState,TResult](Func`3 operation, Func`3 verifySucceeded, TState state) at Microsoft.EntityFrameworkCore.Storage.ExecutionStrategy.Execute[TState,TResult](TState state, Func`3 operation, Func`3 verifySucceeded) at Microsoft.EntityFrameworkCore.Query.Internal.SingleQueryingEnumerable`1.Enumerator.MoveNext() 1. [Microsoft.Extensions.Logging] System.AggregateException: An error occurred while writing to logger(s). (Cannot open log for source 'Lers.Server'. You may not have write access.) Стек вызовов: at Microsoft.Extensions.Logging.Logger.ThrowLoggingError(List`1 exceptions) at Microsoft.Extensions.Logging.Logger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.Extensions.Logging.LoggerMessage.<>c__DisplayClass12_0`2.g__Log|0(ILogger logger, T1 arg1, T2 arg2, Exception exception) at Microsoft.EntityFrameworkCore.Diagnostics.EventDefinition`2.Log[TLoggerCategory](IDiagnosticsLogger`1 logger, TParam1 arg1, TParam2 arg2) at Microsoft.EntityFrameworkCore.Diagnostics.Internal.RelationalConnectionDiagnosticsLogger.LogConnectionError(IRelationalConnection connection, EventDefinition`2 definition) at Microsoft.EntityFrameworkCore.Diagnostics.Internal.RelationalConnectionDiagnosticsLogger.ConnectionError(IRelationalConnection connection, Exception exception, DateTimeOffset startTime, TimeSpan duration, Boolean logErrorAsDebug) at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.OpenInternal(Boolean errorsExpected) at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.Open(Boolean errorsExpected) at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReader(RelationalCommandParameterObject parameterObject) at Microsoft.EntityFrameworkCore.Query.Internal.SingleQueryingEnumerable`1.Enumerator.InitializeReader(Enumerator enumerator) at Microsoft.EntityFrameworkCore.Storage.ExecutionStrategy.<>c__DisplayClass28_0`2.b__0(DbContext context, TState state) at Microsoft.EntityFrameworkCore.Storage.ExecutionStrategy.ExecuteImplementation[TState,TResult](Func`3 operation, Func`3 verifySucceeded, TState state) at Microsoft.EntityFrameworkCore.Storage.ExecutionStrategy.Execute[TState,TResult](TState state, Func`3 operation, Func`3 verifySucceeded) at Microsoft.EntityFrameworkCore.Query.Internal.SingleQueryingEnumerable`1.Enumerator.MoveNext() HResult:-2146233088 -------------------------------------------------------------------------------------- 2. [System.Diagnostics.EventLog] System.InvalidOperationException: Cannot open log for source 'Lers.Server'. You may not have write access. Стек вызовов: at System.Diagnostics.EventLogInternal.OpenForWrite(String currentMachineName) at System.Diagnostics.EventLogInternal.InternalWriteEvent(UInt32 eventID, UInt16 category, EventLogEntryType type, String[] strings, Byte[] rawData, String currentMachineName) at System.Diagnostics.EventLogInternal.WriteEvent(EventInstance instance, Byte[] data, Object[] values) at Microsoft.Extensions.Logging.EventLog.WindowsEventLog.WriteEntry(String message, EventLogEntryType type, Int32 eventID, Int16 category) at Microsoft.Extensions.Logging.EventLog.EventLogLogger.WriteMessage(String message, EventLogEntryType eventLogEntryType, Int32 eventId) at Microsoft.Extensions.Logging.EventLog.EventLogLogger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.Extensions.Logging.Logger.g__LoggerLog|13_0[TState](LogLevel logLevel, EventId eventId, ILogger logger, Exception exception, Func`3 formatter, List`1& exceptions, TState& state) HResult:-2146233079 -------------------------------------------------------------------------------------- 3. [] System.ComponentModel.Win32Exception: Неизвестный интерфейс. Стек вызовов: HResult:-2147467259 Дополнительная информация из ExternalException: HRESULT=0x80004005 Информация из Win32Exception: NativeErrorCode=1717 -------------------------------------------------------------------------------------- 2024-02-20 14:53:41.0278 E:55 Microsoft.AspNetCore.SignalR.HubConnectionHandler Error when dispatching 'OnDisconnectedAsync' on hub. 1. [Microsoft.Extensions.Logging] System.AggregateException: An error occurred while writing to logger(s). (Cannot open log for source 'Lers.Server'. You may not have write access.) Стек вызовов: at Microsoft.Extensions.Logging.Logger.ThrowLoggingError(List`1 exceptions) at Microsoft.Extensions.Logging.Logger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.Extensions.Logging.LoggerMessage.<>c__DisplayClass14_0`3.g__Log|0(ILogger logger, T1 arg1, T2 arg2, T3 arg3, Exception exception) at Microsoft.EntityFrameworkCore.Diagnostics.EventDefinition`3.Log[TLoggerCategory](IDiagnosticsLogger`1 logger, TParam1 arg1, TParam2 arg2, TParam3 arg3, Exception exception) at Microsoft.EntityFrameworkCore.Diagnostics.CoreLoggerExtensions.QueryIterationFailed(IDiagnosticsLogger`1 diagnostics, Type contextType, Exception exception) at Microsoft.EntityFrameworkCore.Query.Internal.SingleQueryingEnumerable`1.Enumerator.MoveNext() at System.Linq.Enumerable.TryGetSingle[TSource](IEnumerable`1 source, Boolean& found) at lambda_method20185(Closure, QueryContext) at Lers.Dal.UserSessionDataAccess.UpdateUserSessionLog(Int32 sessionId, DateTime endDatetime, DisconnectionCode exitCode) at Lers.UserSessions.EndUserSessionHandler.CloseUserSessionAsync(UserSession session, DisconnectionCode exitCode) at Lers.UserSessions.EndUserSessionHandler.EndSessionAsync(String connectionId) at Lers.Server.Api.Rpc.ServerHub.OnDisconnectedAsync(Exception exception) at Microsoft.AspNetCore.SignalR.Internal.DefaultHubDispatcher`1.OnDisconnectedAsync(HubConnectionContext connection, Exception exception) at Microsoft.AspNetCore.SignalR.Internal.DefaultHubDispatcher`1.OnDisconnectedAsync(HubConnectionContext connection, Exception exception) at Microsoft.AspNetCore.SignalR.HubConnectionHandler`1.HubOnDisconnectedAsync(HubConnectionContext connection, Exception exception) HResult:-2146233088 -------------------------------------------------------------------------------------- 2. [System.Diagnostics.EventLog] System.InvalidOperationException: Cannot open log for source 'Lers.Server'. You may not have write access. Стек вызовов: at System.Diagnostics.EventLogInternal.OpenForWrite(String currentMachineName) at System.Diagnostics.EventLogInternal.InternalWriteEvent(UInt32 eventID, UInt16 category, EventLogEntryType type, String[] strings, Byte[] rawData, String currentMachineName) at System.Diagnostics.EventLogInternal.WriteEvent(EventInstance instance, Byte[] data, Object[] values) at Microsoft.Extensions.Logging.EventLog.WindowsEventLog.WriteEntry(String message, EventLogEntryType type, Int32 eventID, Int16 category) at Microsoft.Extensions.Logging.EventLog.EventLogLogger.WriteMessage(String message, EventLogEntryType eventLogEntryType, Int32 eventId) at Microsoft.Extensions.Logging.EventLog.EventLogLogger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.Extensions.Logging.Logger.g__LoggerLog|13_0[TState](LogLevel logLevel, EventId eventId, ILogger logger, Exception exception, Func`3 formatter, List`1& exceptions, TState& state) HResult:-2146233079 -------------------------------------------------------------------------------------- 3. [] System.ComponentModel.Win32Exception: Неизвестный интерфейс. Стек вызовов: HResult:-2147467259 Дополнительная информация из ExternalException: HRESULT=0x80004005 Информация из Win32Exception: NativeErrorCode=1717 -------------------------------------------------------------------------------------- 2024-02-20 14:53:41.0278 E:17 Microsoft.EntityFrameworkCore.Query An exception occurred while iterating over the results of a query for context type 'Lers.Dal.LersDbContext'. System.AggregateException: An error occurred while writing to logger(s). (Cannot open log for source 'Lers.Server'. You may not have write access.) ---> System.InvalidOperationException: Cannot open log for source 'Lers.Server'. You may not have write access. ---> System.ComponentModel.Win32Exception (1717): Неизвестный интерфейс. --- End of inner exception stack trace --- at System.Diagnostics.EventLogInternal.OpenForWrite(String currentMachineName) at System.Diagnostics.EventLogInternal.InternalWriteEvent(UInt32 eventID, UInt16 category, EventLogEntryType type, String[] strings, Byte[] rawData, String currentMachineName) at System.Diagnostics.EventLogInternal.WriteEvent(EventInstance instance, Byte[] data, Object[] values) at Microsoft.Extensions.Logging.EventLog.WindowsEventLog.WriteEntry(String message, EventLogEntryType type, Int32 eventID, Int16 category) at Microsoft.Extensions.Logging.EventLog.EventLogLogger.WriteMessage(String message, EventLogEntryType eventLogEntryType, Int32 eventId) at Microsoft.Extensions.Logging.EventLog.EventLogLogger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.Extensions.Logging.Logger.g__LoggerLog|13_0[TState](LogLevel logLevel, EventId eventId, ILogger logger, Exception exception, Func`3 formatter, List`1& exceptions, TState& state) --- End of inner exception stack trace --- at Microsoft.Extensions.Logging.Logger.ThrowLoggingError(List`1 exceptions) at Microsoft.Extensions.Logging.Logger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.Extensions.Logging.LoggerMessage.<>c__DisplayClass12_0`2.g__Log|0(ILogger logger, T1 arg1, T2 arg2, Exception exception) at Microsoft.EntityFrameworkCore.Diagnostics.EventDefinition`2.Log[TLoggerCategory](IDiagnosticsLogger`1 logger, TParam1 arg1, TParam2 arg2) at Microsoft.EntityFrameworkCore.Diagnostics.Internal.RelationalConnectionDiagnosticsLogger.LogConnectionError(IRelationalConnection connection, EventDefinition`2 definition) at Microsoft.EntityFrameworkCore.Diagnostics.Internal.RelationalConnectionDiagnosticsLogger.ConnectionError(IRelationalConnection connection, Exception exception, DateTimeOffset startTime, TimeSpan duration, Boolean logErrorAsDebug) at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.OpenInternal(Boolean errorsExpected) at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.Open(Boolean errorsExpected) at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReader(RelationalCommandParameterObject parameterObject) at Microsoft.EntityFrameworkCore.Query.Internal.SingleQueryingEnumerable`1.Enumerator.InitializeReader(Enumerator enumerator) at Microsoft.EntityFrameworkCore.Storage.ExecutionStrategy.<>c__DisplayClass28_0`2.b__0(DbContext context, TState state) at Microsoft.EntityFrameworkCore.Storage.ExecutionStrategy.ExecuteImplementation[TState,TResult](Func`3 operation, Func`3 verifySucceeded, TState state) at Microsoft.EntityFrameworkCore.Storage.ExecutionStrategy.Execute[TState,TResult](TState state, Func`3 operation, Func`3 verifySucceeded) at Microsoft.EntityFrameworkCore.Query.Internal.SingleQueryingEnumerable`1.Enumerator.MoveNext() 1. [Microsoft.Extensions.Logging] System.AggregateException: An error occurred while writing to logger(s). (Cannot open log for source 'Lers.Server'. You may not have write access.) Стек вызовов: at Microsoft.Extensions.Logging.Logger.ThrowLoggingError(List`1 exceptions) at Microsoft.Extensions.Logging.Logger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.Extensions.Logging.LoggerMessage.<>c__DisplayClass12_0`2.g__Log|0(ILogger logger, T1 arg1, T2 arg2, Exception exception) at Microsoft.EntityFrameworkCore.Diagnostics.EventDefinition`2.Log[TLoggerCategory](IDiagnosticsLogger`1 logger, TParam1 arg1, TParam2 arg2) at Microsoft.EntityFrameworkCore.Diagnostics.Internal.RelationalConnectionDiagnosticsLogger.LogConnectionError(IRelationalConnection connection, EventDefinition`2 definition) at Microsoft.EntityFrameworkCore.Diagnostics.Internal.RelationalConnectionDiagnosticsLogger.ConnectionError(IRelationalConnection connection, Exception exception, DateTimeOffset startTime, TimeSpan duration, Boolean logErrorAsDebug) at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.OpenInternal(Boolean errorsExpected) at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.Open(Boolean errorsExpected) at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReader(RelationalCommandParameterObject parameterObject) at Microsoft.EntityFrameworkCore.Query.Internal.SingleQueryingEnumerable`1.Enumerator.InitializeReader(Enumerator enumerator) at Microsoft.EntityFrameworkCore.Storage.ExecutionStrategy.<>c__DisplayClass28_0`2.b__0(DbContext context, TState state) at Microsoft.EntityFrameworkCore.Storage.ExecutionStrategy.ExecuteImplementation[TState,TResult](Func`3 operation, Func`3 verifySucceeded, TState state) at Microsoft.EntityFrameworkCore.Storage.ExecutionStrategy.Execute[TState,TResult](TState state, Func`3 operation, Func`3 verifySucceeded) at Microsoft.EntityFrameworkCore.Query.Internal.SingleQueryingEnumerable`1.Enumerator.MoveNext() HResult:-2146233088 -------------------------------------------------------------------------------------- 2. [System.Diagnostics.EventLog] System.InvalidOperationException: Cannot open log for source 'Lers.Server'. You may not have write access. Стек вызовов: at System.Diagnostics.EventLogInternal.OpenForWrite(String currentMachineName) at System.Diagnostics.EventLogInternal.InternalWriteEvent(UInt32 eventID, UInt16 category, EventLogEntryType type, String[] strings, Byte[] rawData, String currentMachineName) at System.Diagnostics.EventLogInternal.WriteEvent(EventInstance instance, Byte[] data, Object[] values) at Microsoft.Extensions.Logging.EventLog.WindowsEventLog.WriteEntry(String message, EventLogEntryType type, Int32 eventID, Int16 category) at Microsoft.Extensions.Logging.EventLog.EventLogLogger.WriteMessage(String message, EventLogEntryType eventLogEntryType, Int32 eventId) at Microsoft.Extensions.Logging.EventLog.EventLogLogger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.Extensions.Logging.Logger.g__LoggerLog|13_0[TState](LogLevel logLevel, EventId eventId, ILogger logger, Exception exception, Func`3 formatter, List`1& exceptions, TState& state) HResult:-2146233079 -------------------------------------------------------------------------------------- 3. [] System.ComponentModel.Win32Exception: Неизвестный интерфейс. Стек вызовов: HResult:-2147467259 Дополнительная информация из ExternalException: HRESULT=0x80004005 Информация из Win32Exception: NativeErrorCode=1717 -------------------------------------------------------------------------------------- 00-7df2f74eb4005a439c2604b1d245e4ab-62c0286e93aa4c71-00 2024-02-20 14:53:41.0469 E:17 Microsoft.AspNetCore.SignalR.HubConnectionHandler Error when dispatching 'OnDisconnectedAsync' on hub. 1. [Microsoft.Extensions.Logging] System.AggregateException: An error occurred while writing to logger(s). (Cannot open log for source 'Lers.Server'. You may not have write access.) Стек вызовов: at Microsoft.Extensions.Logging.Logger.ThrowLoggingError(List`1 exceptions) at Microsoft.Extensions.Logging.Logger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.Extensions.Logging.LoggerMessage.<>c__DisplayClass14_0`3.g__Log|0(ILogger logger, T1 arg1, T2 arg2, T3 arg3, Exception exception) at Microsoft.EntityFrameworkCore.Diagnostics.EventDefinition`3.Log[TLoggerCategory](IDiagnosticsLogger`1 logger, TParam1 arg1, TParam2 arg2, TParam3 arg3, Exception exception) at Microsoft.EntityFrameworkCore.Diagnostics.CoreLoggerExtensions.QueryIterationFailed(IDiagnosticsLogger`1 diagnostics, Type contextType, Exception exception) at Microsoft.EntityFrameworkCore.Query.Internal.SingleQueryingEnumerable`1.Enumerator.MoveNext() at System.Linq.Enumerable.TryGetSingle[TSource](IEnumerable`1 source, Boolean& found) at lambda_method20185(Closure, QueryContext) at Lers.Dal.UserSessionDataAccess.UpdateUserSessionLog(Int32 sessionId, DateTime endDatetime, DisconnectionCode exitCode) at Lers.UserSessions.EndUserSessionHandler.CloseUserSessionAsync(UserSession session, DisconnectionCode exitCode) at Lers.UserSessions.EndUserSessionHandler.EndSessionAsync(String connectionId) at Lers.Server.Api.Rpc.ServerHub.OnDisconnectedAsync(Exception exception) at Microsoft.AspNetCore.SignalR.Internal.DefaultHubDispatcher`1.OnDisconnectedAsync(HubConnectionContext connection, Exception exception) at Microsoft.AspNetCore.SignalR.Internal.DefaultHubDispatcher`1.OnDisconnectedAsync(HubConnectionContext connection, Exception exception) at Microsoft.AspNetCore.SignalR.HubConnectionHandler`1.HubOnDisconnectedAsync(HubConnectionContext connection, Exception exception) HResult:-2146233088 -------------------------------------------------------------------------------------- 2. [System.Diagnostics.EventLog] System.InvalidOperationException: Cannot open log for source 'Lers.Server'. You may not have write access. Стек вызовов: at System.Diagnostics.EventLogInternal.OpenForWrite(String currentMachineName) at System.Diagnostics.EventLogInternal.InternalWriteEvent(UInt32 eventID, UInt16 category, EventLogEntryType type, String[] strings, Byte[] rawData, String currentMachineName) at System.Diagnostics.EventLogInternal.WriteEvent(EventInstance instance, Byte[] data, Object[] values) at Microsoft.Extensions.Logging.EventLog.WindowsEventLog.WriteEntry(String message, EventLogEntryType type, Int32 eventID, Int16 category) at Microsoft.Extensions.Logging.EventLog.EventLogLogger.WriteMessage(String message, EventLogEntryType eventLogEntryType, Int32 eventId) at Microsoft.Extensions.Logging.EventLog.EventLogLogger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.Extensions.Logging.Logger.g__LoggerLog|13_0[TState](LogLevel logLevel, EventId eventId, ILogger logger, Exception exception, Func`3 formatter, List`1& exceptions, TState& state) HResult:-2146233079 -------------------------------------------------------------------------------------- 3. [] System.ComponentModel.Win32Exception: Неизвестный интерфейс. Стек вызовов: HResult:-2147467259 Дополнительная информация из ExternalException: HRESULT=0x80004005 Информация из Win32Exception: NativeErrorCode=1717 -------------------------------------------------------------------------------------- 00-7df2f74eb4005a439c2604b1d245e4ab-62c0286e93aa4c71-00 2024-02-20 14:53:41.0469 E:55 Microsoft.AspNetCore.Http.Connections.Internal.HttpConnectionManager Failed disposing connection X0n5loQA7SMC65OOOduhGA. 1. [Microsoft.Extensions.Logging] System.AggregateException: An error occurred while writing to logger(s). (Cannot open log for source 'Lers.Server'. You may not have write access.) Стек вызовов: at Microsoft.Extensions.Logging.Logger.ThrowLoggingError(List`1 exceptions) at Microsoft.Extensions.Logging.Logger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.Extensions.Logging.Logger`1.Microsoft.Extensions.Logging.ILogger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.Extensions.Logging.LoggerMessage.<>c__DisplayClass10_0`1.g__Log|0(ILogger logger, T1 arg1, Exception exception) at Microsoft.AspNetCore.SignalR.HubConnectionHandler`1.HubOnDisconnectedAsync(HubConnectionContext connection, Exception exception) at Microsoft.AspNetCore.SignalR.HubConnectionHandler`1.RunHubAsync(HubConnectionContext connection) at Microsoft.AspNetCore.SignalR.HubConnectionHandler`1.OnConnectedAsync(ConnectionContext connection) at Microsoft.AspNetCore.SignalR.HubConnectionHandler`1.OnConnectedAsync(ConnectionContext connection) at Microsoft.AspNetCore.Http.Connections.Internal.HttpConnectionContext.ExecuteApplication(ConnectionDelegate connectionDelegate) at Microsoft.AspNetCore.Http.Connections.Internal.HttpConnectionContext.WaitOnTasks(Task applicationTask, Task transportTask, Boolean closeGracefully) at Microsoft.AspNetCore.Http.Connections.Internal.HttpConnectionContext.DisposeAsync(Boolean closeGracefully) at Microsoft.AspNetCore.Http.Connections.Internal.HttpConnectionManager.DisposeAndRemoveAsync(HttpConnectionContext connection, Boolean closeGracefully) HResult:-2146233088 -------------------------------------------------------------------------------------- 2. [System.Diagnostics.EventLog] System.InvalidOperationException: Cannot open log for source 'Lers.Server'. You may not have write access. Стек вызовов: at System.Diagnostics.EventLogInternal.OpenForWrite(String currentMachineName) at System.Diagnostics.EventLogInternal.InternalWriteEvent(UInt32 eventID, UInt16 category, EventLogEntryType type, String[] strings, Byte[] rawData, String currentMachineName) at System.Diagnostics.EventLogInternal.WriteEvent(EventInstance instance, Byte[] data, Object[] values) at Microsoft.Extensions.Logging.EventLog.WindowsEventLog.WriteEntry(String message, EventLogEntryType type, Int32 eventID, Int16 category) at Microsoft.Extensions.Logging.EventLog.EventLogLogger.WriteMessage(String message, EventLogEntryType eventLogEntryType, Int32 eventId) at Microsoft.Extensions.Logging.EventLog.EventLogLogger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.Extensions.Logging.Logger.g__LoggerLog|13_0[TState](LogLevel logLevel, EventId eventId, ILogger logger, Exception exception, Func`3 formatter, List`1& exceptions, TState& state) HResult:-2146233079 -------------------------------------------------------------------------------------- 3. [] System.ComponentModel.Win32Exception: Неизвестный интерфейс. Стек вызовов: HResult:-2147467259 Дополнительная информация из ExternalException: HRESULT=0x80004005 Информация из Win32Exception: NativeErrorCode=1717 -------------------------------------------------------------------------------------- 2024-02-20 14:53:41.0469 E:17 Microsoft.AspNetCore.Http.Connections.Internal.HttpConnectionManager Failed disposing connection rmXttYU3dr4gq6xn_eBCIg. 1. [Microsoft.Extensions.Logging] System.AggregateException: An error occurred while writing to logger(s). (Cannot open log for source 'Lers.Server'. You may not have write access.) Стек вызовов: at Microsoft.Extensions.Logging.Logger.ThrowLoggingError(List`1 exceptions) at Microsoft.Extensions.Logging.Logger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.Extensions.Logging.Logger`1.Microsoft.Extensions.Logging.ILogger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.Extensions.Logging.LoggerMessage.<>c__DisplayClass10_0`1.g__Log|0(ILogger logger, T1 arg1, Exception exception) at Microsoft.AspNetCore.SignalR.HubConnectionHandler`1.HubOnDisconnectedAsync(HubConnectionContext connection, Exception exception) at Microsoft.AspNetCore.SignalR.HubConnectionHandler`1.RunHubAsync(HubConnectionContext connection) at Microsoft.AspNetCore.SignalR.HubConnectionHandler`1.OnConnectedAsync(ConnectionContext connection) at Microsoft.AspNetCore.SignalR.HubConnectionHandler`1.OnConnectedAsync(ConnectionContext connection) at Microsoft.AspNetCore.Http.Connections.Internal.HttpConnectionContext.ExecuteApplication(ConnectionDelegate connectionDelegate) at Microsoft.AspNetCore.Http.Connections.Internal.HttpConnectionContext.WaitOnTasks(Task applicationTask, Task transportTask, Boolean closeGracefully) at Microsoft.AspNetCore.Http.Connections.Internal.HttpConnectionContext.DisposeAsync(Boolean closeGracefully) at Microsoft.AspNetCore.Http.Connections.Internal.HttpConnectionManager.DisposeAndRemoveAsync(HttpConnectionContext connection, Boolean closeGracefully) HResult:-2146233088 -------------------------------------------------------------------------------------- 2. [System.Diagnostics.EventLog] System.InvalidOperationException: Cannot open log for source 'Lers.Server'. You may not have write access. Стек вызовов: at System.Diagnostics.EventLogInternal.OpenForWrite(String currentMachineName) at System.Diagnostics.EventLogInternal.InternalWriteEvent(UInt32 eventID, UInt16 category, EventLogEntryType type, String[] strings, Byte[] rawData, String currentMachineName) at System.Diagnostics.EventLogInternal.WriteEvent(EventInstance instance, Byte[] data, Object[] values) at Microsoft.Extensions.Logging.EventLog.WindowsEventLog.WriteEntry(String message, EventLogEntryType type, Int32 eventID, Int16 category) at Microsoft.Extensions.Logging.EventLog.EventLogLogger.WriteMessage(String message, EventLogEntryType eventLogEntryType, Int32 eventId) at Microsoft.Extensions.Logging.EventLog.EventLogLogger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.Extensions.Logging.Logger.g__LoggerLog|13_0[TState](LogLevel logLevel, EventId eventId, ILogger logger, Exception exception, Func`3 formatter, List`1& exceptions, TState& state) HResult:-2146233079 -------------------------------------------------------------------------------------- 3. [] System.ComponentModel.Win32Exception: Неизвестный интерфейс. Стек вызовов: HResult:-2147467259 Дополнительная информация из ExternalException: HRESULT=0x80004005 Информация из Win32Exception: NativeErrorCode=1717 -------------------------------------------------------------------------------------- 2024-02-20 14:53:41.0672 E:55 Microsoft.AspNetCore.Http.Connections.Internal.HttpConnectionManager Failed disposing connection rmXttYU3dr4gq6xn_eBCIg. 1. [Microsoft.Extensions.Logging] System.AggregateException: An error occurred while writing to logger(s). (Cannot open log for source 'Lers.Server'. You may not have write access.) Стек вызовов: at Microsoft.Extensions.Logging.Logger.ThrowLoggingError(List`1 exceptions) at Microsoft.Extensions.Logging.Logger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.Extensions.Logging.Logger`1.Microsoft.Extensions.Logging.ILogger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.Extensions.Logging.LoggerMessage.<>c__DisplayClass10_0`1.g__Log|0(ILogger logger, T1 arg1, Exception exception) at Microsoft.AspNetCore.SignalR.HubConnectionHandler`1.HubOnDisconnectedAsync(HubConnectionContext connection, Exception exception) at Microsoft.AspNetCore.SignalR.HubConnectionHandler`1.RunHubAsync(HubConnectionContext connection) at Microsoft.AspNetCore.SignalR.HubConnectionHandler`1.OnConnectedAsync(ConnectionContext connection) at Microsoft.AspNetCore.SignalR.HubConnectionHandler`1.OnConnectedAsync(ConnectionContext connection) at Microsoft.AspNetCore.Http.Connections.Internal.HttpConnectionContext.ExecuteApplication(ConnectionDelegate connectionDelegate) at Microsoft.AspNetCore.Http.Connections.Internal.HttpConnectionContext.WaitOnTasks(Task applicationTask, Task transportTask, Boolean closeGracefully) at Microsoft.AspNetCore.Http.Connections.Internal.HttpConnectionContext.DisposeAsync(Boolean closeGracefully) at Microsoft.AspNetCore.Http.Connections.Internal.HttpConnectionManager.DisposeAndRemoveAsync(HttpConnectionContext connection, Boolean closeGracefully) HResult:-2146233088 -------------------------------------------------------------------------------------- 2. [System.Diagnostics.EventLog] System.InvalidOperationException: Cannot open log for source 'Lers.Server'. You may not have write access. Стек вызовов: at System.Diagnostics.EventLogInternal.OpenForWrite(String currentMachineName) at System.Diagnostics.EventLogInternal.InternalWriteEvent(UInt32 eventID, UInt16 category, EventLogEntryType type, String[] strings, Byte[] rawData, String currentMachineName) at System.Diagnostics.EventLogInternal.WriteEvent(EventInstance instance, Byte[] data, Object[] values) at Microsoft.Extensions.Logging.EventLog.WindowsEventLog.WriteEntry(String message, EventLogEntryType type, Int32 eventID, Int16 category) at Microsoft.Extensions.Logging.EventLog.EventLogLogger.WriteMessage(String message, EventLogEntryType eventLogEntryType, Int32 eventId) at Microsoft.Extensions.Logging.EventLog.EventLogLogger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.Extensions.Logging.Logger.g__LoggerLog|13_0[TState](LogLevel logLevel, EventId eventId, ILogger logger, Exception exception, Func`3 formatter, List`1& exceptions, TState& state) HResult:-2146233079 -------------------------------------------------------------------------------------- 3. [] System.ComponentModel.Win32Exception: Неизвестный интерфейс. Стек вызовов: HResult:-2147467259 Дополнительная информация из ExternalException: HRESULT=0x80004005 Информация из Win32Exception: NativeErrorCode=1717 -------------------------------------------------------------------------------------- 00-7df2f74eb4005a439c2604b1d245e4ab-62c0286e93aa4c71-00 2024-02-20 14:53:41.0840 E:28 Microsoft.EntityFrameworkCore.Database.Connection An error occurred using the connection to database 'LERS' on server '(local)\LERS'. 2024-02-20 14:53:41.0840 E:55 Microsoft.AspNetCore.Server.Kestrel Connection id "0HN1HUIHHPP62", Request id "0HN1HUIHHPP62:00000001": An unhandled exception was thrown by the application. 1. [Microsoft.Extensions.Logging] System.AggregateException: An error occurred while writing to logger(s). (Cannot open log for source 'Lers.Server'. You may not have write access.) Стек вызовов: at Microsoft.Extensions.Logging.Logger.ThrowLoggingError(List`1 exceptions) at Microsoft.Extensions.Logging.Logger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.Extensions.Logging.Logger`1.Microsoft.Extensions.Logging.ILogger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.Extensions.Logging.LoggerMessage.<>c__DisplayClass10_0`1.g__Log|0(ILogger logger, T1 arg1, Exception exception) at Microsoft.AspNetCore.Http.Connections.Internal.HttpConnectionManager.DisposeAndRemoveAsync(HttpConnectionContext connection, Boolean closeGracefully) at Microsoft.AspNetCore.Http.Connections.Internal.HttpConnectionDispatcher.DoPersistentConnection(ConnectionDelegate connectionDelegate, IHttpTransport transport, HttpContext context, HttpConnectionContext connection) at Microsoft.AspNetCore.Http.Connections.Internal.HttpConnectionDispatcher.ExecuteAsync(HttpContext context, ConnectionDelegate connectionDelegate, HttpConnectionDispatcherOptions options, ConnectionLogScope logScope) at Microsoft.AspNetCore.Http.Connections.Internal.HttpConnectionDispatcher.ExecuteAsync(HttpContext context, HttpConnectionDispatcherOptions options, ConnectionDelegate connectionDelegate) at Microsoft.AspNetCore.Routing.EndpointMiddleware.g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger) at Lers.Server.License.LicenseRestrictiontMiddleware.Invoke(HttpContext context, IServerLicense serverLicense, IMemoryCache memoryCache) at Lers.Server.Security.Authorization.AccountContextMiddleware.Invoke(HttpContext context, IAccountManager accountRepo, IUserSessionManager userSessions, ILogger`1 logger) at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context) at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context) at Lers.Server.ExceptionFilterExtensions.<>c.<b__0_0>d.MoveNext() --- End of stack trace from previous location --- at Lers.Server.Infrastructure.RequestCompressionMiddleware.Invoke(HttpContext context) at Lers.Server.Infrastructure.DatabaseErrorMiddleware.Invoke(HttpContext context, DatabaseStateInformation stateInfo) at StackExchange.Profiling.MiniProfilerMiddleware.Invoke(HttpContext context) in C:\projects\dotnet\src\MiniProfiler.AspNetCore\MiniProfilerMiddleware.cs:line 114 at Microsoft.AspNetCore.Builder.RouterMiddleware.Invoke(HttpContext httpContext) at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context) at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context) at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpProtocol.ProcessRequests[TContext](IHttpApplication`1 application) HResult:-2146233088 -------------------------------------------------------------------------------------- 2. [System.Diagnostics.EventLog] System.InvalidOperationException: Cannot open log for source 'Lers.Server'. You may not have write access. Стек вызовов: at System.Diagnostics.EventLogInternal.OpenForWrite(String currentMachineName) at System.Diagnostics.EventLogInternal.InternalWriteEvent(UInt32 eventID, UInt16 category, EventLogEntryType type, String[] strings, Byte[] rawData, String currentMachineName) at System.Diagnostics.EventLogInternal.WriteEvent(EventInstance instance, Byte[] data, Object[] values) at Microsoft.Extensions.Logging.EventLog.WindowsEventLog.WriteEntry(String message, EventLogEntryType type, Int32 eventID, Int16 category) at Microsoft.Extensions.Logging.EventLog.EventLogLogger.WriteMessage(String message, EventLogEntryType eventLogEntryType, Int32 eventId) at Microsoft.Extensions.Logging.EventLog.EventLogLogger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.Extensions.Logging.Logger.g__LoggerLog|13_0[TState](LogLevel logLevel, EventId eventId, ILogger logger, Exception exception, Func`3 formatter, List`1& exceptions, TState& state) HResult:-2146233079 -------------------------------------------------------------------------------------- 3. [] System.ComponentModel.Win32Exception: Неизвестный интерфейс. Стек вызовов: HResult:-2147467259 Дополнительная информация из ExternalException: HRESULT=0x80004005 Информация из Win32Exception: NativeErrorCode=1717 -------------------------------------------------------------------------------------- 00-7df2f74eb4005a439c2604b1d245e4ab-62c0286e93aa4c71-00 2024-02-20 14:53:41.0840 E:28 Lers.Logging.SystemLog Не удалось добавить запись в системный журнал. An error occurred while writing to logger(s). (Cannot open log for source 'Lers.Server'. You may not have write access.) 2024-02-20 14:53:41.1172 F:55 Microsoft.AspNetCore.Server.Kestrel Unexpected exception in HttpConnection.ProcessRequestsAsync. 1. [Microsoft.Extensions.Logging] System.AggregateException: An error occurred while writing to logger(s). (Cannot open log for source 'Lers.Server'. You may not have write access.) Стек вызовов: at Microsoft.Extensions.Logging.Logger.ThrowLoggingError(List`1 exceptions) at Microsoft.Extensions.Logging.Logger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Infrastructure.KestrelTrace.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.Extensions.Logging.LoggerExtensions.Log(ILogger logger, LogLevel logLevel, EventId eventId, Exception exception, String message, Object[] args) at Microsoft.Extensions.Logging.LoggerExtensions.LogWarning(ILogger logger, EventId eventId, Exception exception, String message, Object[] args) at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpProtocol.ProcessRequestsAsync[TContext](IHttpApplication`1 application) at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpProtocol.ProcessRequestsAsync[TContext](IHttpApplication`1 application) at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.HttpConnection.ProcessRequestsAsync[TContext](IHttpApplication`1 httpApplication) HResult:-2146233088 -------------------------------------------------------------------------------------- 2. [System.Diagnostics.EventLog] System.InvalidOperationException: Cannot open log for source 'Lers.Server'. You may not have write access. Стек вызовов: at System.Diagnostics.EventLogInternal.OpenForWrite(String currentMachineName) at System.Diagnostics.EventLogInternal.InternalWriteEvent(UInt32 eventID, UInt16 category, EventLogEntryType type, String[] strings, Byte[] rawData, String currentMachineName) at System.Diagnostics.EventLogInternal.WriteEvent(EventInstance instance, Byte[] data, Object[] values) at Microsoft.Extensions.Logging.EventLog.WindowsEventLog.WriteEntry(String message, EventLogEntryType type, Int32 eventID, Int16 category) at Microsoft.Extensions.Logging.EventLog.EventLogLogger.WriteMessage(String message, EventLogEntryType eventLogEntryType, Int32 eventId) at Microsoft.Extensions.Logging.EventLog.EventLogLogger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.Extensions.Logging.Logger.g__LoggerLog|13_0[TState](LogLevel logLevel, EventId eventId, ILogger logger, Exception exception, Func`3 formatter, List`1& exceptions, TState& state) HResult:-2146233079 -------------------------------------------------------------------------------------- 3. [] System.ComponentModel.Win32Exception: Неизвестный интерфейс. Стек вызовов: HResult:-2147467259 Дополнительная информация из ExternalException: HRESULT=0x80004005 Информация из Win32Exception: NativeErrorCode=1717 -------------------------------------------------------------------------------------- 2024-02-20 14:53:41.1299 E:55 Microsoft.AspNetCore.Server.Kestrel Unhandled exception while processing 0HN1HUIHHPP62. 1. [Microsoft.Extensions.Logging] System.AggregateException: An error occurred while writing to logger(s). (Cannot open log for source 'Lers.Server'. You may not have write access.) Стек вызовов: at Microsoft.Extensions.Logging.Logger.ThrowLoggingError(List`1 exceptions) at Microsoft.Extensions.Logging.Logger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Infrastructure.KestrelTrace.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.Extensions.Logging.LoggerExtensions.Log(ILogger logger, LogLevel logLevel, EventId eventId, Exception exception, String message, Object[] args) at Microsoft.Extensions.Logging.LoggerExtensions.LogCritical(ILogger logger, EventId eventId, Exception exception, String message, Object[] args) at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.HttpConnection.ProcessRequestsAsync[TContext](IHttpApplication`1 httpApplication) at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Infrastructure.KestrelConnection`1.ExecuteAsync() HResult:-2146233088 -------------------------------------------------------------------------------------- 2. [System.Diagnostics.EventLog] System.InvalidOperationException: Cannot open log for source 'Lers.Server'. You may not have write access. Стек вызовов: at System.Diagnostics.EventLogInternal.OpenForWrite(String currentMachineName) at System.Diagnostics.EventLogInternal.InternalWriteEvent(UInt32 eventID, UInt16 category, EventLogEntryType type, String[] strings, Byte[] rawData, String currentMachineName) at System.Diagnostics.EventLogInternal.WriteEvent(EventInstance instance, Byte[] data, Object[] values) at Microsoft.Extensions.Logging.EventLog.WindowsEventLog.WriteEntry(String message, EventLogEntryType type, Int32 eventID, Int16 category) at Microsoft.Extensions.Logging.EventLog.EventLogLogger.WriteMessage(String message, EventLogEntryType eventLogEntryType, Int32 eventId) at Microsoft.Extensions.Logging.EventLog.EventLogLogger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.Extensions.Logging.Logger.g__LoggerLog|13_0[TState](LogLevel logLevel, EventId eventId, ILogger logger, Exception exception, Func`3 formatter, List`1& exceptions, TState& state) HResult:-2146233079 -------------------------------------------------------------------------------------- 3. [] System.ComponentModel.Win32Exception: Неизвестный интерфейс. Стек вызовов: HResult:-2147467259 Дополнительная информация из ExternalException: HRESULT=0x80004005 Информация из Win32Exception: NativeErrorCode=1717 -------------------------------------------------------------------------------------- 2024-02-20 14:53:41.1680 F:28 Microsoft.Extensions.Hosting.Internal.ApplicationLifetime An error occurred stopping the application 1. [System.Private.CoreLib] System.AggregateException: One or more errors occurred. (One or more errors occurred. (An error occurred while writing to logger(s). (Cannot open log for source 'Lers.Server'. You may not have write access.)) (An error occurred while writing to logger(s). (Cannot open log for source 'Lers.Server'. You may not have write access.))) Стек вызовов: at System.Threading.CancellationTokenSource.ExecuteCallbackHandlers(Boolean throwOnFirstException) at Microsoft.Extensions.Hosting.Internal.ApplicationLifetime.StopApplication() HResult:-2146233088 -------------------------------------------------------------------------------------- 2. [System.Private.CoreLib] System.AggregateException: One or more errors occurred. (An error occurred while writing to logger(s). (Cannot open log for source 'Lers.Server'. You may not have write access.)) (An error occurred while writing to logger(s). (Cannot open log for source 'Lers.Server'. You may not have write access.)) Стек вызовов: at System.Threading.Tasks.Task.WaitAllCore(Task[] tasks, Int32 millisecondsTimeout, CancellationToken cancellationToken) at System.Threading.Tasks.Task.WaitAll(Task[] tasks, TimeSpan timeout) at Microsoft.AspNetCore.Http.Connections.Internal.HttpConnectionManager.CloseConnections() at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) --- End of stack trace from previous location --- at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.CancellationTokenSource.ExecuteCallbackHandlers(Boolean throwOnFirstException) HResult:-2146233088 -------------------------------------------------------------------------------------- 3. [Microsoft.Extensions.Logging] System.AggregateException: An error occurred while writing to logger(s). (Cannot open log for source 'Lers.Server'. You may not have write access.) Стек вызовов: at Microsoft.Extensions.Logging.Logger.ThrowLoggingError(List`1 exceptions) at Microsoft.Extensions.Logging.Logger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.Extensions.Logging.Logger`1.Microsoft.Extensions.Logging.ILogger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.Extensions.Logging.LoggerMessage.<>c__DisplayClass10_0`1.g__Log|0(ILogger logger, T1 arg1, Exception exception) at Microsoft.AspNetCore.Http.Connections.Internal.HttpConnectionManager.DisposeAndRemoveAsync(HttpConnectionContext connection, Boolean closeGracefully) HResult:-2146233088 -------------------------------------------------------------------------------------- 4. [System.Diagnostics.EventLog] System.InvalidOperationException: Cannot open log for source 'Lers.Server'. You may not have write access. Стек вызовов: at System.Diagnostics.EventLogInternal.OpenForWrite(String currentMachineName) at System.Diagnostics.EventLogInternal.InternalWriteEvent(UInt32 eventID, UInt16 category, EventLogEntryType type, String[] strings, Byte[] rawData, String currentMachineName) at System.Diagnostics.EventLogInternal.WriteEvent(EventInstance instance, Byte[] data, Object[] values) at Microsoft.Extensions.Logging.EventLog.WindowsEventLog.WriteEntry(String message, EventLogEntryType type, Int32 eventID, Int16 category) at Microsoft.Extensions.Logging.EventLog.EventLogLogger.WriteMessage(String message, EventLogEntryType eventLogEntryType, Int32 eventId) at Microsoft.Extensions.Logging.EventLog.EventLogLogger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.Extensions.Logging.Logger.g__LoggerLog|13_0[TState](LogLevel logLevel, EventId eventId, ILogger logger, Exception exception, Func`3 formatter, List`1& exceptions, TState& state) HResult:-2146233079 -------------------------------------------------------------------------------------- 5. [] System.ComponentModel.Win32Exception: Неизвестный интерфейс. Стек вызовов: HResult:-2147467259 Дополнительная информация из ExternalException: HRESULT=0x80004005 Информация из Win32Exception: NativeErrorCode=1717 -------------------------------------------------------------------------------------- 2024-02-20 14:53:41.2313 E:17 Microsoft.Extensions.Hosting.Internal.Host BackgroundService failed 1. [Microsoft.Extensions.Logging] System.AggregateException: An error occurred while writing to logger(s). (Cannot open log for source 'Lers.Server'. You may not have write access.) Стек вызовов: at Microsoft.Extensions.Logging.Logger.ThrowLoggingError(List`1 exceptions) at Microsoft.Extensions.Logging.Logger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.Extensions.Logging.LoggerExtensions.Log(ILogger logger, LogLevel logLevel, EventId eventId, Exception exception, String message, Object[] args) at Microsoft.Extensions.Logging.LoggerExtensions.LogWarning(ILogger logger, String message, Object[] args) at Lers.Poll.PollQueueThread.Run(CancellationToken stoppingToken) at Microsoft.Extensions.Hosting.Internal.Host.TryExecuteBackgroundServiceAsync(BackgroundService backgroundService) HResult:-2146233088 -------------------------------------------------------------------------------------- 2. [System.Diagnostics.EventLog] System.InvalidOperationException: Cannot open log for source 'Lers.Server'. You may not have write access. Стек вызовов: at System.Diagnostics.EventLogInternal.OpenForWrite(String currentMachineName) at System.Diagnostics.EventLogInternal.InternalWriteEvent(UInt32 eventID, UInt16 category, EventLogEntryType type, String[] strings, Byte[] rawData, String currentMachineName) at System.Diagnostics.EventLogInternal.WriteEvent(EventInstance instance, Byte[] data, Object[] values) at Microsoft.Extensions.Logging.EventLog.WindowsEventLog.WriteEntry(String message, EventLogEntryType type, Int32 eventID, Int16 category) at Microsoft.Extensions.Logging.EventLog.EventLogLogger.WriteMessage(String message, EventLogEntryType eventLogEntryType, Int32 eventId) at Microsoft.Extensions.Logging.EventLog.EventLogLogger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.Extensions.Logging.Logger.g__LoggerLog|13_0[TState](LogLevel logLevel, EventId eventId, ILogger logger, Exception exception, Func`3 formatter, List`1& exceptions, TState& state) HResult:-2146233079 -------------------------------------------------------------------------------------- 3. [] System.ComponentModel.Win32Exception: Неизвестный интерфейс. Стек вызовов: HResult:-2147467259 Дополнительная информация из ExternalException: HRESULT=0x80004005 Информация из Win32Exception: NativeErrorCode=1717 -------------------------------------------------------------------------------------- 2024-02-20 15:04:08.4256 E:1 Program ============================================ 2024-02-20 15:04:08.4280 E:1 Program === Сервер запущен 2024-02-20 15:04:08.4280 E:1 Program ============================================ 2024-02-20 15:25:15.6388 E:44 Microsoft.EntityFrameworkCore.Database.Connection An error occurred using the connection to database 'LERS' on server '(local)\LERS'. 2024-02-20 15:25:15.6502 E:45 Microsoft.EntityFrameworkCore.Database.Connection An error occurred using the connection to database 'LERS' on server '(local)\LERS'. 00-4b2e3e357c2604edd48d710daeca44e7-e80eaf0a738cd9ff-00 2024-02-20 15:25:15.7465 E:45 Microsoft.EntityFrameworkCore.Query An exception occurred while iterating over the results of a query for context type 'Lers.Dal.LersDbContext'. System.AggregateException: An error occurred while writing to logger(s). (Cannot open log for source 'Lers.Server'. You may not have write access.) ---> System.InvalidOperationException: Cannot open log for source 'Lers.Server'. You may not have write access. ---> System.ComponentModel.Win32Exception (1717): Неизвестный интерфейс. --- End of inner exception stack trace --- at System.Diagnostics.EventLogInternal.OpenForWrite(String currentMachineName) at System.Diagnostics.EventLogInternal.InternalWriteEvent(UInt32 eventID, UInt16 category, EventLogEntryType type, String[] strings, Byte[] rawData, String currentMachineName) at System.Diagnostics.EventLogInternal.WriteEvent(EventInstance instance, Byte[] data, Object[] values) at Microsoft.Extensions.Logging.EventLog.WindowsEventLog.WriteEntry(String message, EventLogEntryType type, Int32 eventID, Int16 category) at Microsoft.Extensions.Logging.EventLog.EventLogLogger.WriteMessage(String message, EventLogEntryType eventLogEntryType, Int32 eventId) at Microsoft.Extensions.Logging.EventLog.EventLogLogger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.Extensions.Logging.Logger.g__LoggerLog|13_0[TState](LogLevel logLevel, EventId eventId, ILogger logger, Exception exception, Func`3 formatter, List`1& exceptions, TState& state) --- End of inner exception stack trace --- at Microsoft.Extensions.Logging.Logger.ThrowLoggingError(List`1 exceptions) at Microsoft.Extensions.Logging.Logger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.Extensions.Logging.LoggerMessage.<>c__DisplayClass12_0`2.g__Log|0(ILogger logger, T1 arg1, T2 arg2, Exception exception) at Microsoft.EntityFrameworkCore.Diagnostics.EventDefinition`2.Log[TLoggerCategory](IDiagnosticsLogger`1 logger, TParam1 arg1, TParam2 arg2) at Microsoft.EntityFrameworkCore.Diagnostics.Internal.RelationalConnectionDiagnosticsLogger.LogConnectionError(IRelationalConnection connection, EventDefinition`2 definition) at Microsoft.EntityFrameworkCore.Diagnostics.Internal.RelationalConnectionDiagnosticsLogger.ConnectionError(IRelationalConnection connection, Exception exception, DateTimeOffset startTime, TimeSpan duration, Boolean logErrorAsDebug) at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.OpenInternal(Boolean errorsExpected) at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.Open(Boolean errorsExpected) at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReader(RelationalCommandParameterObject parameterObject) at Microsoft.EntityFrameworkCore.Query.Internal.SingleQueryingEnumerable`1.Enumerator.InitializeReader(Enumerator enumerator) at Microsoft.EntityFrameworkCore.Storage.ExecutionStrategy.<>c__DisplayClass28_0`2.b__0(DbContext context, TState state) at Microsoft.EntityFrameworkCore.Storage.ExecutionStrategy.ExecuteImplementation[TState,TResult](Func`3 operation, Func`3 verifySucceeded, TState state) at Microsoft.EntityFrameworkCore.Storage.ExecutionStrategy.Execute[TState,TResult](TState state, Func`3 operation, Func`3 verifySucceeded) at Microsoft.EntityFrameworkCore.Query.Internal.SingleQueryingEnumerable`1.Enumerator.MoveNext() 1. [Microsoft.Extensions.Logging] System.AggregateException: An error occurred while writing to logger(s). (Cannot open log for source 'Lers.Server'. You may not have write access.) Стек вызовов: at Microsoft.Extensions.Logging.Logger.ThrowLoggingError(List`1 exceptions) at Microsoft.Extensions.Logging.Logger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.Extensions.Logging.LoggerMessage.<>c__DisplayClass12_0`2.g__Log|0(ILogger logger, T1 arg1, T2 arg2, Exception exception) at Microsoft.EntityFrameworkCore.Diagnostics.EventDefinition`2.Log[TLoggerCategory](IDiagnosticsLogger`1 logger, TParam1 arg1, TParam2 arg2) at Microsoft.EntityFrameworkCore.Diagnostics.Internal.RelationalConnectionDiagnosticsLogger.LogConnectionError(IRelationalConnection connection, EventDefinition`2 definition) at Microsoft.EntityFrameworkCore.Diagnostics.Internal.RelationalConnectionDiagnosticsLogger.ConnectionError(IRelationalConnection connection, Exception exception, DateTimeOffset startTime, TimeSpan duration, Boolean logErrorAsDebug) at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.OpenInternal(Boolean errorsExpected) at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.Open(Boolean errorsExpected) at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReader(RelationalCommandParameterObject parameterObject) at Microsoft.EntityFrameworkCore.Query.Internal.SingleQueryingEnumerable`1.Enumerator.InitializeReader(Enumerator enumerator) at Microsoft.EntityFrameworkCore.Storage.ExecutionStrategy.<>c__DisplayClass28_0`2.b__0(DbContext context, TState state) at Microsoft.EntityFrameworkCore.Storage.ExecutionStrategy.ExecuteImplementation[TState,TResult](Func`3 operation, Func`3 verifySucceeded, TState state) at Microsoft.EntityFrameworkCore.Storage.ExecutionStrategy.Execute[TState,TResult](TState state, Func`3 operation, Func`3 verifySucceeded) at Microsoft.EntityFrameworkCore.Query.Internal.SingleQueryingEnumerable`1.Enumerator.MoveNext() HResult:-2146233088 -------------------------------------------------------------------------------------- 2. [System.Diagnostics.EventLog] System.InvalidOperationException: Cannot open log for source 'Lers.Server'. You may not have write access. Стек вызовов: at System.Diagnostics.EventLogInternal.OpenForWrite(String currentMachineName) at System.Diagnostics.EventLogInternal.InternalWriteEvent(UInt32 eventID, UInt16 category, EventLogEntryType type, String[] strings, Byte[] rawData, String currentMachineName) at System.Diagnostics.EventLogInternal.WriteEvent(EventInstance instance, Byte[] data, Object[] values) at Microsoft.Extensions.Logging.EventLog.WindowsEventLog.WriteEntry(String message, EventLogEntryType type, Int32 eventID, Int16 category) at Microsoft.Extensions.Logging.EventLog.EventLogLogger.WriteMessage(String message, EventLogEntryType eventLogEntryType, Int32 eventId) at Microsoft.Extensions.Logging.EventLog.EventLogLogger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.Extensions.Logging.Logger.g__LoggerLog|13_0[TState](LogLevel logLevel, EventId eventId, ILogger logger, Exception exception, Func`3 formatter, List`1& exceptions, TState& state) HResult:-2146233079 -------------------------------------------------------------------------------------- 3. [] System.ComponentModel.Win32Exception: Неизвестный интерфейс. Стек вызовов: HResult:-2147467259 Дополнительная информация из ExternalException: HRESULT=0x80004005 Информация из Win32Exception: NativeErrorCode=1717 -------------------------------------------------------------------------------------- 00-4b2e3e357c2604edd48d710daeca44e7-e80eaf0a738cd9ff-00 2024-02-20 15:25:15.7465 E:44 Microsoft.EntityFrameworkCore.Query An exception occurred while iterating over the results of a query for context type 'Lers.Dal.LersDbContext'. System.AggregateException: An error occurred while writing to logger(s). (Cannot open log for source 'Lers.Server'. You may not have write access.) ---> System.InvalidOperationException: Cannot open log for source 'Lers.Server'. You may not have write access. ---> System.ComponentModel.Win32Exception (1717): Неизвестный интерфейс. --- End of inner exception stack trace --- at System.Diagnostics.EventLogInternal.OpenForWrite(String currentMachineName) at System.Diagnostics.EventLogInternal.InternalWriteEvent(UInt32 eventID, UInt16 category, EventLogEntryType type, String[] strings, Byte[] rawData, String currentMachineName) at System.Diagnostics.EventLogInternal.WriteEvent(EventInstance instance, Byte[] data, Object[] values) at Microsoft.Extensions.Logging.EventLog.WindowsEventLog.WriteEntry(String message, EventLogEntryType type, Int32 eventID, Int16 category) at Microsoft.Extensions.Logging.EventLog.EventLogLogger.WriteMessage(String message, EventLogEntryType eventLogEntryType, Int32 eventId) at Microsoft.Extensions.Logging.EventLog.EventLogLogger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.Extensions.Logging.Logger.g__LoggerLog|13_0[TState](LogLevel logLevel, EventId eventId, ILogger logger, Exception exception, Func`3 formatter, List`1& exceptions, TState& state) --- End of inner exception stack trace --- at Microsoft.Extensions.Logging.Logger.ThrowLoggingError(List`1 exceptions) at Microsoft.Extensions.Logging.Logger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.Extensions.Logging.LoggerMessage.<>c__DisplayClass12_0`2.g__Log|0(ILogger logger, T1 arg1, T2 arg2, Exception exception) at Microsoft.EntityFrameworkCore.Diagnostics.EventDefinition`2.Log[TLoggerCategory](IDiagnosticsLogger`1 logger, TParam1 arg1, TParam2 arg2) at Microsoft.EntityFrameworkCore.Diagnostics.Internal.RelationalConnectionDiagnosticsLogger.LogConnectionError(IRelationalConnection connection, EventDefinition`2 definition) at Microsoft.EntityFrameworkCore.Diagnostics.Internal.RelationalConnectionDiagnosticsLogger.ConnectionError(IRelationalConnection connection, Exception exception, DateTimeOffset startTime, TimeSpan duration, Boolean logErrorAsDebug) at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.OpenInternal(Boolean errorsExpected) at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.Open(Boolean errorsExpected) at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReader(RelationalCommandParameterObject parameterObject) at Microsoft.EntityFrameworkCore.Query.Internal.SingleQueryingEnumerable`1.Enumerator.InitializeReader(Enumerator enumerator) at Microsoft.EntityFrameworkCore.Storage.ExecutionStrategy.<>c__DisplayClass28_0`2.b__0(DbContext context, TState state) at Microsoft.EntityFrameworkCore.Storage.ExecutionStrategy.ExecuteImplementation[TState,TResult](Func`3 operation, Func`3 verifySucceeded, TState state) at Microsoft.EntityFrameworkCore.Storage.ExecutionStrategy.Execute[TState,TResult](TState state, Func`3 operation, Func`3 verifySucceeded) at Microsoft.EntityFrameworkCore.Query.Internal.SingleQueryingEnumerable`1.Enumerator.MoveNext() 1. [Microsoft.Extensions.Logging] System.AggregateException: An error occurred while writing to logger(s). (Cannot open log for source 'Lers.Server'. You may not have write access.) Стек вызовов: at Microsoft.Extensions.Logging.Logger.ThrowLoggingError(List`1 exceptions) at Microsoft.Extensions.Logging.Logger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.Extensions.Logging.LoggerMessage.<>c__DisplayClass12_0`2.g__Log|0(ILogger logger, T1 arg1, T2 arg2, Exception exception) at Microsoft.EntityFrameworkCore.Diagnostics.EventDefinition`2.Log[TLoggerCategory](IDiagnosticsLogger`1 logger, TParam1 arg1, TParam2 arg2) at Microsoft.EntityFrameworkCore.Diagnostics.Internal.RelationalConnectionDiagnosticsLogger.LogConnectionError(IRelationalConnection connection, EventDefinition`2 definition) at Microsoft.EntityFrameworkCore.Diagnostics.Internal.RelationalConnectionDiagnosticsLogger.ConnectionError(IRelationalConnection connection, Exception exception, DateTimeOffset startTime, TimeSpan duration, Boolean logErrorAsDebug) at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.OpenInternal(Boolean errorsExpected) at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.Open(Boolean errorsExpected) at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReader(RelationalCommandParameterObject parameterObject) at Microsoft.EntityFrameworkCore.Query.Internal.SingleQueryingEnumerable`1.Enumerator.InitializeReader(Enumerator enumerator) at Microsoft.EntityFrameworkCore.Storage.ExecutionStrategy.<>c__DisplayClass28_0`2.b__0(DbContext context, TState state) at Microsoft.EntityFrameworkCore.Storage.ExecutionStrategy.ExecuteImplementation[TState,TResult](Func`3 operation, Func`3 verifySucceeded, TState state) at Microsoft.EntityFrameworkCore.Storage.ExecutionStrategy.Execute[TState,TResult](TState state, Func`3 operation, Func`3 verifySucceeded) at Microsoft.EntityFrameworkCore.Query.Internal.SingleQueryingEnumerable`1.Enumerator.MoveNext() HResult:-2146233088 -------------------------------------------------------------------------------------- 2. [System.Diagnostics.EventLog] System.InvalidOperationException: Cannot open log for source 'Lers.Server'. You may not have write access. Стек вызовов: at System.Diagnostics.EventLogInternal.OpenForWrite(String currentMachineName) at System.Diagnostics.EventLogInternal.InternalWriteEvent(UInt32 eventID, UInt16 category, EventLogEntryType type, String[] strings, Byte[] rawData, String currentMachineName) at System.Diagnostics.EventLogInternal.WriteEvent(EventInstance instance, Byte[] data, Object[] values) at Microsoft.Extensions.Logging.EventLog.WindowsEventLog.WriteEntry(String message, EventLogEntryType type, Int32 eventID, Int16 category) at Microsoft.Extensions.Logging.EventLog.EventLogLogger.WriteMessage(String message, EventLogEntryType eventLogEntryType, Int32 eventId) at Microsoft.Extensions.Logging.EventLog.EventLogLogger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.Extensions.Logging.Logger.g__LoggerLog|13_0[TState](LogLevel logLevel, EventId eventId, ILogger logger, Exception exception, Func`3 formatter, List`1& exceptions, TState& state) HResult:-2146233079 -------------------------------------------------------------------------------------- 3. [] System.ComponentModel.Win32Exception: Неизвестный интерфейс. Стек вызовов: HResult:-2147467259 Дополнительная информация из ExternalException: HRESULT=0x80004005 Информация из Win32Exception: NativeErrorCode=1717 -------------------------------------------------------------------------------------- 2024-02-20 15:25:16.0816 E:44 Microsoft.AspNetCore.SignalR.HubConnectionHandler Error when dispatching 'OnDisconnectedAsync' on hub. 1. [Microsoft.Extensions.Logging] System.AggregateException: An error occurred while writing to logger(s). (Cannot open log for source 'Lers.Server'. You may not have write access.) Стек вызовов: at Microsoft.Extensions.Logging.Logger.ThrowLoggingError(List`1 exceptions) at Microsoft.Extensions.Logging.Logger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.Extensions.Logging.LoggerMessage.<>c__DisplayClass14_0`3.g__Log|0(ILogger logger, T1 arg1, T2 arg2, T3 arg3, Exception exception) at Microsoft.EntityFrameworkCore.Diagnostics.EventDefinition`3.Log[TLoggerCategory](IDiagnosticsLogger`1 logger, TParam1 arg1, TParam2 arg2, TParam3 arg3, Exception exception) at Microsoft.EntityFrameworkCore.Diagnostics.CoreLoggerExtensions.QueryIterationFailed(IDiagnosticsLogger`1 diagnostics, Type contextType, Exception exception) at Microsoft.EntityFrameworkCore.Query.Internal.SingleQueryingEnumerable`1.Enumerator.MoveNext() at System.Linq.Enumerable.TryGetSingle[TSource](IEnumerable`1 source, Boolean& found) at lambda_method7818(Closure, QueryContext) at Lers.Dal.UserSessionDataAccess.UpdateUserSessionLog(Int32 sessionId, DateTime endDatetime, DisconnectionCode exitCode) at Lers.UserSessions.EndUserSessionHandler.CloseUserSessionAsync(UserSession session, DisconnectionCode exitCode) at Lers.UserSessions.EndUserSessionHandler.EndSessionAsync(String connectionId) at Lers.Server.Api.Rpc.ServerHub.OnDisconnectedAsync(Exception exception) at Microsoft.AspNetCore.SignalR.Internal.DefaultHubDispatcher`1.OnDisconnectedAsync(HubConnectionContext connection, Exception exception) at Microsoft.AspNetCore.SignalR.Internal.DefaultHubDispatcher`1.OnDisconnectedAsync(HubConnectionContext connection, Exception exception) at Microsoft.AspNetCore.SignalR.HubConnectionHandler`1.HubOnDisconnectedAsync(HubConnectionContext connection, Exception exception) HResult:-2146233088 -------------------------------------------------------------------------------------- 2. [System.Diagnostics.EventLog] System.InvalidOperationException: Cannot open log for source 'Lers.Server'. You may not have write access. Стек вызовов: at System.Diagnostics.EventLogInternal.OpenForWrite(String currentMachineName) at System.Diagnostics.EventLogInternal.InternalWriteEvent(UInt32 eventID, UInt16 category, EventLogEntryType type, String[] strings, Byte[] rawData, String currentMachineName) at System.Diagnostics.EventLogInternal.WriteEvent(EventInstance instance, Byte[] data, Object[] values) at Microsoft.Extensions.Logging.EventLog.WindowsEventLog.WriteEntry(String message, EventLogEntryType type, Int32 eventID, Int16 category) at Microsoft.Extensions.Logging.EventLog.EventLogLogger.WriteMessage(String message, EventLogEntryType eventLogEntryType, Int32 eventId) at Microsoft.Extensions.Logging.EventLog.EventLogLogger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.Extensions.Logging.Logger.g__LoggerLog|13_0[TState](LogLevel logLevel, EventId eventId, ILogger logger, Exception exception, Func`3 formatter, List`1& exceptions, TState& state) HResult:-2146233079 -------------------------------------------------------------------------------------- 3. [] System.ComponentModel.Win32Exception: Неизвестный интерфейс. Стек вызовов: HResult:-2147467259 Дополнительная информация из ExternalException: HRESULT=0x80004005 Информация из Win32Exception: NativeErrorCode=1717 -------------------------------------------------------------------------------------- 2024-02-20 15:25:16.1024 E:44 Microsoft.AspNetCore.Http.Connections.Internal.HttpConnectionManager Failed disposing connection BqtlESgCsZ3yJq1U-KqukA. 1. [Microsoft.Extensions.Logging] System.AggregateException: An error occurred while writing to logger(s). (Cannot open log for source 'Lers.Server'. You may not have write access.) Стек вызовов: at Microsoft.Extensions.Logging.Logger.ThrowLoggingError(List`1 exceptions) at Microsoft.Extensions.Logging.Logger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.Extensions.Logging.Logger`1.Microsoft.Extensions.Logging.ILogger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.Extensions.Logging.LoggerMessage.<>c__DisplayClass10_0`1.g__Log|0(ILogger logger, T1 arg1, Exception exception) at Microsoft.AspNetCore.SignalR.HubConnectionHandler`1.HubOnDisconnectedAsync(HubConnectionContext connection, Exception exception) at Microsoft.AspNetCore.SignalR.HubConnectionHandler`1.RunHubAsync(HubConnectionContext connection) at Microsoft.AspNetCore.SignalR.HubConnectionHandler`1.OnConnectedAsync(ConnectionContext connection) at Microsoft.AspNetCore.SignalR.HubConnectionHandler`1.OnConnectedAsync(ConnectionContext connection) at Microsoft.AspNetCore.Http.Connections.Internal.HttpConnectionContext.ExecuteApplication(ConnectionDelegate connectionDelegate) at Microsoft.AspNetCore.Http.Connections.Internal.HttpConnectionContext.WaitOnTasks(Task applicationTask, Task transportTask, Boolean closeGracefully) at Microsoft.AspNetCore.Http.Connections.Internal.HttpConnectionContext.DisposeAsync(Boolean closeGracefully) at Microsoft.AspNetCore.Http.Connections.Internal.HttpConnectionManager.DisposeAndRemoveAsync(HttpConnectionContext connection, Boolean closeGracefully) HResult:-2146233088 -------------------------------------------------------------------------------------- 2. [System.Diagnostics.EventLog] System.InvalidOperationException: Cannot open log for source 'Lers.Server'. You may not have write access. Стек вызовов: at System.Diagnostics.EventLogInternal.OpenForWrite(String currentMachineName) at System.Diagnostics.EventLogInternal.InternalWriteEvent(UInt32 eventID, UInt16 category, EventLogEntryType type, String[] strings, Byte[] rawData, String currentMachineName) at System.Diagnostics.EventLogInternal.WriteEvent(EventInstance instance, Byte[] data, Object[] values) at Microsoft.Extensions.Logging.EventLog.WindowsEventLog.WriteEntry(String message, EventLogEntryType type, Int32 eventID, Int16 category) at Microsoft.Extensions.Logging.EventLog.EventLogLogger.WriteMessage(String message, EventLogEntryType eventLogEntryType, Int32 eventId) at Microsoft.Extensions.Logging.EventLog.EventLogLogger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.Extensions.Logging.Logger.g__LoggerLog|13_0[TState](LogLevel logLevel, EventId eventId, ILogger logger, Exception exception, Func`3 formatter, List`1& exceptions, TState& state) HResult:-2146233079 -------------------------------------------------------------------------------------- 3. [] System.ComponentModel.Win32Exception: Удаленный вызов процедуры был отменен. Стек вызовов: HResult:-2147467259 Дополнительная информация из ExternalException: HRESULT=0x80004005 Информация из Win32Exception: NativeErrorCode=1818 -------------------------------------------------------------------------------------- 2024-02-20 15:25:16.1109 E:45 Microsoft.AspNetCore.SignalR.HubConnectionHandler Error when dispatching 'OnDisconnectedAsync' on hub. 1. [Microsoft.Extensions.Logging] System.AggregateException: An error occurred while writing to logger(s). (Cannot open log for source 'Lers.Server'. You may not have write access.) Стек вызовов: at Microsoft.Extensions.Logging.Logger.ThrowLoggingError(List`1 exceptions) at Microsoft.Extensions.Logging.Logger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.Extensions.Logging.LoggerMessage.<>c__DisplayClass14_0`3.g__Log|0(ILogger logger, T1 arg1, T2 arg2, T3 arg3, Exception exception) at Microsoft.EntityFrameworkCore.Diagnostics.EventDefinition`3.Log[TLoggerCategory](IDiagnosticsLogger`1 logger, TParam1 arg1, TParam2 arg2, TParam3 arg3, Exception exception) at Microsoft.EntityFrameworkCore.Diagnostics.CoreLoggerExtensions.QueryIterationFailed(IDiagnosticsLogger`1 diagnostics, Type contextType, Exception exception) at Microsoft.EntityFrameworkCore.Query.Internal.SingleQueryingEnumerable`1.Enumerator.MoveNext() at System.Linq.Enumerable.TryGetSingle[TSource](IEnumerable`1 source, Boolean& found) at lambda_method7818(Closure, QueryContext) at Lers.Dal.UserSessionDataAccess.UpdateUserSessionLog(Int32 sessionId, DateTime endDatetime, DisconnectionCode exitCode) at Lers.UserSessions.EndUserSessionHandler.CloseUserSessionAsync(UserSession session, DisconnectionCode exitCode) at Lers.UserSessions.EndUserSessionHandler.EndSessionAsync(String connectionId) at Lers.Server.Api.Rpc.ServerHub.OnDisconnectedAsync(Exception exception) at Microsoft.AspNetCore.SignalR.Internal.DefaultHubDispatcher`1.OnDisconnectedAsync(HubConnectionContext connection, Exception exception) at Microsoft.AspNetCore.SignalR.Internal.DefaultHubDispatcher`1.OnDisconnectedAsync(HubConnectionContext connection, Exception exception) at Microsoft.AspNetCore.SignalR.HubConnectionHandler`1.HubOnDisconnectedAsync(HubConnectionContext connection, Exception exception) HResult:-2146233088 -------------------------------------------------------------------------------------- 2. [System.Diagnostics.EventLog] System.InvalidOperationException: Cannot open log for source 'Lers.Server'. You may not have write access. Стек вызовов: at System.Diagnostics.EventLogInternal.OpenForWrite(String currentMachineName) at System.Diagnostics.EventLogInternal.InternalWriteEvent(UInt32 eventID, UInt16 category, EventLogEntryType type, String[] strings, Byte[] rawData, String currentMachineName) at System.Diagnostics.EventLogInternal.WriteEvent(EventInstance instance, Byte[] data, Object[] values) at Microsoft.Extensions.Logging.EventLog.WindowsEventLog.WriteEntry(String message, EventLogEntryType type, Int32 eventID, Int16 category) at Microsoft.Extensions.Logging.EventLog.EventLogLogger.WriteMessage(String message, EventLogEntryType eventLogEntryType, Int32 eventId) at Microsoft.Extensions.Logging.EventLog.EventLogLogger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.Extensions.Logging.Logger.g__LoggerLog|13_0[TState](LogLevel logLevel, EventId eventId, ILogger logger, Exception exception, Func`3 formatter, List`1& exceptions, TState& state) HResult:-2146233079 -------------------------------------------------------------------------------------- 3. [] System.ComponentModel.Win32Exception: Неизвестный интерфейс. Стек вызовов: HResult:-2147467259 Дополнительная информация из ExternalException: HRESULT=0x80004005 Информация из Win32Exception: NativeErrorCode=1717 -------------------------------------------------------------------------------------- 00-4b2e3e357c2604edd48d710daeca44e7-e80eaf0a738cd9ff-00 2024-02-20 15:25:16.1109 E:45 Microsoft.AspNetCore.Http.Connections.Internal.HttpConnectionManager Failed disposing connection POEi5EZtIAuxUA-ssIKEEA. 1. [Microsoft.Extensions.Logging] System.AggregateException: An error occurred while writing to logger(s). (Cannot open log for source 'Lers.Server'. You may not have write access.) Стек вызовов: at Microsoft.Extensions.Logging.Logger.ThrowLoggingError(List`1 exceptions) at Microsoft.Extensions.Logging.Logger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.Extensions.Logging.Logger`1.Microsoft.Extensions.Logging.ILogger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.Extensions.Logging.LoggerMessage.<>c__DisplayClass10_0`1.g__Log|0(ILogger logger, T1 arg1, Exception exception) at Microsoft.AspNetCore.SignalR.HubConnectionHandler`1.HubOnDisconnectedAsync(HubConnectionContext connection, Exception exception) at Microsoft.AspNetCore.SignalR.HubConnectionHandler`1.RunHubAsync(HubConnectionContext connection) at Microsoft.AspNetCore.SignalR.HubConnectionHandler`1.OnConnectedAsync(ConnectionContext connection) at Microsoft.AspNetCore.SignalR.HubConnectionHandler`1.OnConnectedAsync(ConnectionContext connection) at Microsoft.AspNetCore.Http.Connections.Internal.HttpConnectionContext.ExecuteApplication(ConnectionDelegate connectionDelegate) at Microsoft.AspNetCore.Http.Connections.Internal.HttpConnectionContext.WaitOnTasks(Task applicationTask, Task transportTask, Boolean closeGracefully) at Microsoft.AspNetCore.Http.Connections.Internal.HttpConnectionContext.DisposeAsync(Boolean closeGracefully) at Microsoft.AspNetCore.Http.Connections.Internal.HttpConnectionManager.DisposeAndRemoveAsync(HttpConnectionContext connection, Boolean closeGracefully) HResult:-2146233088 -------------------------------------------------------------------------------------- 2. [System.Diagnostics.EventLog] System.InvalidOperationException: Cannot open log for source 'Lers.Server'. You may not have write access. Стек вызовов: at System.Diagnostics.EventLogInternal.OpenForWrite(String currentMachineName) at System.Diagnostics.EventLogInternal.InternalWriteEvent(UInt32 eventID, UInt16 category, EventLogEntryType type, String[] strings, Byte[] rawData, String currentMachineName) at System.Diagnostics.EventLogInternal.WriteEvent(EventInstance instance, Byte[] data, Object[] values) at Microsoft.Extensions.Logging.EventLog.WindowsEventLog.WriteEntry(String message, EventLogEntryType type, Int32 eventID, Int16 category) at Microsoft.Extensions.Logging.EventLog.EventLogLogger.WriteMessage(String message, EventLogEntryType eventLogEntryType, Int32 eventId) at Microsoft.Extensions.Logging.EventLog.EventLogLogger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.Extensions.Logging.Logger.g__LoggerLog|13_0[TState](LogLevel logLevel, EventId eventId, ILogger logger, Exception exception, Func`3 formatter, List`1& exceptions, TState& state) HResult:-2146233079 -------------------------------------------------------------------------------------- 3. [] System.ComponentModel.Win32Exception: Сервер RPC недоступен. Стек вызовов: HResult:-2147467259 Дополнительная информация из ExternalException: HRESULT=0x80004005 Информация из Win32Exception: NativeErrorCode=1722 -------------------------------------------------------------------------------------- 2024-02-20 15:25:16.1109 E:45 Microsoft.AspNetCore.Http.Connections.Internal.HttpConnectionManager Failed disposing connection POEi5EZtIAuxUA-ssIKEEA. 1. [Microsoft.Extensions.Logging] System.AggregateException: An error occurred while writing to logger(s). (Cannot open log for source 'Lers.Server'. You may not have write access.) Стек вызовов: at Microsoft.Extensions.Logging.Logger.ThrowLoggingError(List`1 exceptions) at Microsoft.Extensions.Logging.Logger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.Extensions.Logging.Logger`1.Microsoft.Extensions.Logging.ILogger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.Extensions.Logging.LoggerMessage.<>c__DisplayClass10_0`1.g__Log|0(ILogger logger, T1 arg1, Exception exception) at Microsoft.AspNetCore.SignalR.HubConnectionHandler`1.HubOnDisconnectedAsync(HubConnectionContext connection, Exception exception) at Microsoft.AspNetCore.SignalR.HubConnectionHandler`1.RunHubAsync(HubConnectionContext connection) at Microsoft.AspNetCore.SignalR.HubConnectionHandler`1.OnConnectedAsync(ConnectionContext connection) at Microsoft.AspNetCore.SignalR.HubConnectionHandler`1.OnConnectedAsync(ConnectionContext connection) at Microsoft.AspNetCore.Http.Connections.Internal.HttpConnectionContext.ExecuteApplication(ConnectionDelegate connectionDelegate) at Microsoft.AspNetCore.Http.Connections.Internal.HttpConnectionContext.WaitOnTasks(Task applicationTask, Task transportTask, Boolean closeGracefully) at Microsoft.AspNetCore.Http.Connections.Internal.HttpConnectionContext.DisposeAsync(Boolean closeGracefully) at Microsoft.AspNetCore.Http.Connections.Internal.HttpConnectionManager.DisposeAndRemoveAsync(HttpConnectionContext connection, Boolean closeGracefully) HResult:-2146233088 -------------------------------------------------------------------------------------- 2. [System.Diagnostics.EventLog] System.InvalidOperationException: Cannot open log for source 'Lers.Server'. You may not have write access. Стек вызовов: at System.Diagnostics.EventLogInternal.OpenForWrite(String currentMachineName) at System.Diagnostics.EventLogInternal.InternalWriteEvent(UInt32 eventID, UInt16 category, EventLogEntryType type, String[] strings, Byte[] rawData, String currentMachineName) at System.Diagnostics.EventLogInternal.WriteEvent(EventInstance instance, Byte[] data, Object[] values) at Microsoft.Extensions.Logging.EventLog.WindowsEventLog.WriteEntry(String message, EventLogEntryType type, Int32 eventID, Int16 category) at Microsoft.Extensions.Logging.EventLog.EventLogLogger.WriteMessage(String message, EventLogEntryType eventLogEntryType, Int32 eventId) at Microsoft.Extensions.Logging.EventLog.EventLogLogger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.Extensions.Logging.Logger.g__LoggerLog|13_0[TState](LogLevel logLevel, EventId eventId, ILogger logger, Exception exception, Func`3 formatter, List`1& exceptions, TState& state) HResult:-2146233079 -------------------------------------------------------------------------------------- 3. [] System.ComponentModel.Win32Exception: Сервер RPC недоступен. Стек вызовов: HResult:-2147467259 Дополнительная информация из ExternalException: HRESULT=0x80004005 Информация из Win32Exception: NativeErrorCode=1722 -------------------------------------------------------------------------------------- 00-4b2e3e357c2604edd48d710daeca44e7-e80eaf0a738cd9ff-00 2024-02-20 15:25:16.1109 E:46 Microsoft.EntityFrameworkCore.Database.Connection An error occurred using the connection to database 'LERS' on server '(local)\LERS'. 2024-02-20 15:25:16.1109 E:46 Lers.Logging.SystemLog Не удалось добавить запись в системный журнал. An error occurred while writing to logger(s). (Cannot open log for source 'Lers.Server'. You may not have write access.) 2024-02-20 15:25:16.1374 E:45 Microsoft.AspNetCore.Server.Kestrel Connection id "0HN1I1G9MRVLT", Request id "0HN1I1G9MRVLT:00000001": An unhandled exception was thrown by the application. 1. [Microsoft.Extensions.Logging] System.AggregateException: An error occurred while writing to logger(s). (Cannot open log for source 'Lers.Server'. You may not have write access.) Стек вызовов: at Microsoft.Extensions.Logging.Logger.ThrowLoggingError(List`1 exceptions) at Microsoft.Extensions.Logging.Logger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.Extensions.Logging.Logger`1.Microsoft.Extensions.Logging.ILogger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.Extensions.Logging.LoggerMessage.<>c__DisplayClass10_0`1.g__Log|0(ILogger logger, T1 arg1, Exception exception) at Microsoft.AspNetCore.Http.Connections.Internal.HttpConnectionManager.DisposeAndRemoveAsync(HttpConnectionContext connection, Boolean closeGracefully) at Microsoft.AspNetCore.Http.Connections.Internal.HttpConnectionDispatcher.DoPersistentConnection(ConnectionDelegate connectionDelegate, IHttpTransport transport, HttpContext context, HttpConnectionContext connection) at Microsoft.AspNetCore.Http.Connections.Internal.HttpConnectionDispatcher.ExecuteAsync(HttpContext context, ConnectionDelegate connectionDelegate, HttpConnectionDispatcherOptions options, ConnectionLogScope logScope) at Microsoft.AspNetCore.Http.Connections.Internal.HttpConnectionDispatcher.ExecuteAsync(HttpContext context, HttpConnectionDispatcherOptions options, ConnectionDelegate connectionDelegate) at Microsoft.AspNetCore.Routing.EndpointMiddleware.g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger) at Lers.Server.License.LicenseRestrictiontMiddleware.Invoke(HttpContext context, IServerLicense serverLicense, IMemoryCache memoryCache) at Lers.Server.Security.Authorization.AccountContextMiddleware.Invoke(HttpContext context, IAccountManager accountRepo, IUserSessionManager userSessions, ILogger`1 logger) at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context) at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context) at Lers.Server.ExceptionFilterExtensions.<>c.<b__0_0>d.MoveNext() --- End of stack trace from previous location --- at Lers.Server.Infrastructure.RequestCompressionMiddleware.Invoke(HttpContext context) at Lers.Server.Infrastructure.DatabaseErrorMiddleware.Invoke(HttpContext context, DatabaseStateInformation stateInfo) at StackExchange.Profiling.MiniProfilerMiddleware.Invoke(HttpContext context) in C:\projects\dotnet\src\MiniProfiler.AspNetCore\MiniProfilerMiddleware.cs:line 114 at Microsoft.AspNetCore.Builder.RouterMiddleware.Invoke(HttpContext httpContext) at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context) at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context) at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpProtocol.ProcessRequests[TContext](IHttpApplication`1 application) HResult:-2146233088 -------------------------------------------------------------------------------------- 2. [System.Diagnostics.EventLog] System.InvalidOperationException: Cannot open log for source 'Lers.Server'. You may not have write access. Стек вызовов: at System.Diagnostics.EventLogInternal.OpenForWrite(String currentMachineName) at System.Diagnostics.EventLogInternal.InternalWriteEvent(UInt32 eventID, UInt16 category, EventLogEntryType type, String[] strings, Byte[] rawData, String currentMachineName) at System.Diagnostics.EventLogInternal.WriteEvent(EventInstance instance, Byte[] data, Object[] values) at Microsoft.Extensions.Logging.EventLog.WindowsEventLog.WriteEntry(String message, EventLogEntryType type, Int32 eventID, Int16 category) at Microsoft.Extensions.Logging.EventLog.EventLogLogger.WriteMessage(String message, EventLogEntryType eventLogEntryType, Int32 eventId) at Microsoft.Extensions.Logging.EventLog.EventLogLogger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.Extensions.Logging.Logger.g__LoggerLog|13_0[TState](LogLevel logLevel, EventId eventId, ILogger logger, Exception exception, Func`3 formatter, List`1& exceptions, TState& state) HResult:-2146233079 -------------------------------------------------------------------------------------- 3. [] System.ComponentModel.Win32Exception: Сервер RPC недоступен. Стек вызовов: HResult:-2147467259 Дополнительная информация из ExternalException: HRESULT=0x80004005 Информация из Win32Exception: NativeErrorCode=1722 -------------------------------------------------------------------------------------- 00-4b2e3e357c2604edd48d710daeca44e7-e80eaf0a738cd9ff-00 2024-02-20 15:25:16.1438 F:45 Microsoft.AspNetCore.Server.Kestrel Unexpected exception in HttpConnection.ProcessRequestsAsync. 1. [Microsoft.Extensions.Logging] System.AggregateException: An error occurred while writing to logger(s). (Cannot open log for source 'Lers.Server'. You may not have write access.) Стек вызовов: at Microsoft.Extensions.Logging.Logger.ThrowLoggingError(List`1 exceptions) at Microsoft.Extensions.Logging.Logger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Infrastructure.KestrelTrace.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.Extensions.Logging.LoggerExtensions.Log(ILogger logger, LogLevel logLevel, EventId eventId, Exception exception, String message, Object[] args) at Microsoft.Extensions.Logging.LoggerExtensions.LogWarning(ILogger logger, EventId eventId, Exception exception, String message, Object[] args) at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpProtocol.ProcessRequestsAsync[TContext](IHttpApplication`1 application) at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpProtocol.ProcessRequestsAsync[TContext](IHttpApplication`1 application) at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.HttpConnection.ProcessRequestsAsync[TContext](IHttpApplication`1 httpApplication) HResult:-2146233088 -------------------------------------------------------------------------------------- 2. [System.Diagnostics.EventLog] System.InvalidOperationException: Cannot open log for source 'Lers.Server'. You may not have write access. Стек вызовов: at System.Diagnostics.EventLogInternal.OpenForWrite(String currentMachineName) at System.Diagnostics.EventLogInternal.InternalWriteEvent(UInt32 eventID, UInt16 category, EventLogEntryType type, String[] strings, Byte[] rawData, String currentMachineName) at System.Diagnostics.EventLogInternal.WriteEvent(EventInstance instance, Byte[] data, Object[] values) at Microsoft.Extensions.Logging.EventLog.WindowsEventLog.WriteEntry(String message, EventLogEntryType type, Int32 eventID, Int16 category) at Microsoft.Extensions.Logging.EventLog.EventLogLogger.WriteMessage(String message, EventLogEntryType eventLogEntryType, Int32 eventId) at Microsoft.Extensions.Logging.EventLog.EventLogLogger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.Extensions.Logging.Logger.g__LoggerLog|13_0[TState](LogLevel logLevel, EventId eventId, ILogger logger, Exception exception, Func`3 formatter, List`1& exceptions, TState& state) HResult:-2146233079 -------------------------------------------------------------------------------------- 3. [] System.ComponentModel.Win32Exception: Сервер RPC недоступен. Стек вызовов: HResult:-2147467259 Дополнительная информация из ExternalException: HRESULT=0x80004005 Информация из Win32Exception: NativeErrorCode=1722 -------------------------------------------------------------------------------------- 2024-02-20 15:25:16.1438 E:45 Microsoft.AspNetCore.Server.Kestrel Unhandled exception while processing 0HN1I1G9MRVLT. 1. [Microsoft.Extensions.Logging] System.AggregateException: An error occurred while writing to logger(s). (Cannot open log for source 'Lers.Server'. You may not have write access.) Стек вызовов: at Microsoft.Extensions.Logging.Logger.ThrowLoggingError(List`1 exceptions) at Microsoft.Extensions.Logging.Logger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Infrastructure.KestrelTrace.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.Extensions.Logging.LoggerExtensions.Log(ILogger logger, LogLevel logLevel, EventId eventId, Exception exception, String message, Object[] args) at Microsoft.Extensions.Logging.LoggerExtensions.LogCritical(ILogger logger, EventId eventId, Exception exception, String message, Object[] args) at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.HttpConnection.ProcessRequestsAsync[TContext](IHttpApplication`1 httpApplication) at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Infrastructure.KestrelConnection`1.ExecuteAsync() HResult:-2146233088 -------------------------------------------------------------------------------------- 2. [System.Diagnostics.EventLog] System.InvalidOperationException: Cannot open log for source 'Lers.Server'. You may not have write access. Стек вызовов: at System.Diagnostics.EventLogInternal.OpenForWrite(String currentMachineName) at System.Diagnostics.EventLogInternal.InternalWriteEvent(UInt32 eventID, UInt16 category, EventLogEntryType type, String[] strings, Byte[] rawData, String currentMachineName) at System.Diagnostics.EventLogInternal.WriteEvent(EventInstance instance, Byte[] data, Object[] values) at Microsoft.Extensions.Logging.EventLog.WindowsEventLog.WriteEntry(String message, EventLogEntryType type, Int32 eventID, Int16 category) at Microsoft.Extensions.Logging.EventLog.EventLogLogger.WriteMessage(String message, EventLogEntryType eventLogEntryType, Int32 eventId) at Microsoft.Extensions.Logging.EventLog.EventLogLogger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.Extensions.Logging.Logger.g__LoggerLog|13_0[TState](LogLevel logLevel, EventId eventId, ILogger logger, Exception exception, Func`3 formatter, List`1& exceptions, TState& state) HResult:-2146233079 -------------------------------------------------------------------------------------- 3. [] System.ComponentModel.Win32Exception: Сервер RPC недоступен. Стек вызовов: HResult:-2147467259 Дополнительная информация из ExternalException: HRESULT=0x80004005 Информация из Win32Exception: NativeErrorCode=1722 -------------------------------------------------------------------------------------- 2024-02-20 15:25:16.4259 F:46 Microsoft.Extensions.Hosting.Internal.ApplicationLifetime An error occurred stopping the application 1. [System.Private.CoreLib] System.AggregateException: One or more errors occurred. (One or more errors occurred. (An error occurred while writing to logger(s). (Cannot open log for source 'Lers.Server'. You may not have write access.)) (An error occurred while writing to logger(s). (Cannot open log for source 'Lers.Server'. You may not have write access.))) Стек вызовов: at System.Threading.CancellationTokenSource.ExecuteCallbackHandlers(Boolean throwOnFirstException) at Microsoft.Extensions.Hosting.Internal.ApplicationLifetime.StopApplication() HResult:-2146233088 -------------------------------------------------------------------------------------- 2. [System.Private.CoreLib] System.AggregateException: One or more errors occurred. (An error occurred while writing to logger(s). (Cannot open log for source 'Lers.Server'. You may not have write access.)) (An error occurred while writing to logger(s). (Cannot open log for source 'Lers.Server'. You may not have write access.)) Стек вызовов: at System.Threading.Tasks.Task.WaitAllCore(Task[] tasks, Int32 millisecondsTimeout, CancellationToken cancellationToken) at System.Threading.Tasks.Task.WaitAll(Task[] tasks, TimeSpan timeout) at Microsoft.AspNetCore.Http.Connections.Internal.HttpConnectionManager.CloseConnections() at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) --- End of stack trace from previous location --- at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.CancellationTokenSource.ExecuteCallbackHandlers(Boolean throwOnFirstException) HResult:-2146233088 -------------------------------------------------------------------------------------- 3. [Microsoft.Extensions.Logging] System.AggregateException: An error occurred while writing to logger(s). (Cannot open log for source 'Lers.Server'. You may not have write access.) Стек вызовов: at Microsoft.Extensions.Logging.Logger.ThrowLoggingError(List`1 exceptions) at Microsoft.Extensions.Logging.Logger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.Extensions.Logging.Logger`1.Microsoft.Extensions.Logging.ILogger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.Extensions.Logging.LoggerMessage.<>c__DisplayClass10_0`1.g__Log|0(ILogger logger, T1 arg1, Exception exception) at Microsoft.AspNetCore.Http.Connections.Internal.HttpConnectionManager.DisposeAndRemoveAsync(HttpConnectionContext connection, Boolean closeGracefully) HResult:-2146233088 -------------------------------------------------------------------------------------- 4. [System.Diagnostics.EventLog] System.InvalidOperationException: Cannot open log for source 'Lers.Server'. You may not have write access. Стек вызовов: at System.Diagnostics.EventLogInternal.OpenForWrite(String currentMachineName) at System.Diagnostics.EventLogInternal.InternalWriteEvent(UInt32 eventID, UInt16 category, EventLogEntryType type, String[] strings, Byte[] rawData, String currentMachineName) at System.Diagnostics.EventLogInternal.WriteEvent(EventInstance instance, Byte[] data, Object[] values) at Microsoft.Extensions.Logging.EventLog.WindowsEventLog.WriteEntry(String message, EventLogEntryType type, Int32 eventID, Int16 category) at Microsoft.Extensions.Logging.EventLog.EventLogLogger.WriteMessage(String message, EventLogEntryType eventLogEntryType, Int32 eventId) at Microsoft.Extensions.Logging.EventLog.EventLogLogger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.Extensions.Logging.Logger.g__LoggerLog|13_0[TState](LogLevel logLevel, EventId eventId, ILogger logger, Exception exception, Func`3 formatter, List`1& exceptions, TState& state) HResult:-2146233079 -------------------------------------------------------------------------------------- 5. [] System.ComponentModel.Win32Exception: Сервер RPC недоступен. Стек вызовов: HResult:-2147467259 Дополнительная информация из ExternalException: HRESULT=0x80004005 Информация из Win32Exception: NativeErrorCode=1722 -------------------------------------------------------------------------------------- 2024-02-20 15:25:16.4598 E:43 Microsoft.Extensions.Hosting.Internal.Host BackgroundService failed 1. [Microsoft.Extensions.Logging] System.AggregateException: An error occurred while writing to logger(s). (Cannot open log for source 'Lers.Server'. You may not have write access.) Стек вызовов: at Microsoft.Extensions.Logging.Logger.ThrowLoggingError(List`1 exceptions) at Microsoft.Extensions.Logging.Logger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.Extensions.Logging.LoggerExtensions.Log(ILogger logger, LogLevel logLevel, EventId eventId, Exception exception, String message, Object[] args) at Microsoft.Extensions.Logging.LoggerExtensions.LogWarning(ILogger logger, String message, Object[] args) at Lers.Poll.PollQueueThread.Run(CancellationToken stoppingToken) at Microsoft.Extensions.Hosting.Internal.Host.TryExecuteBackgroundServiceAsync(BackgroundService backgroundService) HResult:-2146233088 -------------------------------------------------------------------------------------- 2. [System.Diagnostics.EventLog] System.InvalidOperationException: Cannot open log for source 'Lers.Server'. You may not have write access. Стек вызовов: at System.Diagnostics.EventLogInternal.OpenForWrite(String currentMachineName) at System.Diagnostics.EventLogInternal.InternalWriteEvent(UInt32 eventID, UInt16 category, EventLogEntryType type, String[] strings, Byte[] rawData, String currentMachineName) at System.Diagnostics.EventLogInternal.WriteEvent(EventInstance instance, Byte[] data, Object[] values) at Microsoft.Extensions.Logging.EventLog.WindowsEventLog.WriteEntry(String message, EventLogEntryType type, Int32 eventID, Int16 category) at Microsoft.Extensions.Logging.EventLog.EventLogLogger.WriteMessage(String message, EventLogEntryType eventLogEntryType, Int32 eventId) at Microsoft.Extensions.Logging.EventLog.EventLogLogger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.Extensions.Logging.Logger.g__LoggerLog|13_0[TState](LogLevel logLevel, EventId eventId, ILogger logger, Exception exception, Func`3 formatter, List`1& exceptions, TState& state) HResult:-2146233079 -------------------------------------------------------------------------------------- 3. [] System.ComponentModel.Win32Exception: Сервер RPC недоступен. Стек вызовов: HResult:-2147467259 Дополнительная информация из ExternalException: HRESULT=0x80004005 Информация из Win32Exception: NativeErrorCode=1722 -------------------------------------------------------------------------------------- 2024-02-20 15:30:13.2292 E:1 Program ============================================ 2024-02-20 15:30:13.2292 E:1 Program === Сервер запущен 2024-02-20 15:30:13.2292 E:1 Program ============================================ 2024-02-20 15:32:59.8645 E:24 Microsoft.EntityFrameworkCore.Database.Connection An error occurred using the connection to database 'LERS' on server '(local)\LERS'. 2024-02-20 15:33:00.0483 E:27 Microsoft.EntityFrameworkCore.Database.Connection An error occurred using the connection to database 'LERS' on server '(local)\LERS'. 00-bc44cdcd8b281350072f7c990ca868e0-b4184d5ac94d230c-00 2024-02-20 15:33:00.2562 E:25 Microsoft.EntityFrameworkCore.Database.Connection An error occurred using the connection to database 'LERS' on server '(local)\LERS'. 2024-02-20 15:33:02.1012 E:27 Microsoft.EntityFrameworkCore.Query An exception occurred while iterating over the results of a query for context type 'Lers.Dal.LersDbContext'. System.AggregateException: An error occurred while writing to logger(s). (Неизвестный интерфейс.) ---> System.ComponentModel.Win32Exception (1717): Неизвестный интерфейс. at System.Diagnostics.EventLogInternal.InternalWriteEvent(UInt32 eventID, UInt16 category, EventLogEntryType type, String[] strings, Byte[] rawData, String currentMachineName) at System.Diagnostics.EventLogInternal.WriteEvent(EventInstance instance, Byte[] data, Object[] values) at Microsoft.Extensions.Logging.EventLog.WindowsEventLog.WriteEntry(String message, EventLogEntryType type, Int32 eventID, Int16 category) at Microsoft.Extensions.Logging.EventLog.EventLogLogger.WriteMessage(String message, EventLogEntryType eventLogEntryType, Int32 eventId) at Microsoft.Extensions.Logging.EventLog.EventLogLogger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.Extensions.Logging.Logger.g__LoggerLog|13_0[TState](LogLevel logLevel, EventId eventId, ILogger logger, Exception exception, Func`3 formatter, List`1& exceptions, TState& state) --- End of inner exception stack trace --- at Microsoft.Extensions.Logging.Logger.ThrowLoggingError(List`1 exceptions) at Microsoft.Extensions.Logging.Logger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.Extensions.Logging.LoggerMessage.<>c__DisplayClass12_0`2.g__Log|0(ILogger logger, T1 arg1, T2 arg2, Exception exception) at Microsoft.EntityFrameworkCore.Diagnostics.EventDefinition`2.Log[TLoggerCategory](IDiagnosticsLogger`1 logger, TParam1 arg1, TParam2 arg2) at Microsoft.EntityFrameworkCore.Diagnostics.Internal.RelationalConnectionDiagnosticsLogger.LogConnectionError(IRelationalConnection connection, EventDefinition`2 definition) at Microsoft.EntityFrameworkCore.Diagnostics.Internal.RelationalConnectionDiagnosticsLogger.ConnectionError(IRelationalConnection connection, Exception exception, DateTimeOffset startTime, TimeSpan duration, Boolean logErrorAsDebug) at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.OpenInternal(Boolean errorsExpected) at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.Open(Boolean errorsExpected) at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReader(RelationalCommandParameterObject parameterObject) at Microsoft.EntityFrameworkCore.Query.Internal.SingleQueryingEnumerable`1.Enumerator.InitializeReader(Enumerator enumerator) at Microsoft.EntityFrameworkCore.Storage.ExecutionStrategy.<>c__DisplayClass28_0`2.b__0(DbContext context, TState state) at Microsoft.EntityFrameworkCore.Storage.ExecutionStrategy.ExecuteImplementation[TState,TResult](Func`3 operation, Func`3 verifySucceeded, TState state) at Microsoft.EntityFrameworkCore.Storage.ExecutionStrategy.Execute[TState,TResult](TState state, Func`3 operation, Func`3 verifySucceeded) at Microsoft.EntityFrameworkCore.Query.Internal.SingleQueryingEnumerable`1.Enumerator.MoveNext() 1. [Microsoft.Extensions.Logging] System.AggregateException: An error occurred while writing to logger(s). (Неизвестный интерфейс.) Стек вызовов: at Microsoft.Extensions.Logging.Logger.ThrowLoggingError(List`1 exceptions) at Microsoft.Extensions.Logging.Logger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.Extensions.Logging.LoggerMessage.<>c__DisplayClass12_0`2.g__Log|0(ILogger logger, T1 arg1, T2 arg2, Exception exception) at Microsoft.EntityFrameworkCore.Diagnostics.EventDefinition`2.Log[TLoggerCategory](IDiagnosticsLogger`1 logger, TParam1 arg1, TParam2 arg2) at Microsoft.EntityFrameworkCore.Diagnostics.Internal.RelationalConnectionDiagnosticsLogger.LogConnectionError(IRelationalConnection connection, EventDefinition`2 definition) at Microsoft.EntityFrameworkCore.Diagnostics.Internal.RelationalConnectionDiagnosticsLogger.ConnectionError(IRelationalConnection connection, Exception exception, DateTimeOffset startTime, TimeSpan duration, Boolean logErrorAsDebug) at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.OpenInternal(Boolean errorsExpected) at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.Open(Boolean errorsExpected) at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReader(RelationalCommandParameterObject parameterObject) at Microsoft.EntityFrameworkCore.Query.Internal.SingleQueryingEnumerable`1.Enumerator.InitializeReader(Enumerator enumerator) at Microsoft.EntityFrameworkCore.Storage.ExecutionStrategy.<>c__DisplayClass28_0`2.b__0(DbContext context, TState state) at Microsoft.EntityFrameworkCore.Storage.ExecutionStrategy.ExecuteImplementation[TState,TResult](Func`3 operation, Func`3 verifySucceeded, TState state) at Microsoft.EntityFrameworkCore.Storage.ExecutionStrategy.Execute[TState,TResult](TState state, Func`3 operation, Func`3 verifySucceeded) at Microsoft.EntityFrameworkCore.Query.Internal.SingleQueryingEnumerable`1.Enumerator.MoveNext() HResult:-2146233088 -------------------------------------------------------------------------------------- 2. [System.Diagnostics.EventLog] System.ComponentModel.Win32Exception: Неизвестный интерфейс. Стек вызовов: at System.Diagnostics.EventLogInternal.InternalWriteEvent(UInt32 eventID, UInt16 category, EventLogEntryType type, String[] strings, Byte[] rawData, String currentMachineName) at System.Diagnostics.EventLogInternal.WriteEvent(EventInstance instance, Byte[] data, Object[] values) at Microsoft.Extensions.Logging.EventLog.WindowsEventLog.WriteEntry(String message, EventLogEntryType type, Int32 eventID, Int16 category) at Microsoft.Extensions.Logging.EventLog.EventLogLogger.WriteMessage(String message, EventLogEntryType eventLogEntryType, Int32 eventId) at Microsoft.Extensions.Logging.EventLog.EventLogLogger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.Extensions.Logging.Logger.g__LoggerLog|13_0[TState](LogLevel logLevel, EventId eventId, ILogger logger, Exception exception, Func`3 formatter, List`1& exceptions, TState& state) HResult:-2147467259 Дополнительная информация из ExternalException: HRESULT=0x80004005 Информация из Win32Exception: NativeErrorCode=1717 -------------------------------------------------------------------------------------- 00-bc44cdcd8b281350072f7c990ca868e0-b4184d5ac94d230c-00 2024-02-20 15:33:02.1012 E:25 Microsoft.EntityFrameworkCore.Query An exception occurred while iterating over the results of a query for context type 'Lers.Dal.LersDbContext'. System.AggregateException: An error occurred while writing to logger(s). (Неизвестный интерфейс.) ---> System.ComponentModel.Win32Exception (1717): Неизвестный интерфейс. at System.Diagnostics.EventLogInternal.InternalWriteEvent(UInt32 eventID, UInt16 category, EventLogEntryType type, String[] strings, Byte[] rawData, String currentMachineName) at System.Diagnostics.EventLogInternal.WriteEvent(EventInstance instance, Byte[] data, Object[] values) at Microsoft.Extensions.Logging.EventLog.WindowsEventLog.WriteEntry(String message, EventLogEntryType type, Int32 eventID, Int16 category) at Microsoft.Extensions.Logging.EventLog.EventLogLogger.WriteMessage(String message, EventLogEntryType eventLogEntryType, Int32 eventId) at Microsoft.Extensions.Logging.EventLog.EventLogLogger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.Extensions.Logging.Logger.g__LoggerLog|13_0[TState](LogLevel logLevel, EventId eventId, ILogger logger, Exception exception, Func`3 formatter, List`1& exceptions, TState& state) --- End of inner exception stack trace --- at Microsoft.Extensions.Logging.Logger.ThrowLoggingError(List`1 exceptions) at Microsoft.Extensions.Logging.Logger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.Extensions.Logging.LoggerMessage.<>c__DisplayClass12_0`2.g__Log|0(ILogger logger, T1 arg1, T2 arg2, Exception exception) at Microsoft.EntityFrameworkCore.Diagnostics.EventDefinition`2.Log[TLoggerCategory](IDiagnosticsLogger`1 logger, TParam1 arg1, TParam2 arg2) at Microsoft.EntityFrameworkCore.Diagnostics.Internal.RelationalConnectionDiagnosticsLogger.LogConnectionError(IRelationalConnection connection, EventDefinition`2 definition) at Microsoft.EntityFrameworkCore.Diagnostics.Internal.RelationalConnectionDiagnosticsLogger.ConnectionErrorAsync(IRelationalConnection connection, Exception exception, DateTimeOffset startTime, TimeSpan duration, Boolean logErrorAsDebug, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.OpenInternalAsync(Boolean errorsExpected, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.OpenAsync(CancellationToken cancellationToken, Boolean errorsExpected) at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Query.Internal.SingleQueryingEnumerable`1.AsyncEnumerator.InitializeReaderAsync(AsyncEnumerator enumerator, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Storage.ExecutionStrategy.<>c__DisplayClass30_0`2.<b__0>d.MoveNext() --- End of stack trace from previous location --- at Microsoft.EntityFrameworkCore.Storage.ExecutionStrategy.ExecuteImplementationAsync[TState,TResult](Func`4 operation, Func`4 verifySucceeded, TState state, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Storage.ExecutionStrategy.ExecuteImplementationAsync[TState,TResult](Func`4 operation, Func`4 verifySucceeded, TState state, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Storage.ExecutionStrategy.ExecuteAsync[TState,TResult](TState state, Func`4 operation, Func`4 verifySucceeded, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Query.Internal.SingleQueryingEnumerable`1.AsyncEnumerator.MoveNextAsync() 1. [Microsoft.Extensions.Logging] System.AggregateException: An error occurred while writing to logger(s). (Неизвестный интерфейс.) Стек вызовов: at Microsoft.Extensions.Logging.Logger.ThrowLoggingError(List`1 exceptions) at Microsoft.Extensions.Logging.Logger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.Extensions.Logging.LoggerMessage.<>c__DisplayClass12_0`2.g__Log|0(ILogger logger, T1 arg1, T2 arg2, Exception exception) at Microsoft.EntityFrameworkCore.Diagnostics.EventDefinition`2.Log[TLoggerCategory](IDiagnosticsLogger`1 logger, TParam1 arg1, TParam2 arg2) at Microsoft.EntityFrameworkCore.Diagnostics.Internal.RelationalConnectionDiagnosticsLogger.LogConnectionError(IRelationalConnection connection, EventDefinition`2 definition) at Microsoft.EntityFrameworkCore.Diagnostics.Internal.RelationalConnectionDiagnosticsLogger.ConnectionErrorAsync(IRelationalConnection connection, Exception exception, DateTimeOffset startTime, TimeSpan duration, Boolean logErrorAsDebug, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.OpenInternalAsync(Boolean errorsExpected, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.OpenAsync(CancellationToken cancellationToken, Boolean errorsExpected) at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Query.Internal.SingleQueryingEnumerable`1.AsyncEnumerator.InitializeReaderAsync(AsyncEnumerator enumerator, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Storage.ExecutionStrategy.<>c__DisplayClass30_0`2.<b__0>d.MoveNext() --- End of stack trace from previous location --- at Microsoft.EntityFrameworkCore.Storage.ExecutionStrategy.ExecuteImplementationAsync[TState,TResult](Func`4 operation, Func`4 verifySucceeded, TState state, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Storage.ExecutionStrategy.ExecuteImplementationAsync[TState,TResult](Func`4 operation, Func`4 verifySucceeded, TState state, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Storage.ExecutionStrategy.ExecuteAsync[TState,TResult](TState state, Func`4 operation, Func`4 verifySucceeded, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Query.Internal.SingleQueryingEnumerable`1.AsyncEnumerator.MoveNextAsync() HResult:-2146233088 -------------------------------------------------------------------------------------- 2. [System.Diagnostics.EventLog] System.ComponentModel.Win32Exception: Неизвестный интерфейс. Стек вызовов: at System.Diagnostics.EventLogInternal.InternalWriteEvent(UInt32 eventID, UInt16 category, EventLogEntryType type, String[] strings, Byte[] rawData, String currentMachineName) at System.Diagnostics.EventLogInternal.WriteEvent(EventInstance instance, Byte[] data, Object[] values) at Microsoft.Extensions.Logging.EventLog.WindowsEventLog.WriteEntry(String message, EventLogEntryType type, Int32 eventID, Int16 category) at Microsoft.Extensions.Logging.EventLog.EventLogLogger.WriteMessage(String message, EventLogEntryType eventLogEntryType, Int32 eventId) at Microsoft.Extensions.Logging.EventLog.EventLogLogger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.Extensions.Logging.Logger.g__LoggerLog|13_0[TState](LogLevel logLevel, EventId eventId, ILogger logger, Exception exception, Func`3 formatter, List`1& exceptions, TState& state) HResult:-2147467259 Дополнительная информация из ExternalException: HRESULT=0x80004005 Информация из Win32Exception: NativeErrorCode=1717 -------------------------------------------------------------------------------------- 2024-02-20 15:33:02.1120 F:25 Lers.ExceptionHandler Ошибка обработки изменения состояния. 1. [Microsoft.Extensions.Logging] System.AggregateException: An error occurred while writing to logger(s). (Сервер RPC недоступен.) Стек вызовов: at Microsoft.Extensions.Logging.Logger.ThrowLoggingError(List`1 exceptions) at Microsoft.Extensions.Logging.Logger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.Extensions.Logging.LoggerMessage.<>c__DisplayClass14_0`3.g__Log|0(ILogger logger, T1 arg1, T2 arg2, T3 arg3, Exception exception) at Microsoft.EntityFrameworkCore.Diagnostics.EventDefinition`3.Log[TLoggerCategory](IDiagnosticsLogger`1 logger, TParam1 arg1, TParam2 arg2, TParam3 arg3, Exception exception) at Microsoft.EntityFrameworkCore.Diagnostics.CoreLoggerExtensions.QueryIterationFailed(IDiagnosticsLogger`1 diagnostics, Type contextType, Exception exception) at Microsoft.EntityFrameworkCore.Query.Internal.SingleQueryingEnumerable`1.AsyncEnumerator.MoveNextAsync() at Microsoft.EntityFrameworkCore.EntityFrameworkQueryableExtensions.ToListAsync[TSource](IQueryable`1 source, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.EntityFrameworkQueryableExtensions.ToListAsync[TSource](IQueryable`1 source, CancellationToken cancellationToken) at Lers.Server.BackgroundServices.ObjectStateMonitor.UpdateCollectedStates(ObjectStateMonitorCommandHandler handler) at Lers.Server.BackgroundServices.ObjectStateMonitor.RunUpdateCollectedMeasurePointStatesLoop(CancellationToken stoppingToken) HResult:-2146233088 -------------------------------------------------------------------------------------- 2. [System.Diagnostics.EventLog] System.ComponentModel.Win32Exception: Сервер RPC недоступен. Стек вызовов: at System.Diagnostics.EventLogInternal.InternalWriteEvent(UInt32 eventID, UInt16 category, EventLogEntryType type, String[] strings, Byte[] rawData, String currentMachineName) at System.Diagnostics.EventLogInternal.WriteEvent(EventInstance instance, Byte[] data, Object[] values) at Microsoft.Extensions.Logging.EventLog.WindowsEventLog.WriteEntry(String message, EventLogEntryType type, Int32 eventID, Int16 category) at Microsoft.Extensions.Logging.EventLog.EventLogLogger.WriteMessage(String message, EventLogEntryType eventLogEntryType, Int32 eventId) at Microsoft.Extensions.Logging.EventLog.EventLogLogger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.Extensions.Logging.Logger.g__LoggerLog|13_0[TState](LogLevel logLevel, EventId eventId, ILogger logger, Exception exception, Func`3 formatter, List`1& exceptions, TState& state) HResult:-2147467259 Дополнительная информация из ExternalException: HRESULT=0x80004005 Информация из Win32Exception: NativeErrorCode=1722 -------------------------------------------------------------------------------------- 2024-02-20 15:33:02.1231 E:25 Microsoft.EntityFrameworkCore.Database.Connection An error occurred using the connection to database 'LERS' on server '(local)\LERS'. 2024-02-20 15:33:02.1231 E:24 Microsoft.EntityFrameworkCore.Query An exception occurred while iterating over the results of a query for context type 'Lers.Dal.LersDbContext'. Microsoft.Data.SqlClient.SqlException (0x80131904): A connection was successfully established with the server, but then an error occurred during the pre-login handshake. (provider: SSL Provider, error: 0 - Указан недопустимый дескриптор) ---> System.ComponentModel.Win32Exception (0x80090301): Указан недопустимый дескриптор 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.EnableSsl(UInt32 info, SqlConnectionEncryptOption encrypt, Boolean integratedSecurity) at Microsoft.Data.SqlClient.TdsParser.ConsumePreLoginHandshake(SqlConnectionEncryptOption encrypt, Boolean trustServerCert, Boolean integratedSecurity, Boolean& marsCapable, Boolean& fedAuthRequired, Boolean tlsFirst) at Microsoft.Data.SqlClient.TdsParser.Connect(ServerInfo serverInfo, SqlInternalConnectionTds connHandler, Boolean ignoreSniOpenTimeout, Int64 timerExpire, SqlConnectionString connectionOptions, Boolean withFailover) 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.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry, SqlConnectionOverrides overrides) at Microsoft.Data.SqlClient.SqlConnection.Open(SqlConnectionOverrides overrides) at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.OpenInternal(Boolean errorsExpected) at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.Open(Boolean errorsExpected) at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReader(RelationalCommandParameterObject parameterObject) at Microsoft.EntityFrameworkCore.Query.Internal.SingleQueryingEnumerable`1.Enumerator.InitializeReader(Enumerator enumerator) at Microsoft.EntityFrameworkCore.Storage.ExecutionStrategy.<>c__DisplayClass28_0`2.b__0(DbContext context, TState state) at Microsoft.EntityFrameworkCore.Storage.ExecutionStrategy.ExecuteImplementation[TState,TResult](Func`3 operation, Func`3 verifySucceeded, TState state) at Microsoft.EntityFrameworkCore.Storage.ExecutionStrategy.Execute[TState,TResult](TState state, Func`3 operation, Func`3 verifySucceeded) at Microsoft.EntityFrameworkCore.Query.Internal.SingleQueryingEnumerable`1.Enumerator.MoveNext() ClientConnectionId:ee45adcb-0c1f-4dfd-b2ed-45c783832726 Error Number:-2146893055,State:0,Class:20 1. [Core Microsoft SqlClient Data Provider] Microsoft.Data.SqlClient.SqlException: A connection was successfully established with the server, but then an error occurred during the pre-login handshake. (provider: SSL Provider, error: 0 - Указан недопустимый дескриптор) Стек вызовов: 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.EnableSsl(UInt32 info, SqlConnectionEncryptOption encrypt, Boolean integratedSecurity) at Microsoft.Data.SqlClient.TdsParser.ConsumePreLoginHandshake(SqlConnectionEncryptOption encrypt, Boolean trustServerCert, Boolean integratedSecurity, Boolean& marsCapable, Boolean& fedAuthRequired, Boolean tlsFirst) at Microsoft.Data.SqlClient.TdsParser.Connect(ServerInfo serverInfo, SqlInternalConnectionTds connHandler, Boolean ignoreSniOpenTimeout, Int64 timerExpire, SqlConnectionString connectionOptions, Boolean withFailover) 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.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry, SqlConnectionOverrides overrides) at Microsoft.Data.SqlClient.SqlConnection.Open(SqlConnectionOverrides overrides) at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.OpenInternal(Boolean errorsExpected) at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.Open(Boolean errorsExpected) at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReader(RelationalCommandParameterObject parameterObject) at Microsoft.EntityFrameworkCore.Query.Internal.SingleQueryingEnumerable`1.Enumerator.InitializeReader(Enumerator enumerator) at Microsoft.EntityFrameworkCore.Storage.ExecutionStrategy.<>c__DisplayClass28_0`2.b__0(DbContext context, TState state) at Microsoft.EntityFrameworkCore.Storage.ExecutionStrategy.ExecuteImplementation[TState,TResult](Func`3 operation, Func`3 verifySucceeded, TState state) at Microsoft.EntityFrameworkCore.Storage.ExecutionStrategy.Execute[TState,TResult](TState state, Func`3 operation, Func`3 verifySucceeded) at Microsoft.EntityFrameworkCore.Query.Internal.SingleQueryingEnumerable`1.Enumerator.MoveNext() HResult:-2146232060 Дополнительная информация (Data): HelpLink.ProdName=Microsoft SQL Server HelpLink.EvtSrc=MSSQLServer HelpLink.EvtID=-2146893055 HelpLink.BaseHelpUrl=https://go.microsoft.com/fwlink HelpLink.LinkId=20476 Дополнительная информация из ExternalException: HRESULT=0x80131904 Дополнительная информация из SqlException: Message=A connection was successfully established with the server, but then an error occurred during the pre-login handshake. (provider: SSL Provider, error: 0 - Указан недопустимый дескриптор) Class=20 Number=-2146893055 State=0 Server=(local)\LERS Procedure= LineNumber=0 Source=Core Microsoft SqlClient Data Provider -------------------------------------------------------------------------------------- 2. [] System.ComponentModel.Win32Exception: Указан недопустимый дескриптор Стек вызовов: HResult:-2147467259 Дополнительная информация из ExternalException: HRESULT=0x80004005 Информация из Win32Exception: NativeErrorCode=-2146893055 -------------------------------------------------------------------------------------- 2024-02-20 15:33:02.1231 E:25 Lers.Logging.SystemLog Не удалось добавить запись в системный журнал. An error occurred while writing to logger(s). (Сервер RPC недоступен.) 2024-02-20 15:33:02.1542 E:27 Microsoft.AspNetCore.SignalR.HubConnectionHandler Error when dispatching 'OnDisconnectedAsync' on hub. 1. [Microsoft.Extensions.Logging] System.AggregateException: An error occurred while writing to logger(s). (Сервер RPC недоступен.) Стек вызовов: at Microsoft.Extensions.Logging.Logger.ThrowLoggingError(List`1 exceptions) at Microsoft.Extensions.Logging.Logger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.Extensions.Logging.LoggerMessage.<>c__DisplayClass14_0`3.g__Log|0(ILogger logger, T1 arg1, T2 arg2, T3 arg3, Exception exception) at Microsoft.EntityFrameworkCore.Diagnostics.EventDefinition`3.Log[TLoggerCategory](IDiagnosticsLogger`1 logger, TParam1 arg1, TParam2 arg2, TParam3 arg3, Exception exception) at Microsoft.EntityFrameworkCore.Diagnostics.CoreLoggerExtensions.QueryIterationFailed(IDiagnosticsLogger`1 diagnostics, Type contextType, Exception exception) at Microsoft.EntityFrameworkCore.Query.Internal.SingleQueryingEnumerable`1.Enumerator.MoveNext() at System.Linq.Enumerable.TryGetSingle[TSource](IEnumerable`1 source, Boolean& found) at lambda_method5882(Closure, QueryContext) at Lers.Dal.UserSessionDataAccess.UpdateUserSessionLog(Int32 sessionId, DateTime endDatetime, DisconnectionCode exitCode) at Lers.UserSessions.EndUserSessionHandler.CloseUserSessionAsync(UserSession session, DisconnectionCode exitCode) at Lers.UserSessions.EndUserSessionHandler.EndSessionAsync(String connectionId) at Lers.Server.Api.Rpc.ServerHub.OnDisconnectedAsync(Exception exception) at Microsoft.AspNetCore.SignalR.Internal.DefaultHubDispatcher`1.OnDisconnectedAsync(HubConnectionContext connection, Exception exception) at Microsoft.AspNetCore.SignalR.Internal.DefaultHubDispatcher`1.OnDisconnectedAsync(HubConnectionContext connection, Exception exception) at Microsoft.AspNetCore.SignalR.HubConnectionHandler`1.HubOnDisconnectedAsync(HubConnectionContext connection, Exception exception) HResult:-2146233088 -------------------------------------------------------------------------------------- 2. [System.Diagnostics.EventLog] System.ComponentModel.Win32Exception: Сервер RPC недоступен. Стек вызовов: at System.Diagnostics.EventLogInternal.InternalWriteEvent(UInt32 eventID, UInt16 category, EventLogEntryType type, String[] strings, Byte[] rawData, String currentMachineName) at System.Diagnostics.EventLogInternal.WriteEvent(EventInstance instance, Byte[] data, Object[] values) at Microsoft.Extensions.Logging.EventLog.WindowsEventLog.WriteEntry(String message, EventLogEntryType type, Int32 eventID, Int16 category) at Microsoft.Extensions.Logging.EventLog.EventLogLogger.WriteMessage(String message, EventLogEntryType eventLogEntryType, Int32 eventId) at Microsoft.Extensions.Logging.EventLog.EventLogLogger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.Extensions.Logging.Logger.g__LoggerLog|13_0[TState](LogLevel logLevel, EventId eventId, ILogger logger, Exception exception, Func`3 formatter, List`1& exceptions, TState& state) HResult:-2147467259 Дополнительная информация из ExternalException: HRESULT=0x80004005 Информация из Win32Exception: NativeErrorCode=1722 -------------------------------------------------------------------------------------- 00-bc44cdcd8b281350072f7c990ca868e0-b4184d5ac94d230c-00 2024-02-20 15:33:02.1542 E:27 Microsoft.AspNetCore.Http.Connections.Internal.HttpConnectionManager Failed disposing connection QZSIPRivVcdD_eEvLFsB0Q. 1. [Microsoft.Extensions.Logging] System.AggregateException: An error occurred while writing to logger(s). (Сервер RPC недоступен.) Стек вызовов: at Microsoft.Extensions.Logging.Logger.ThrowLoggingError(List`1 exceptions) at Microsoft.Extensions.Logging.Logger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.Extensions.Logging.Logger`1.Microsoft.Extensions.Logging.ILogger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.Extensions.Logging.LoggerMessage.<>c__DisplayClass10_0`1.g__Log|0(ILogger logger, T1 arg1, Exception exception) at Microsoft.AspNetCore.SignalR.HubConnectionHandler`1.HubOnDisconnectedAsync(HubConnectionContext connection, Exception exception) at Microsoft.AspNetCore.SignalR.HubConnectionHandler`1.RunHubAsync(HubConnectionContext connection) at Microsoft.AspNetCore.SignalR.HubConnectionHandler`1.OnConnectedAsync(ConnectionContext connection) at Microsoft.AspNetCore.SignalR.HubConnectionHandler`1.OnConnectedAsync(ConnectionContext connection) at Microsoft.AspNetCore.Http.Connections.Internal.HttpConnectionContext.ExecuteApplication(ConnectionDelegate connectionDelegate) at Microsoft.AspNetCore.Http.Connections.Internal.HttpConnectionContext.WaitOnTasks(Task applicationTask, Task transportTask, Boolean closeGracefully) at Microsoft.AspNetCore.Http.Connections.Internal.HttpConnectionContext.DisposeAsync(Boolean closeGracefully) at Microsoft.AspNetCore.Http.Connections.Internal.HttpConnectionManager.DisposeAndRemoveAsync(HttpConnectionContext connection, Boolean closeGracefully) HResult:-2146233088 -------------------------------------------------------------------------------------- 2. [System.Diagnostics.EventLog] System.ComponentModel.Win32Exception: Сервер RPC недоступен. Стек вызовов: at System.Diagnostics.EventLogInternal.InternalWriteEvent(UInt32 eventID, UInt16 category, EventLogEntryType type, String[] strings, Byte[] rawData, String currentMachineName) at System.Diagnostics.EventLogInternal.WriteEvent(EventInstance instance, Byte[] data, Object[] values) at Microsoft.Extensions.Logging.EventLog.WindowsEventLog.WriteEntry(String message, EventLogEntryType type, Int32 eventID, Int16 category) at Microsoft.Extensions.Logging.EventLog.EventLogLogger.WriteMessage(String message, EventLogEntryType eventLogEntryType, Int32 eventId) at Microsoft.Extensions.Logging.EventLog.EventLogLogger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.Extensions.Logging.Logger.g__LoggerLog|13_0[TState](LogLevel logLevel, EventId eventId, ILogger logger, Exception exception, Func`3 formatter, List`1& exceptions, TState& state) HResult:-2147467259 Дополнительная информация из ExternalException: HRESULT=0x80004005 Информация из Win32Exception: NativeErrorCode=1722 -------------------------------------------------------------------------------------- 2024-02-20 15:33:02.1542 E:24 Microsoft.AspNetCore.SignalR.HubConnectionHandler Error when dispatching 'OnDisconnectedAsync' on hub. 1. [Microsoft.Extensions.Logging] System.AggregateException: An error occurred while writing to logger(s). (Сервер RPC недоступен.) Стек вызовов: at Microsoft.Extensions.Logging.Logger.ThrowLoggingError(List`1 exceptions) at Microsoft.Extensions.Logging.Logger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.Extensions.Logging.LoggerMessage.<>c__DisplayClass14_0`3.g__Log|0(ILogger logger, T1 arg1, T2 arg2, T3 arg3, Exception exception) at Microsoft.EntityFrameworkCore.Diagnostics.EventDefinition`3.Log[TLoggerCategory](IDiagnosticsLogger`1 logger, TParam1 arg1, TParam2 arg2, TParam3 arg3, Exception exception) at Microsoft.EntityFrameworkCore.Diagnostics.CoreLoggerExtensions.QueryIterationFailed(IDiagnosticsLogger`1 diagnostics, Type contextType, Exception exception) at Microsoft.EntityFrameworkCore.Query.Internal.SingleQueryingEnumerable`1.Enumerator.MoveNext() at System.Linq.Enumerable.TryGetSingle[TSource](IEnumerable`1 source, Boolean& found) at lambda_method5882(Closure, QueryContext) at Lers.Dal.UserSessionDataAccess.UpdateUserSessionLog(Int32 sessionId, DateTime endDatetime, DisconnectionCode exitCode) at Lers.UserSessions.EndUserSessionHandler.CloseUserSessionAsync(UserSession session, DisconnectionCode exitCode) at Lers.UserSessions.EndUserSessionHandler.EndSessionAsync(String connectionId) at Lers.Server.Api.Rpc.ServerHub.OnDisconnectedAsync(Exception exception) at Microsoft.AspNetCore.SignalR.Internal.DefaultHubDispatcher`1.OnDisconnectedAsync(HubConnectionContext connection, Exception exception) at Microsoft.AspNetCore.SignalR.Internal.DefaultHubDispatcher`1.OnDisconnectedAsync(HubConnectionContext connection, Exception exception) at Microsoft.AspNetCore.SignalR.HubConnectionHandler`1.HubOnDisconnectedAsync(HubConnectionContext connection, Exception exception) HResult:-2146233088 -------------------------------------------------------------------------------------- 2. [System.Diagnostics.EventLog] System.ComponentModel.Win32Exception: Сервер RPC недоступен. Стек вызовов: at System.Diagnostics.EventLogInternal.InternalWriteEvent(UInt32 eventID, UInt16 category, EventLogEntryType type, String[] strings, Byte[] rawData, String currentMachineName) at System.Diagnostics.EventLogInternal.WriteEvent(EventInstance instance, Byte[] data, Object[] values) at Microsoft.Extensions.Logging.EventLog.WindowsEventLog.WriteEntry(String message, EventLogEntryType type, Int32 eventID, Int16 category) at Microsoft.Extensions.Logging.EventLog.EventLogLogger.WriteMessage(String message, EventLogEntryType eventLogEntryType, Int32 eventId) at Microsoft.Extensions.Logging.EventLog.EventLogLogger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.Extensions.Logging.Logger.g__LoggerLog|13_0[TState](LogLevel logLevel, EventId eventId, ILogger logger, Exception exception, Func`3 formatter, List`1& exceptions, TState& state) HResult:-2147467259 Дополнительная информация из ExternalException: HRESULT=0x80004005 Информация из Win32Exception: NativeErrorCode=1722 -------------------------------------------------------------------------------------- 2024-02-20 15:33:02.1679 E:28 Microsoft.AspNetCore.Http.Connections.Internal.HttpConnectionManager Failed disposing connection QZSIPRivVcdD_eEvLFsB0Q. 1. [Microsoft.Extensions.Logging] System.AggregateException: An error occurred while writing to logger(s). (Сервер RPC недоступен.) Стек вызовов: at Microsoft.Extensions.Logging.Logger.ThrowLoggingError(List`1 exceptions) at Microsoft.Extensions.Logging.Logger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.Extensions.Logging.Logger`1.Microsoft.Extensions.Logging.ILogger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.Extensions.Logging.LoggerMessage.<>c__DisplayClass10_0`1.g__Log|0(ILogger logger, T1 arg1, Exception exception) at Microsoft.AspNetCore.SignalR.HubConnectionHandler`1.HubOnDisconnectedAsync(HubConnectionContext connection, Exception exception) at Microsoft.AspNetCore.SignalR.HubConnectionHandler`1.RunHubAsync(HubConnectionContext connection) at Microsoft.AspNetCore.SignalR.HubConnectionHandler`1.OnConnectedAsync(ConnectionContext connection) at Microsoft.AspNetCore.SignalR.HubConnectionHandler`1.OnConnectedAsync(ConnectionContext connection) at Microsoft.AspNetCore.Http.Connections.Internal.HttpConnectionContext.ExecuteApplication(ConnectionDelegate connectionDelegate) at Microsoft.AspNetCore.Http.Connections.Internal.HttpConnectionContext.WaitOnTasks(Task applicationTask, Task transportTask, Boolean closeGracefully) at Microsoft.AspNetCore.Http.Connections.Internal.HttpConnectionContext.DisposeAsync(Boolean closeGracefully) at Microsoft.AspNetCore.Http.Connections.Internal.HttpConnectionManager.DisposeAndRemoveAsync(HttpConnectionContext connection, Boolean closeGracefully) HResult:-2146233088 -------------------------------------------------------------------------------------- 2. [System.Diagnostics.EventLog] System.ComponentModel.Win32Exception: Сервер RPC недоступен. Стек вызовов: at System.Diagnostics.EventLogInternal.InternalWriteEvent(UInt32 eventID, UInt16 category, EventLogEntryType type, String[] strings, Byte[] rawData, String currentMachineName) at System.Diagnostics.EventLogInternal.WriteEvent(EventInstance instance, Byte[] data, Object[] values) at Microsoft.Extensions.Logging.EventLog.WindowsEventLog.WriteEntry(String message, EventLogEntryType type, Int32 eventID, Int16 category) at Microsoft.Extensions.Logging.EventLog.EventLogLogger.WriteMessage(String message, EventLogEntryType eventLogEntryType, Int32 eventId) at Microsoft.Extensions.Logging.EventLog.EventLogLogger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.Extensions.Logging.Logger.g__LoggerLog|13_0[TState](LogLevel logLevel, EventId eventId, ILogger logger, Exception exception, Func`3 formatter, List`1& exceptions, TState& state) HResult:-2147467259 Дополнительная информация из ExternalException: HRESULT=0x80004005 Информация из Win32Exception: NativeErrorCode=1722 -------------------------------------------------------------------------------------- 00-bc44cdcd8b281350072f7c990ca868e0-b4184d5ac94d230c-00 2024-02-20 15:33:02.1679 E:24 Microsoft.AspNetCore.Http.Connections.Internal.HttpConnectionManager Failed disposing connection tnTjTGSq2pq6rb702NAcGA. 1. [Microsoft.Extensions.Logging] System.AggregateException: An error occurred while writing to logger(s). (Сервер RPC недоступен.) Стек вызовов: at Microsoft.Extensions.Logging.Logger.ThrowLoggingError(List`1 exceptions) at Microsoft.Extensions.Logging.Logger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.Extensions.Logging.Logger`1.Microsoft.Extensions.Logging.ILogger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.Extensions.Logging.LoggerMessage.<>c__DisplayClass10_0`1.g__Log|0(ILogger logger, T1 arg1, Exception exception) at Microsoft.AspNetCore.SignalR.HubConnectionHandler`1.HubOnDisconnectedAsync(HubConnectionContext connection, Exception exception) at Microsoft.AspNetCore.SignalR.HubConnectionHandler`1.RunHubAsync(HubConnectionContext connection) at Microsoft.AspNetCore.SignalR.HubConnectionHandler`1.OnConnectedAsync(ConnectionContext connection) at Microsoft.AspNetCore.SignalR.HubConnectionHandler`1.OnConnectedAsync(ConnectionContext connection) at Microsoft.AspNetCore.Http.Connections.Internal.HttpConnectionContext.ExecuteApplication(ConnectionDelegate connectionDelegate) at Microsoft.AspNetCore.Http.Connections.Internal.HttpConnectionContext.WaitOnTasks(Task applicationTask, Task transportTask, Boolean closeGracefully) at Microsoft.AspNetCore.Http.Connections.Internal.HttpConnectionContext.DisposeAsync(Boolean closeGracefully) at Microsoft.AspNetCore.Http.Connections.Internal.HttpConnectionManager.DisposeAndRemoveAsync(HttpConnectionContext connection, Boolean closeGracefully) HResult:-2146233088 -------------------------------------------------------------------------------------- 2. [System.Diagnostics.EventLog] System.ComponentModel.Win32Exception: Сервер RPC недоступен. Стек вызовов: at System.Diagnostics.EventLogInternal.InternalWriteEvent(UInt32 eventID, UInt16 category, EventLogEntryType type, String[] strings, Byte[] rawData, String currentMachineName) at System.Diagnostics.EventLogInternal.WriteEvent(EventInstance instance, Byte[] data, Object[] values) at Microsoft.Extensions.Logging.EventLog.WindowsEventLog.WriteEntry(String message, EventLogEntryType type, Int32 eventID, Int16 category) at Microsoft.Extensions.Logging.EventLog.EventLogLogger.WriteMessage(String message, EventLogEntryType eventLogEntryType, Int32 eventId) at Microsoft.Extensions.Logging.EventLog.EventLogLogger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.Extensions.Logging.Logger.g__LoggerLog|13_0[TState](LogLevel logLevel, EventId eventId, ILogger logger, Exception exception, Func`3 formatter, List`1& exceptions, TState& state) HResult:-2147467259 Дополнительная информация из ExternalException: HRESULT=0x80004005 Информация из Win32Exception: NativeErrorCode=1722 -------------------------------------------------------------------------------------- 2024-02-20 15:33:02.1679 E:18 Microsoft.EntityFrameworkCore.Database.Connection An error occurred using the connection to database 'LERS' on server '(local)\LERS'. 2024-02-20 15:33:02.1679 E:18 Lers.Logging.SystemLog Не удалось добавить запись в системный журнал. An error occurred while writing to logger(s). (Сервер RPC недоступен.) 2024-02-20 15:33:02.1825 F:18 Microsoft.Extensions.Hosting.Internal.ApplicationLifetime An error occurred stopping the application 1. [System.Private.CoreLib] System.AggregateException: One or more errors occurred. (One or more errors occurred. (An error occurred while writing to logger(s). (Сервер RPC недоступен.)) (An error occurred while writing to logger(s). (Сервер RPC недоступен.))) Стек вызовов: at System.Threading.CancellationTokenSource.ExecuteCallbackHandlers(Boolean throwOnFirstException) at Microsoft.Extensions.Hosting.Internal.ApplicationLifetime.StopApplication() HResult:-2146233088 -------------------------------------------------------------------------------------- 2. [System.Private.CoreLib] System.AggregateException: One or more errors occurred. (An error occurred while writing to logger(s). (Сервер RPC недоступен.)) (An error occurred while writing to logger(s). (Сервер RPC недоступен.)) Стек вызовов: at System.Threading.Tasks.Task.WaitAllCore(Task[] tasks, Int32 millisecondsTimeout, CancellationToken cancellationToken) at System.Threading.Tasks.Task.WaitAll(Task[] tasks, TimeSpan timeout) at Microsoft.AspNetCore.Http.Connections.Internal.HttpConnectionManager.CloseConnections() at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) --- End of stack trace from previous location --- at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.CancellationTokenSource.ExecuteCallbackHandlers(Boolean throwOnFirstException) HResult:-2146233088 -------------------------------------------------------------------------------------- 3. [Microsoft.Extensions.Logging] System.AggregateException: An error occurred while writing to logger(s). (Сервер RPC недоступен.) Стек вызовов: at Microsoft.Extensions.Logging.Logger.ThrowLoggingError(List`1 exceptions) at Microsoft.Extensions.Logging.Logger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.Extensions.Logging.Logger`1.Microsoft.Extensions.Logging.ILogger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.Extensions.Logging.LoggerMessage.<>c__DisplayClass10_0`1.g__Log|0(ILogger logger, T1 arg1, Exception exception) at Microsoft.AspNetCore.Http.Connections.Internal.HttpConnectionManager.DisposeAndRemoveAsync(HttpConnectionContext connection, Boolean closeGracefully) HResult:-2146233088 -------------------------------------------------------------------------------------- 4. [System.Diagnostics.EventLog] System.ComponentModel.Win32Exception: Сервер RPC недоступен. Стек вызовов: at System.Diagnostics.EventLogInternal.InternalWriteEvent(UInt32 eventID, UInt16 category, EventLogEntryType type, String[] strings, Byte[] rawData, String currentMachineName) at System.Diagnostics.EventLogInternal.WriteEvent(EventInstance instance, Byte[] data, Object[] values) at Microsoft.Extensions.Logging.EventLog.WindowsEventLog.WriteEntry(String message, EventLogEntryType type, Int32 eventID, Int16 category) at Microsoft.Extensions.Logging.EventLog.EventLogLogger.WriteMessage(String message, EventLogEntryType eventLogEntryType, Int32 eventId) at Microsoft.Extensions.Logging.EventLog.EventLogLogger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.Extensions.Logging.Logger.g__LoggerLog|13_0[TState](LogLevel logLevel, EventId eventId, ILogger logger, Exception exception, Func`3 formatter, List`1& exceptions, TState& state) HResult:-2147467259 Дополнительная информация из ExternalException: HRESULT=0x80004005 Информация из Win32Exception: NativeErrorCode=1722 -------------------------------------------------------------------------------------- 2024-02-20 15:33:02.2868 E:25 Lers.ExceptionHandler Не удалось отправить сообщение об ошибке. 1. [] System.Runtime.InteropServices.COMException: Идет завершение работы системы. Стек вызовов: at System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(Int32 errorCode, IntPtr errorInfo) at System.Management.ManagementScope.InitializeGuts(Object o) at System.Management.ManagementScope.Initialize() at System.Management.ManagementScope.Connect() at Lers.Activation.Fingerprint.GetMotherboardSerial() at Lers.Activation.Fingerprint.GetMotherboardHash() at Lers.Activation.Fingerprint.Create() at Lers.Fingerprints.WindowsFingerprintFactory.Get() at Lers.Telemetry.Utils.TelemetryUtils.GenerateToken(String licenseNumber) at Lers.Telemetry.TelemetryManager.GenerateToken() at Lers.Telemetry.TelemetryManager..ctor(IServerLicense license, IServerEnvironment serverEnv) at Lers.ExceptionHandler.SendBugReport(Exception exception, String message, String fullInfo) HResult:-2147023781 Дополнительная информация из ExternalException: HRESULT=0x8007045B -------------------------------------------------------------------------------------- 2024-02-20 15:33:02.3191 F:25 Lers.ExceptionHandler Необработанная ошибка в сервере. "Ошибка обработки изменения состояния.". Обратитесь в службу технической поддержки ЛЭРС УЧЕТ. 1. [Microsoft.Extensions.Logging] System.AggregateException: An error occurred while writing to logger(s). (Сервер RPC недоступен.) Стек вызовов: at Microsoft.Extensions.Logging.Logger.ThrowLoggingError(List`1 exceptions) at Microsoft.Extensions.Logging.Logger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.Extensions.Logging.LoggerMessage.<>c__DisplayClass14_0`3.g__Log|0(ILogger logger, T1 arg1, T2 arg2, T3 arg3, Exception exception) at Microsoft.EntityFrameworkCore.Diagnostics.EventDefinition`3.Log[TLoggerCategory](IDiagnosticsLogger`1 logger, TParam1 arg1, TParam2 arg2, TParam3 arg3, Exception exception) at Microsoft.EntityFrameworkCore.Diagnostics.CoreLoggerExtensions.QueryIterationFailed(IDiagnosticsLogger`1 diagnostics, Type contextType, Exception exception) at Microsoft.EntityFrameworkCore.Query.Internal.SingleQueryingEnumerable`1.AsyncEnumerator.MoveNextAsync() at Microsoft.EntityFrameworkCore.EntityFrameworkQueryableExtensions.ToListAsync[TSource](IQueryable`1 source, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.EntityFrameworkQueryableExtensions.ToListAsync[TSource](IQueryable`1 source, CancellationToken cancellationToken) at Lers.Server.BackgroundServices.ObjectStateMonitor.UpdateCollectedStates(ObjectStateMonitorCommandHandler handler) at Lers.Server.BackgroundServices.ObjectStateMonitor.RunUpdateCollectedMeasurePointStatesLoop(CancellationToken stoppingToken) HResult:-2146233088 -------------------------------------------------------------------------------------- 2. [System.Diagnostics.EventLog] System.ComponentModel.Win32Exception: Сервер RPC недоступен. Стек вызовов: at System.Diagnostics.EventLogInternal.InternalWriteEvent(UInt32 eventID, UInt16 category, EventLogEntryType type, String[] strings, Byte[] rawData, String currentMachineName) at System.Diagnostics.EventLogInternal.WriteEvent(EventInstance instance, Byte[] data, Object[] values) at Microsoft.Extensions.Logging.EventLog.WindowsEventLog.WriteEntry(String message, EventLogEntryType type, Int32 eventID, Int16 category) at Microsoft.Extensions.Logging.EventLog.EventLogLogger.WriteMessage(String message, EventLogEntryType eventLogEntryType, Int32 eventId) at Microsoft.Extensions.Logging.EventLog.EventLogLogger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.Extensions.Logging.Logger.g__LoggerLog|13_0[TState](LogLevel logLevel, EventId eventId, ILogger logger, Exception exception, Func`3 formatter, List`1& exceptions, TState& state) HResult:-2147467259 Дополнительная информация из ExternalException: HRESULT=0x80004005 Информация из Win32Exception: NativeErrorCode=1722 -------------------------------------------------------------------------------------- 2024-02-20 15:33:02.3230 E:25 Microsoft.EntityFrameworkCore.Database.Connection An error occurred using the connection to database 'LERS' on server '(local)\LERS'. 2024-02-20 15:33:02.3230 E:25 Lers.Logging.SystemLog Не удалось добавить запись в системный журнал. An error occurred while writing to logger(s). (Сервер RPC недоступен.) 2024-02-20 15:33:02.3631 E:28 Microsoft.AspNetCore.Server.Kestrel Connection id "0HN1I1UV1PS5D", Request id "0HN1I1UV1PS5D:00000001": An unhandled exception was thrown by the application. 1. [Microsoft.Extensions.Logging] System.AggregateException: An error occurred while writing to logger(s). (Сервер RPC недоступен.) Стек вызовов: at Microsoft.Extensions.Logging.Logger.ThrowLoggingError(List`1 exceptions) at Microsoft.Extensions.Logging.Logger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.Extensions.Logging.Logger`1.Microsoft.Extensions.Logging.ILogger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.Extensions.Logging.LoggerMessage.<>c__DisplayClass10_0`1.g__Log|0(ILogger logger, T1 arg1, Exception exception) at Microsoft.AspNetCore.Http.Connections.Internal.HttpConnectionManager.DisposeAndRemoveAsync(HttpConnectionContext connection, Boolean closeGracefully) at Microsoft.AspNetCore.Http.Connections.Internal.HttpConnectionDispatcher.DoPersistentConnection(ConnectionDelegate connectionDelegate, IHttpTransport transport, HttpContext context, HttpConnectionContext connection) at Microsoft.AspNetCore.Http.Connections.Internal.HttpConnectionDispatcher.ExecuteAsync(HttpContext context, ConnectionDelegate connectionDelegate, HttpConnectionDispatcherOptions options, ConnectionLogScope logScope) at Microsoft.AspNetCore.Http.Connections.Internal.HttpConnectionDispatcher.ExecuteAsync(HttpContext context, HttpConnectionDispatcherOptions options, ConnectionDelegate connectionDelegate) at Microsoft.AspNetCore.Routing.EndpointMiddleware.g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger) at Lers.Server.License.LicenseRestrictiontMiddleware.Invoke(HttpContext context, IServerLicense serverLicense, IMemoryCache memoryCache) at Lers.Server.Security.Authorization.AccountContextMiddleware.Invoke(HttpContext context, IAccountManager accountRepo, IUserSessionManager userSessions, ILogger`1 logger) at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context) at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context) at Lers.Server.ExceptionFilterExtensions.<>c.<b__0_0>d.MoveNext() --- End of stack trace from previous location --- at Lers.Server.Infrastructure.RequestCompressionMiddleware.Invoke(HttpContext context) at Lers.Server.Infrastructure.DatabaseErrorMiddleware.Invoke(HttpContext context, DatabaseStateInformation stateInfo) at StackExchange.Profiling.MiniProfilerMiddleware.Invoke(HttpContext context) in C:\projects\dotnet\src\MiniProfiler.AspNetCore\MiniProfilerMiddleware.cs:line 114 at Microsoft.AspNetCore.Builder.RouterMiddleware.Invoke(HttpContext httpContext) at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context) at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context) at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpProtocol.ProcessRequests[TContext](IHttpApplication`1 application) HResult:-2146233088 -------------------------------------------------------------------------------------- 2. [System.Diagnostics.EventLog] System.ComponentModel.Win32Exception: Сервер RPC недоступен. Стек вызовов: at System.Diagnostics.EventLogInternal.InternalWriteEvent(UInt32 eventID, UInt16 category, EventLogEntryType type, String[] strings, Byte[] rawData, String currentMachineName) at System.Diagnostics.EventLogInternal.WriteEvent(EventInstance instance, Byte[] data, Object[] values) at Microsoft.Extensions.Logging.EventLog.WindowsEventLog.WriteEntry(String message, EventLogEntryType type, Int32 eventID, Int16 category) at Microsoft.Extensions.Logging.EventLog.EventLogLogger.WriteMessage(String message, EventLogEntryType eventLogEntryType, Int32 eventId) at Microsoft.Extensions.Logging.EventLog.EventLogLogger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.Extensions.Logging.Logger.g__LoggerLog|13_0[TState](LogLevel logLevel, EventId eventId, ILogger logger, Exception exception, Func`3 formatter, List`1& exceptions, TState& state) HResult:-2147467259 Дополнительная информация из ExternalException: HRESULT=0x80004005 Информация из Win32Exception: NativeErrorCode=1722 -------------------------------------------------------------------------------------- 00-bc44cdcd8b281350072f7c990ca868e0-b4184d5ac94d230c-00 2024-02-20 15:33:02.4032 F:28 Microsoft.AspNetCore.Server.Kestrel Unexpected exception in HttpConnection.ProcessRequestsAsync. 1. [Microsoft.Extensions.Logging] System.AggregateException: An error occurred while writing to logger(s). (Сервер RPC недоступен.) Стек вызовов: at Microsoft.Extensions.Logging.Logger.ThrowLoggingError(List`1 exceptions) at Microsoft.Extensions.Logging.Logger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Infrastructure.KestrelTrace.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.Extensions.Logging.LoggerExtensions.Log(ILogger logger, LogLevel logLevel, EventId eventId, Exception exception, String message, Object[] args) at Microsoft.Extensions.Logging.LoggerExtensions.LogWarning(ILogger logger, EventId eventId, Exception exception, String message, Object[] args) at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpProtocol.ProcessRequestsAsync[TContext](IHttpApplication`1 application) at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpProtocol.ProcessRequestsAsync[TContext](IHttpApplication`1 application) at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.HttpConnection.ProcessRequestsAsync[TContext](IHttpApplication`1 httpApplication) HResult:-2146233088 -------------------------------------------------------------------------------------- 2. [System.Diagnostics.EventLog] System.ComponentModel.Win32Exception: Сервер RPC недоступен. Стек вызовов: at System.Diagnostics.EventLogInternal.InternalWriteEvent(UInt32 eventID, UInt16 category, EventLogEntryType type, String[] strings, Byte[] rawData, String currentMachineName) at System.Diagnostics.EventLogInternal.WriteEvent(EventInstance instance, Byte[] data, Object[] values) at Microsoft.Extensions.Logging.EventLog.WindowsEventLog.WriteEntry(String message, EventLogEntryType type, Int32 eventID, Int16 category) at Microsoft.Extensions.Logging.EventLog.EventLogLogger.WriteMessage(String message, EventLogEntryType eventLogEntryType, Int32 eventId) at Microsoft.Extensions.Logging.EventLog.EventLogLogger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.Extensions.Logging.Logger.g__LoggerLog|13_0[TState](LogLevel logLevel, EventId eventId, ILogger logger, Exception exception, Func`3 formatter, List`1& exceptions, TState& state) HResult:-2147467259 Дополнительная информация из ExternalException: HRESULT=0x80004005 Информация из Win32Exception: NativeErrorCode=1722 -------------------------------------------------------------------------------------- 2024-02-20 15:33:02.4032 E:28 Microsoft.AspNetCore.Server.Kestrel Unhandled exception while processing 0HN1I1UV1PS5D. 1. [Microsoft.Extensions.Logging] System.AggregateException: An error occurred while writing to logger(s). (Сервер RPC недоступен.) Стек вызовов: at Microsoft.Extensions.Logging.Logger.ThrowLoggingError(List`1 exceptions) at Microsoft.Extensions.Logging.Logger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Infrastructure.KestrelTrace.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.Extensions.Logging.LoggerExtensions.Log(ILogger logger, LogLevel logLevel, EventId eventId, Exception exception, String message, Object[] args) at Microsoft.Extensions.Logging.LoggerExtensions.LogCritical(ILogger logger, EventId eventId, Exception exception, String message, Object[] args) at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.HttpConnection.ProcessRequestsAsync[TContext](IHttpApplication`1 httpApplication) at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Infrastructure.KestrelConnection`1.ExecuteAsync() HResult:-2146233088 -------------------------------------------------------------------------------------- 2. [System.Diagnostics.EventLog] System.ComponentModel.Win32Exception: Сервер RPC недоступен. Стек вызовов: at System.Diagnostics.EventLogInternal.InternalWriteEvent(UInt32 eventID, UInt16 category, EventLogEntryType type, String[] strings, Byte[] rawData, String currentMachineName) at System.Diagnostics.EventLogInternal.WriteEvent(EventInstance instance, Byte[] data, Object[] values) at Microsoft.Extensions.Logging.EventLog.WindowsEventLog.WriteEntry(String message, EventLogEntryType type, Int32 eventID, Int16 category) at Microsoft.Extensions.Logging.EventLog.EventLogLogger.WriteMessage(String message, EventLogEntryType eventLogEntryType, Int32 eventId) at Microsoft.Extensions.Logging.EventLog.EventLogLogger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.Extensions.Logging.Logger.g__LoggerLog|13_0[TState](LogLevel logLevel, EventId eventId, ILogger logger, Exception exception, Func`3 formatter, List`1& exceptions, TState& state) HResult:-2147467259 Дополнительная информация из ExternalException: HRESULT=0x80004005 Информация из Win32Exception: NativeErrorCode=1722 -------------------------------------------------------------------------------------- 2024-02-20 15:33:02.4326 E:26 Microsoft.Extensions.Hosting.Internal.Host BackgroundService failed 1. [Microsoft.Extensions.Logging] System.AggregateException: An error occurred while writing to logger(s). (Сервер RPC недоступен.) Стек вызовов: at Microsoft.Extensions.Logging.Logger.ThrowLoggingError(List`1 exceptions) at Microsoft.Extensions.Logging.Logger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.Extensions.Logging.LoggerExtensions.Log(ILogger logger, LogLevel logLevel, EventId eventId, Exception exception, String message, Object[] args) at Microsoft.Extensions.Logging.LoggerExtensions.LogWarning(ILogger logger, String message, Object[] args) at Lers.Poll.PollQueueThread.Run(CancellationToken stoppingToken) at Microsoft.Extensions.Hosting.Internal.Host.TryExecuteBackgroundServiceAsync(BackgroundService backgroundService) HResult:-2146233088 -------------------------------------------------------------------------------------- 2. [System.Diagnostics.EventLog] System.ComponentModel.Win32Exception: Сервер RPC недоступен. Стек вызовов: at System.Diagnostics.EventLogInternal.InternalWriteEvent(UInt32 eventID, UInt16 category, EventLogEntryType type, String[] strings, Byte[] rawData, String currentMachineName) at System.Diagnostics.EventLogInternal.WriteEvent(EventInstance instance, Byte[] data, Object[] values) at Microsoft.Extensions.Logging.EventLog.WindowsEventLog.WriteEntry(String message, EventLogEntryType type, Int32 eventID, Int16 category) at Microsoft.Extensions.Logging.EventLog.EventLogLogger.WriteMessage(String message, EventLogEntryType eventLogEntryType, Int32 eventId) at Microsoft.Extensions.Logging.EventLog.EventLogLogger.Log[TState](LogLevel logLevel, EventId eventId, TState state, Exception exception, Func`3 formatter) at Microsoft.Extensions.Logging.Logger.g__LoggerLog|13_0[TState](LogLevel logLevel, EventId eventId, ILogger logger, Exception exception, Func`3 formatter, List`1& exceptions, TState& state) HResult:-2147467259 Дополнительная информация из ExternalException: HRESULT=0x80004005 Информация из Win32Exception: NativeErrorCode=1722 -------------------------------------------------------------------------------------- 2024-02-20 15:40:38.9627 E:1 Program ============================================ 2024-02-20 15:40:38.9953 E:1 Program === Сервер запущен 2024-02-20 15:40:38.9953 E:1 Program ============================================