Jump to content

Always 'Could not load the specified file' but server is working


Division

Recommended Posts

Hey,

I always get errors like:

==================[24.03.2019 21:39:41]==================
System.IO.FileNotFoundException: Could not load the specified file.
File name: 'System.Runtime'
   at Assembly System.Runtime.Loader.AssemblyLoadContext.ResolveUsingEvent(AssemblyName assemblyName)
=========================================================

==================[24.03.2019 21:39:45]==================
System.IO.FileNotFoundException: Could not load the specified file.
File name: 'System.Data.Common'
   at Assembly System.Runtime.Loader.AssemblyLoadContext.ResolveUsingEvent(AssemblyName assemblyName)
=========================================================

First they result in server crash, than I added all needed .dll files into /bin/Debug/netcore2.2/.
Now the server and functions are working without crashing but the server_exceptions.txt always writing this errors.

How can I fix this errors?

Link to comment
Share on other sites

vor 18 Stunden schrieb MiMIMi:

Did you install the Gtanetworkapi thru NuGet? Are you using MySQL .NET connector? Had similar error messages before.

First I did, than I removed it and added the bootstrapper.dll as reference.
I use MySQL .NET connector (thru nuget)

Link to comment
Share on other sites

Seems like the more libraries I use, they are always throwing exceptions

==================[26.03.2019 22:41:50]==================
System.IO.FileNotFoundException: Could not load the specified file.
File name: 'System.Runtime'
   at Assembly System.Runtime.Loader.AssemblyLoadContext.ResolveUsingEvent(AssemblyName assemblyName)
=========================================================

==================[26.03.2019 22:41:50]==================
System.IO.FileNotFoundException: Could not load the specified file.
File name: 'System.Threading.Timer'
   at Assembly System.Runtime.Loader.AssemblyLoadContext.ResolveUsingEvent(AssemblyName assemblyName)
=========================================================

==================[26.03.2019 22:42:50]==================
System.IO.FileNotFoundException: Could not load the specified file.
File name: 'System.Collections'
   at Assembly System.Runtime.Loader.AssemblyLoadContext.ResolveUsingEvent(AssemblyName assemblyName)
=========================================================

==================[26.03.2019 22:42:50]==================
System.IO.FileNotFoundException: Could not load the specified file.
File name: 'System.Linq'
   at Assembly System.Runtime.Loader.AssemblyLoadContext.ResolveUsingEvent(AssemblyName assemblyName)
=========================================================

==================[26.03.2019 22:45:19]==================
System.IO.FileNotFoundException: Could not load the specified file.
File name: 'System.Data.Common'
   at Assembly System.Runtime.Loader.AssemblyLoadContext.ResolveUsingEvent(AssemblyName assemblyName)
=========================================================

==================[26.03.2019 22:45:19]==================
System.IO.FileNotFoundException: Could not load the specified file.
File name: 'System.Linq.Expressions'
   at Assembly System.Runtime.Loader.AssemblyLoadContext.ResolveUsingEvent(AssemblyName assemblyName)
=========================================================

==================[26.03.2019 22:46:32]==================
System.IO.FileNotFoundException: Could not load the specified file.
File name: 'Newtonsoft.Json'
   at Assembly System.Runtime.Loader.AssemblyLoadContext.ResolveUsingEvent(AssemblyName assemblyName)
=========================================================

==================[26.03.2019 22:46:32]==================
System.IO.FileNotFoundException: Could not load the specified file.
File name: 'System.Diagnostics.Debug'
   at Assembly System.Runtime.Loader.AssemblyLoadContext.ResolveUsingEvent(AssemblyName assemblyName)
=========================================================

 

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...