Код:
[INFO] Loading NodeJS packages...
[INFO] Starting packages...
[DONE] Server packages have been started.
Initializing Bootstrapper.dll (1.1.0.0)..
-> SERVER STARTED AT 26.06.2023 17:37:15
Unable to load acl.xml
ACLEnabled: False
Loaded 667 entries from vehicleData.json
Loading resources..
-> Starting NeptuneEvo resource..
NeptuneEvo: loading scripts.. found 1 script(s)
NeptuneEvo: instantiating NeptuneEvo.Main..
Object cannot be cast from DBNull to other types.
Object cannot be cast from DBNull to other types.
17:37:16.470 | Info | Main | No Connect To Main DataBase
Object cannot be cast from DBNull to other types.
Object cannot be cast from DBNull to other types.
17:37:16.487 | Info | Main | No Connect To Main Config
17:37:16.576 | Info | Utils.Redis | Start: All ok. For server: 0
17:37:16.579 | Info | Main | Backup Starting
Object cannot be cast from DBNull to other types.
Object cannot be cast from DBNull to other types.
17:37:16.603 | Succ | Core.Economy | Economy loaded.
17:37:16.611 | Info | Chars.Repository | [00:00:00.0008847] Inventory system loaded (0)
17:37:16.632 | Info | nTimer | Elapsed(5175e379-ca30-401c-a99f-99ec8a662bf6,MS:0,ONCE:True,From:) Task #1 Exception: System.InvalidCastException: Object cannot be cast from DBNull to other types.
at System.DBNull.System.IConvertible.ToInt32(IFormatProvider provider)
at MySql.Data.MySqlClient.Driver.LoadCharacterSets(MySqlConnection connection)
at MySql.Data.MySqlClient.Driver.Configure(MySqlConnection connection)
at MySql.Data.MySqlClient.MySqlConnection.Open()
at NeptuneEvo.Functions.BackupSql.Backup() in C:\Users\qweiu\Downloads\redage_v3-main\dotnet\resources\NeptuneEvo\Functions\BackupSql.cs:line 30
at Redage.SDK.nTimer.<Elapsed>b__32_0() in C:\Users\qweiu\Downloads\redage_v3-main\dotnet\resources\NeptuneEvoSDK\Timers.cs:line 428
The given key '63' was not present in the dictionary.
The given key '63' was not present in the dictionary.
The given key '63' was not present in the dictionary.
The given key '63' was not present in the dictionary.
The given key '63' was not present in the dictionary.
The given key '63' was not present in the dictionary.
The given key '63' was not present in the dictionary.
The given key '63' was not present in the dictionary.
The given key '63' was not present in the dictionary.
The given key '63' was not present in the dictionary.
The given key '63' was not present in the dictionary.
The given key '63' was not present in the dictionary.
The given key '63' was not present in the dictionary.
Unhandled exception. System.Collections.Generic.KeyNotFoundException: The given key '63' was not present in the dictionary.
at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
at MySql.Data.MySqlClient.MySqlField.SetFieldEncoding()
at MySql.Data.MySqlClient.MySqlField.set_CharacterSetIndex(Int32 value)
at MySql.Data.MySqlClient.NativeDriver.GetColumnData(MySqlField field)
at MySql.Data.MySqlClient.NativeDriver.GetColumnsData(MySqlField[] columns)
at MySql.Data.MySqlClient.Driver.GetColumns(Int32 count)
at MySql.Data.MySqlClient.ResultSet.LoadColumns(Int32 numCols)
at MySql.Data.MySqlClient.ResultSet..ctor(Driver d, Int32 statementId, Int32 numCols)
at MySql.Data.MySqlClient.Driver.NextResult(Int32 statementId, Boolean force)
at MySql.Data.MySqlClient.MySqlDataReader.NextResult()
at MySql.Data.MySqlClient.MySqlDataReader.Close()
at MySql.Data.MySqlClient.MySqlCommand.ResetReader()
at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)
at MySql.Data.MySqlClient.MySqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
at System.Data.Common.DbCommand.ExecuteDbDataReaderAsync(CommandBehavior behavior, CancellationToken cancellationToken)
--- End of stack trace from previous location where exception was thrown ---
at LinqToDB.Data.DataConnection.ExecuteReaderAsync(CommandBehavior commandBehavior, CancellationToken cancellationToken)
at LinqToDB.Data.DataConnection.QueryRunner.ExecuteReaderAsync(CancellationToken cancellationToken)
at LinqToDB.Linq.QueryRunner.ExecuteQueryAsync[T](Query query, IDataContext dataContext, Mapper`1 mapper, Expression expression, Object[] ps, Object[] preambles, Int32 queryNumber, Func`2 func, TakeSkipDelegate skipAction, TakeSkipDelegate takeAction, CancellationToken cancellationToken)
at LinqToDB.Linq.QueryRunner.ExecuteQueryAsync[T](Query query, IDataContext dataContext, Mapper`1 mapper, Expression expression, Object[] ps, Object[] preambles, Int32 queryNumber, Func`2 func, TakeSkipDelegate skipAction, TakeSkipDelegate takeAction, CancellationToken cancellationToken)
at LinqToDB.Linq.ExpressionQuery`1.GetForEachAsync(Action`1 action, CancellationToken cancellationToken)
at LinqToDB.AsyncExtensions.ToListAsync[TSource](IQueryable`1 source, CancellationToken token)
at NeptuneEvo.Chars.Repository.InitRoulette() in C:\Users\qweiu\Downloads\redage_v3-main\dotnet\resources\NeptuneEvo\Chars\Repository.cs:line 1083
at NeptuneEvo.Chars.Repository.InitRoulette() in C:\Users\qweiu\Downloads\redage_v3-main\dotnet\resources\NeptuneEvo\Chars\Repository.cs:line 1147
at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__139_1(Object state)
at System.Threading.QueueUserWorkItemCallback.<>c.<.cctor>b__6_0(QueueUserWorkItemCallback quwi)
at System.Threading.ExecutionContext.RunForThreadPoolUnsafe[TState](ExecutionContext executionContext, Action`1 callback, TState& state)
at System.Threading.QueueUserWorkItemCallback.Execute()
at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()Out of sync with server
БД подключил в 3-ех файлах, в чем проблема?
