Pryaxis / TShock

☕️⚡️TShock provides Terraria servers with server-side characters, anti-cheat, and community management tools.
GNU General Public License v3.0
2.43k stars 382 forks source link

Continuous Crashing #1664

Closed enderking470 closed 5 years ago

enderking470 commented 5 years ago

Any stack traces or error messages (if known)?

[03/27/19 09:43:43] [Server API] Verbose: TerrariaApi - Server v2.1.0.0 started.
[03/27/19 09:43:43] [Server API] Verbose:   Command line: "C:\Users\john smith\Downloads\tshock_4.3.25\TerrariaServer.exe" 
[03/27/19 09:43:43] [Server API] Verbose:   OS: Microsoft Windows NT 6.1.7601 Service Pack 1 (64bit: True)
[03/27/19 09:43:43] [Server API] Verbose:   Mono: False
[03/27/19 09:43:43] [Server API] Error: Startup aborted due to an exception in the Server API initialization:
System.InvalidOperationException: Plugin "TShock" has thrown an exception during initialization. ---> System.Exception: Fatal TShock initialization exception. See inner exception for details. ---> System.TypeLoadException: Could not load type 'System.Collections.Generic.IReadOnlyDictionary`2' from assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
   at Newtonsoft.Json.Utilities.CollectionUtils.IsDictionaryType(Type type)
   at Newtonsoft.Json.Serialization.DefaultContractResolver.CreateContract(Type objectType)
   at Newtonsoft.Json.Serialization.DefaultContractResolver.ResolveContract(Type type)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.Serialize(JsonWriter jsonWriter, Object value, Type objectType)
   at Newtonsoft.Json.JsonSerializer.SerializeInternal(JsonWriter jsonWriter, Object value, Type objectType)
   at Newtonsoft.Json.JsonConvert.SerializeObjectInternal(Object value, Type type, JsonSerializer jsonSerializer)
   at TShockAPI.ConfigFile.Write(Stream stream)
   at TShockAPI.ConfigFile.Write(String path)
   at TShockAPI.FileTools.SetupConfig()
   at TShockAPI.TShock.Initialize()
   --- End of inner exception stack trace ---
   at TShockAPI.TShock.Initialize()
   at TerrariaApi.Server.ServerApi.LoadPlugins()
   --- End of inner exception stack trace ---
   at TerrariaApi.Server.ServerApi.LoadPlugins()
   at TerrariaApi.Server.ServerApi.Initialize(String[] commandLineArgs, Main game)
   at TerrariaApi.Server.HookManager.InitialiseAPI()
sr229 commented 5 years ago

Seems it can't load a part of the standard library. What's your .NET Framework version?

enderking470 commented 5 years ago

Microsoft .NET Framework 4.7.2

On Wed, Mar 27, 2019, 10:41 AM Hikari Kibo, notifications@github.com wrote:

Seems it can't load a part of the standard library. What's your .NET Framework version?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Pryaxis/TShock/issues/1664#issuecomment-477186978, or mute the thread https://github.com/notifications/unsubscribe-auth/AYq7z8kMI9kLytl6XUJwA6mkbFdc21o5ks5va4MigaJpZM4cN2Cb .

sr229 commented 5 years ago

CC @bartico6

bartico6 commented 5 years ago

Installer MSCorlib version Doesn't happen here on a clean compile of v4.3.25. You likely have a corrupted .NET installation.

QuiCM commented 5 years ago

@enderking470 is this still occurring for you after verifying your dotnet installation?

no-response[bot] commented 5 years ago

This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further.