ACE icon indicating copy to clipboard operation
ACE copied to clipboard

New Server Setup Error: System.InvalidCastException

Open delizin opened this issue 3 years ago • 0 comments

Bug Report or Feature Request (mark with an x)

- [ x ] bug report -> please search issues before submitting
- [ ] feature request

Repro steps.

Follow the steps here to setup the database using MariaDB 10.10: https://github.com/ACEmulator/ACE/wiki/ACE-Hosting Then the following steps to setup for Windows: https://github.com/ACEmulator/ACE/wiki/ACE-Hosting-Windows

The log given by the failure.

2022-10-27 22:57:59,682 INFO : Initializing ConfigManager... 2022-10-27 22:57:59,683 INFO : Pruning invalid friends from all friend lists... 2022-10-27 22:58:00,870 INFO : Pruned 0 invalid friends found on friend lists. 2022-10-27 22:58:00,870 INFO : Automatic Server version check started... 2022-10-27 22:58:01,127 INFO : Current Server Binary: 1.48.4280.20221019161439-master-fa6fe39 2022-10-27 22:58:01,430 INFO : Latest Server Version is v1.48.4280 -- No Update Required! 2022-10-27 22:58:01,433 INFO : Automatic World Database Update started... 2022-10-27 22:58:01,477 INFO : Current World Database version: Base - v0.8.5 | Patch - v0.9.262 2022-10-27 22:58:01,652 INFO : Latest patch version is v0.9.262 -- No Update Required! 2022-10-27 22:58:01,652 INFO : Automatic World Database Update complete. Unhandled 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 ACE.Server.Program.GetContentFolder() in C:\projects\ace\Source\ACE.Server\Program_DbUpdates.cs:line 153 at ACE.Server.Program.AutoApplyWorldCustomizations() in C:\projects\ace\Source\ACE.Server\Program_DbUpdates.cs:line 185 at ACE.Server.Program.Main(String[] args) in C:\projects\ace\Source\ACE.Server\Program.cs:line 205 2022-10-27 22:58:01,735 ERROR: 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 ACE.Server.Program.GetContentFolder() in C:\projects\ace\Source\ACE.Server\Program_DbUpdates.cs:line 153 at ACE.Server.Program.AutoApplyWorldCustomizations() in C:\projects\ace\Source\ACE.Server\Program_DbUpdates.cs:line 185 at ACE.Server.Program.Main(String[] args) in C:\projects\ace\Source\ACE.Server\Program.cs:line 205

Mention any other details that might be useful.

I was able to run the server by going into the Config.js and disabling the auto update options.

delizin avatar Oct 28 '22 03:10 delizin