MCCTeam / Minecraft-Console-Client

Lightweight console for Minecraft chat and automated scripts
https://mccteam.github.io
Other
1.63k stars 396 forks source link

System.BadImageFormatException on login #696

Closed CCoenC closed 5 years ago

CCoenC commented 5 years ago

When I log in on the client it immediately says this, it all started randomly one day, iv tried reinstalling everything and have reinstalled it multiple times.

Any comments are appreciated \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/ Minecraft Login failed : Network error. Not connected to any server. Use '/help' for help. Or press Enter to exit Minecraft Console Client.

TheSnoozer commented 5 years ago
  1. Are you using the exe file from the latest development build?
  2. Does your general network connectivity works with mojang? Try
    curl https://authserver.mojang.com

    To check session server works properly.

  3. Have you configured any proxies in your MinecraftClient.ini?
CCoenC commented 5 years ago

Yes I am using the latest build, i have not configured anything in the .ini file except the first time i was using the client. When I went to the link it said: {"Status":"OK","Runtime-Mode":"productionMode","Application-Author":"Mojang Web Force","Application-Description":"Mojang Authentication Server.","Specification-Version":"4.5.19","Application-Name":"yggdrasil.auth.restlet.server","Implementation-Version":"4.5.19_build158","Application-Owner":"Mojang"}

I think that is good, not sure though

ORelio commented 5 years ago

Maybe you cannot directly connect to the login service because you are behind a proxy. If you can access it with your web browser, check proxy settings in your browser and copy them in MCC settings.

CCoenC commented 5 years ago

Maybe you cannot directly connect to the login service because you are behind a proxy. If you can access it with your web browser, check proxy settings in your browser and copy them in MCC settings.

I dont use a proxy for my browser, I also dont use in the mcc as of right now.

ORelio commented 5 years ago

Does setting debugmessages=true in config gives you more detail?

CCoenC commented 5 years ago

It still says this:

Connecting to Minecraft.net... Performing request to authserver.mojang.com Minecraft Login failed : Network error. Not connected to any server. Use '/help' for help. Or press Enter to exit Minecraft Console Client.

ORelio commented 5 years ago

Please retry using latest development build, just added some debug messages for you.

CCoenC commented 5 years ago

It now says this:

Connecting to Minecraft.net... Performing request to authserver.mojang.com System.BadImageFormatException: Could not load file or assembly 'System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The file or directory is corrupted and unreadable. (Exception from HRESULT: 0x80070570) File name: 'System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' at MinecraftClient.Protocol.ProtocolHandler.DoHTTPSRequest(List`1 headers, String host, String& result) at MinecraftClient.Protocol.ProtocolHandler.DoHTTPSPost(String host, String endpoint, String request, String& result) at MinecraftClient.Protocol.ProtocolHandler.GetLogin(String user, String pass, SessionToken& session)

WRN: Assembly binding logging is turned OFF. To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1. Note: There is some performance penalty associated with assembly bind failure logging. To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

Minecraft Login failed : Network error. Not connected to any server. Use '/help' for help. Or press Enter to exit Minecraft Console Client.

ORelio commented 5 years ago

Could not load file or assembly System.Configuration: Seems like one of your .NET framework DLLs is corrupt. Try uninstalling & reinstalling? 🤔

CCoenC commented 5 years ago

I reinstalled it but I still get this message:

Connecting to Minecraft.net... Performing request to authserver.mojang.com System.BadImageFormatException: Could not load file or assembly 'System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The file or directory is corrupted and unreadable. (Exception from HRESULT: 0x80070570) File name: 'System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' at MinecraftClient.Protocol.ProtocolHandler.DoHTTPSRequest(List`1 headers, String host, String& result) at MinecraftClient.Protocol.ProtocolHandler.DoHTTPSPost(String host, String endpoint, String request, String& result) at MinecraftClient.Protocol.ProtocolHandler.GetLogin(String user, String pass, SessionToken& session)

WRN: Assembly binding logging is turned OFF. To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1. Note: There is some performance penalty associated with assembly bind failure logging. To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

Minecraft Login failed : Network error. Not connected to any server. Use '/help' for help. Or press Enter to exit Minecraft Console Client.

ORelio commented 5 years ago

You can try to resolve filesystem issues by running chkdsk /F C: in an administrator console, and corrupt windows files using sfc /scannow. Hope this helps...

CCoenC commented 5 years ago

Sorry I haven’t responded. I had gone on vacation the same day. Will post a new reply once I do it. Thanks.

CCoenC commented 5 years ago

Ty so much. Everything is working now

ORelio commented 5 years ago

Glad to hear! Closing the thread.