Sign in to follow this  
Division

Always missing DLL files

Recommended Posts

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

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.