Division 2 Posted July 9 System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.IO.FileLoadException: Could not load file or assembly 'Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed'. Could not find or load a specific file. (Exception from HRESULT: 0x80131621) ---> System.IO.FileLoadException: Could not load file or assembly 'Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, I always get this errors in console but the process still works. If I add dlls trough nuget packages, they are mostly throwing errors too (without carshing the server). Tex are also copied to runtime folder. Any idea? Share this post Link to post Share on other sites
Division 2 Posted July 9 okay found the reason. put into ur project-settings <CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies> rebuild your project and copy ALL dll files (this parameter above copies all dependencies to ur build) to runtime. viola errors gone. Share this post Link to post Share on other sites