Division Posted July 9, 2019 Posted July 9, 2019 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?
Division Posted July 9, 2019 Author Posted July 9, 2019 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.
MarioRogue Posted September 18, 2021 Posted September 18, 2021 Hey seems like I have the same issue and the line is not solving it
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now