[HELP] PLEASE!

01/23/2010 05:27 DontLookDown#1
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
any ideas?
01/23/2010 06:26 Arcо#2
Quote:
Originally Posted by DontLookDown View Post
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
any ideas?
Is your vps a 64 bit?
01/23/2010 06:39 DontLookDown#3
Yeah it is.
01/23/2010 06:42 Arcо#4
Quote:
Originally Posted by DontLookDown View Post
Yeah it is.
Please refer to the FAQ section of my Official 5165 thread.
Big thanks to Korvacs for that solution.
01/23/2010 06:48 spare2#5
[Only registered and activated users can see links. Click Here To Register...]
01/23/2010 09:02 DontLookDown#6
Ok, i did that, now i get this error
Code:
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
01/23/2010 14:37 Korvacs#7
What version of visual studio are you using?
01/23/2010 20:06 DontLookDown#8
Visual C# express editions 2008
01/23/2010 20:37 Korvacs#9
Have you made any alterations to the source?
01/23/2010 20:43 DontLookDown#10
Actually no, i tried it on my source, then i downloaded on from epvpers and tried that too, none worked.
01/23/2010 22:41 Korvacs#11
And you followed the guide completely?

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?
01/23/2010 22:55 spare2#12
IDK what's the problem. But you still have .Net framework 2.0, try updating to 3.5 or 4?
01/23/2010 23:50 DontLookDown#13
I have 3.5 .net frameworks..
01/23/2010 23:53 .Ryu#14
Quote:
Originally Posted by DontLookDown View Post
I have 3.5 .net frameworks..
Trying getting visual c# 10 :D
It helped my friend