1. These forums are still being retired! Please use GitHub discussions or Discord. You cannot create new threads or new accounts now. If you need to contact some user of the forums, you should do it sooner, rather than later. This notice was last updated on May 30th, 2021.

Server startup error.

Discussion in 'Help and Support' started by Quazeei, Jun 30, 2014.

Thread Status:
Not open for further replies.
  1. Quazeei

    Quazeei Level 1

    Joined:
    Nov 2, 2013
    Messages:
    14
    Hi, I'm Filip and I've got a problem with Tshock server.
    Whenever I try to start it, it shows in the console (from ServerLog):

    Code:
    [06-30-14 16:30:47] [Server API] Verbose: TerrariaApi - Server v1.16.0.0 started.
    [06-30-14 16:30:47] [Server API] Verbose:    Command line: "C:\Users\Filip\Desktop\terraria server\TerrariaServer.exe"
    [06-30-14 16:30:47] [Server API] Verbose:    OS: Microsoft Windows NT 6.2.9200.0 (64bit: True)
    [06-30-14 16:30:47] [Server API] Verbose:    Mono: False
    [06-30-14 16:30:47] [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.BadImageFormatException: Nie można załadować pliku lub zestawu 'System.Runtime.Serialization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' lub jednej z jego zależności. Oczekiwano, że moduł będzie zawierał manifest zestawu.
      w Newtonsoft.Json.Serialization.DefaultContractResolver.InitializeContract(JsonContract contract)
      w Newtonsoft.Json.Serialization.DefaultContractResolver.CreateObjectContract(Type objectType)
      w Newtonsoft.Json.Serialization.DefaultContractResolver.CreateContract(Type objectType)
      w Newtonsoft.Json.Serialization.DefaultContractResolver.ResolveContract(Type type)
      w Newtonsoft.Json.Serialization.JsonSerializerInternalReader.GetContractSafe(Type type)
      w Newtonsoft.Json.Serialization.JsonSerializerInternalReader.ReadForType(JsonReader reader, Type t, JsonConverter propertyConverter)
      w Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType)
      w Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
      w Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)
      w Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings)
      w TShockAPI.ConfigFile.Read(Stream stream)
      w TShockAPI.ConfigFile.Read(String path)
      w TShockAPI.FileTools.SetupConfig()
      w TShockAPI.TShock.Initialize()
      --- Koniec śladu stosu wyjątków wewnętrznych ---
      w TShockAPI.TShock.Initialize()
      w TerrariaApi.Server.ServerApi.LoadPlugins()
      --- Koniec śladu stosu wyjątków wewnętrznych ---
      w TerrariaApi.Server.ServerApi.LoadPlugins()
      w TerrariaApi.Server.ServerApi.Initialize(String[] commandLineArgs, Main game)
      w Terraria.ProgramServer.Main(String[] args)
    
    I'm from Poland and some things are in polish language, and here are some of these translated by me to english:
    - Nie można załadować pliku lub zestawu - Cannot load file or set
    - lub jednej z jego zależności. Oczekiwano, że moduł będzie zawierał manifest zestawu. - or one of their dependence. Expected, that module contains set manifesto.
    - Koniec śladu stosu wyjątków wewnętrznych - End of trail of stack of internal exceptions.

    BY THE WAY: Because I'm from Poland, some things may be translated a bit wrong, don't blame me for that - internet translators are even more wrong.

    Additional things:
    - config.json is always empty, even after startup of server.
    - there is no log file in tshock folder.
     
  2. MarioE

    TShock Admin TShock Mod Plugin Developer

    Joined:
    May 26, 2012
    Messages:
    383
    Try installing the full .NET 4.0? That module might only be included inside of a full installation and not the client profile.
     
  3. Quazeei

    Quazeei Level 1

    Joined:
    Nov 2, 2013
    Messages:
    14
    What do you mean full .NET? What's the difference between these two?
     
  4. MarioE

    TShock Admin TShock Mod Plugin Developer

    Joined:
    May 26, 2012
    Messages:
    383
    The client profile has fewer features than the full version. In this case, it probably does not have "System.Runtime.Serialization."
     
  5. Quazeei

    Quazeei Level 1

    Joined:
    Nov 2, 2013
    Messages:
    14
    Do I have to buy the full version? Additionally, I've always had the same version and when I've had a server on 1.3.0.1 version it worked...
     
  6. MarioE

    TShock Admin TShock Mod Plugin Developer

    Joined:
    May 26, 2012
    Messages:
    383
  7. Quazeei

    Quazeei Level 1

    Joined:
    Nov 2, 2013
    Messages:
    14
    I try to install, it doesn't want to - it says that I've got it already.
    By the way, the case is in the TshockAPI.dll because when I deleted it, everything worked fine, but obviously became a normal vanilla server.
     
  8. MarioE

    TShock Admin TShock Mod Plugin Developer

    Joined:
    May 26, 2012
    Messages:
    383
    Can you try re-installing it, then? If that's not the issue then I honestly have no idea.
     
  9. Quazeei

    Quazeei Level 1

    Joined:
    Nov 2, 2013
    Messages:
    14
    You know, I've found an uninstaller or .NET Framework but when I install it again, it just says it already is installed. Have you got a good uninstaller? Maybe I've picked the wrong one...
    By the way, I'm using Windows 8.1.
     
  10. Olink

    Olink Admin note: Actually a really nice person now

    Joined:
    Jul 21, 2011
    Messages:
    1,397
  11. Quazeei

    Quazeei Level 1

    Joined:
    Nov 2, 2013
    Messages:
    14
    Do I have to choose all 3 files when downloading it?
     
  12. Ijwu

    Ijwu Level 11

    Joined:
    Apr 4, 2012
    Messages:
    644
    No, just the top one should work for you.
     
  13. Quazeei

    Quazeei Level 1

    Joined:
    Nov 2, 2013
    Messages:
    14
    Ok, another error. Raw translated from installation wizard: KB2468871v2 nie ma zastosowania lub jest blokowany przez inny warunek na tym komputerze. - which means in english: KB2468871v2 doesn't have application or is blocked by other condition on this computer.

    (sorry if it's translated bad)
     
  14. Wight

    Wight Administrator
    TShock Admin TShock Mod Plugin Developer Zero Day Plugin Author

    Joined:
    May 20, 2012
    Messages:
    1,598
    Do you have administrator access on your computer?
     
  15. Quazeei

    Quazeei Level 1

    Joined:
    Nov 2, 2013
    Messages:
    14
    I do, I am an administrator on my computer.
     
  16. Quazeei

    Quazeei Level 1

    Joined:
    Nov 2, 2013
    Messages:
    14
    Error still occurs. Isn't there any solution from that...?
     
  17. Ijwu

    Ijwu Level 11

    Joined:
    Apr 4, 2012
    Messages:
    644
    I don't think any of us have any ideas.

    Well, I suppose you could try one more thing. Try using the third download in the link Olink gave you.
     
  18. Quazeei

    Quazeei Level 1

    Joined:
    Nov 2, 2013
    Messages:
    14
    Ok.. Same error. I think it's done here. But really thanks for your trying to help me.
    Whenever you would find a solution, type. I'm always free for it.

    I think... bye.
     
  19. Marcus101RR

    Marcus101RR Guest


    It could be one of those RARE moments where all of your System Specs and how your computer is set up is causing the problems. I had this with some games, programs. I had to decide to Wipe my entire machine and install a clean HDD with Windows and start over. This usually fixes everything, but of course, its not everyone's solution.

    BTW, this might be a hunch, but Json is Java...Consider downloading Java for your PC, and I am not talking about Java for Chrome or another browswer, I am talking about literally "The" Java for your pc. This is just a hunch.
     
  20. cracker64

    Plugin Developer

    Joined:
    Nov 3, 2013
    Messages:
    25
    Delete the blank config file.

    Sometimes mine would blank out and not start.
    If it creates a new blank one on start up though, I can't help there.
     
Thread Status:
Not open for further replies.