Hello, today im trying to add my server to my vps, but when someone trys to connect i get this error
Code:
System.BadImageFormatException: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)
at NewestCOServer.Native.BF_set_key(IntPtr _key, Int32 len, Byte[] data)
at NewestCOServer.Main.Blowfish.SetKey(Byte[] data) in C:\Users\HP\Desktop\server work\ultimo update rikardo\rikardo updated\Main\Blowfish.cs:line 85
at NewestCOServer.Main.GameCrypto..ctor(Byte[] key) in C:\Users\HP\Desktop\server work\ultimo update rikardo\rikardo updated\Main\Blowfish.cs:line 15
at NewestCOServer.Main.GameClient..ctor(Boolean Robot) in C:\Users\HP\Desktop\server work\ultimo update rikardo\rikardo updated\Main\GameClient.cs:line 48
System.NullReferenceException: Object reference not set to an instance of an object.
at NewestCOServer.Main.GameWorker.ConnectionHandler(StateObj S) in C:\Users\HP\Desktop\server work\ultimo update rikardo\rikardo updated\Main\GameWorker.cs:line 33
Hello, today im trying to add my server to my vps, but when someone trys to connect i get this error
Code:
System.BadImageFormatException: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)
at NewestCOServer.Native.BF_set_key(IntPtr _key, Int32 len, Byte[] data)
at NewestCOServer.Main.Blowfish.SetKey(Byte[] data) in C:\Users\HP\Desktop\server work\ultimo update rikardo\rikardo updated\Main\Blowfish.cs:line 85
at NewestCOServer.Main.GameCrypto..ctor(Byte[] key) in C:\Users\HP\Desktop\server work\ultimo update rikardo\rikardo updated\Main\Blowfish.cs:line 15
at NewestCOServer.Main.GameClient..ctor(Boolean Robot) in C:\Users\HP\Desktop\server work\ultimo update rikardo\rikardo updated\Main\GameClient.cs:line 48
System.NullReferenceException: Object reference not set to an instance of an object.
at NewestCOServer.Main.GameWorker.ConnectionHandler(StateObj S) in C:\Users\HP\Desktop\server work\ultimo update rikardo\rikardo updated\Main\GameWorker.cs:line 33
System.Configuration.ConfigurationErrorsException: Configuration system failed to initialize ---> System.Configuration.ConfigurationErrorsException: Unrecognized configuration section system.serviceModel. (C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\machine.config line 136)
at System.Configuration.ConfigurationSchemaErrors.ThrowIfErrors(Boolean ignoreLocal)
at System.Configuration.BaseConfigurationRecord.ThrowIfParseErrors(ConfigurationSchemaErrors schemaErrors)
at System.Configuration.BaseConfigurationRecord.ThrowIfInitErrors()
at System.Configuration.ClientConfigurationSystem.EnsureInit(String configKey)
--- End of inner exception stack trace ---
at System.Configuration.ClientConfigurationSystem.EnsureInit(String configKey)
at System.Configuration.ClientConfigurationSystem.PrepareClientConfigSystem(String sectionName)
at System.Configuration.ClientConfigurationSystem.System.Configuration.Internal.IInternalConfigSystem.GetSection(String sectionName)
at System.Configuration.ConfigurationManager.GetSection(String sectionName)
at System.Configuration.PrivilegedConfigurationManager.GetSection(String sectionName)
at System.Diagnostics.DiagnosticsConfiguration.GetConfigSection()
at System.Diagnostics.DiagnosticsConfiguration.Initialize()
at System.Diagnostics.DiagnosticsConfiguration.get_Sources()
at System.Diagnostics.TraceSource.Initialize()
at System.Net.Logging.InitializeLogging()
at System.Net.Logging.get_On()
at System.Net.Sockets.Socket..ctor(AddressFamily addressFamily, SocketType socketType, ProtocolType protocolType)
at NewestCOServer.Connection.Listen(Int32 Port) in C:\Documents and Settings\Administrator\Desktop\rikardo updated\Connection.cs:line 49
System.NullReferenceException: Object reference not set to an instance of an object.
at NewestCOServer.Connection.Listen(Int32 Port) in C:\Documents and Settings\Administrator\Desktop\rikardo updated\Connection.cs:line 56
at NewestCOServer.Main.AuthWorker.StartServer(String GameIP) in C:\Documents and Settings\Administrator\Desktop\rikardo updated\Main\AuthWorker.cs:line 68
System.Configuration.ConfigurationErrorsException: Configuration system failed to initialize ---> System.Configuration.ConfigurationErrorsException: Unrecognized configuration section system.serviceModel. (C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\machine.config line 136)
at System.Configuration.ConfigurationSchemaErrors.ThrowIfErrors(Boolean ignoreLocal)
at System.Configuration.BaseConfigurationRecord.ThrowIfParseErrors(ConfigurationSchemaErrors schemaErrors)
at System.Configuration.BaseConfigurationRecord.ThrowIfInitErrors()
at System.Configuration.ClientConfigurationSystem.EnsureInit(String configKey)
--- End of inner exception stack trace ---
at System.Configuration.ConfigurationManager.PrepareConfigSystem()
at System.Configuration.ConfigurationManager.GetSection(String sectionName)
at System.Configuration.PrivilegedConfigurationManager.GetSection(String sectionName)
at System.Net.Configuration.SettingsSectionInternal.get_Section()
at System.Net.Sockets.Socket.InitializeSockets()
at System.Net.Sockets.Socket..ctor(AddressFamily addressFamily, SocketType socketType, ProtocolType protocolType)
at NewestCOServer.Connection.Listen(Int32 Port) in C:\Documents and Settings\Administrator\Desktop\rikardo updated\Connection.cs:line 49
System.NullReferenceException: Object reference not set to an instance of an object.
at NewestCOServer.Connection.Listen(Int32 Port) in C:\Documents and Settings\Administrator\Desktop\rikardo updated\Connection.cs:line 56
at NewestCOServer.Main.GameWorker.StartServer() in C:\Documents and Settings\Administrator\Desktop\rikardo updated\Main\GameWorker.cs:line 22
It appears as though NewestCOServer.Connection is not being created, or atleast something within that is not being created correctly. What .Net Framework are you aiming your project at?