Skip to content

CS2_SimpleAdmin.Helper.GetValidPlayers() error #275

Closed

Description

@syedaliaun352

Error:
19:20:58 [EROR] (cssharp:Core) Error invoking callback System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.IO.FileLoadException: Could not load file or assembly 'ZLinq, Version=1.5.4.0, Culture=neutral, PublicKeyToken=df4c250b14d82627'. An operation is not legal in the current state. (0x80131509) File name: 'ZLinq, Version=1.5.4.0, Culture=neutral, PublicKeyToken=df4c250b14d82627' ---> System.InvalidOperationException: AssemblyLoadContext is unloading or was already unloaded. at System.Runtime.Loader.AssemblyLoadContext.LoadFromStream(Stream assembly, Stream assemblySymbols) at McMaster.NETCore.Plugins.Loader.ManagedLoadContext.LoadAssemblyFromFilePath(String path) at McMaster.NETCore.Plugins.Loader.ManagedLoadContext.Load(AssemblyName assemblyName) at System.Runtime.Loader.AssemblyLoadContext.ResolveUsingLoad(AssemblyName assemblyName) at System.Runtime.Loader.AssemblyLoadContext.Resolve(IntPtr gchManagedAssemblyLoadContext, AssemblyName assemblyName) at CS2_SimpleAdmin.Helper.GetValidPlayers() at CS2_SimpleAdmin.Managers.PlayerManager.<CheckPlayersTimer>b__3_0() at InvokeStub_Action.Invoke(Object, Object, IntPtr*) at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr) --- End of inner exception stack trace --- at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr) at System.Delegate.DynamicInvokeImpl(Object[] args) at CounterStrikeSharp.API.Core.FunctionReference.<CreateWrappedCallback>b__18_0(fxScriptContext* context) in /home/runner/work/CounterStrikeSharp/CounterStrikeSharp/managed/CounterStrikeSharp.API/Core/FunctionReference.cs:line 101

the code is getting out of date and causing errors after each cs2 update, please update @daffyyyy

Activity

  1. daffyyyy commented on Apr 23, 2026

    @daffyyyy
    Owner

    Could not load file or assembly 'ZLinq
    Just upload all files

  2. syedaliaun352 commented on Apr 23, 2026

    @syedaliaun352
    Author

    can you verify two more problems please?

    first is whenever i start server i get this:
    System.OverflowException: Arithmetic operation resulted in an overflow. at Deserialize22663911-9b8d-4725-a264-0b541842b740(DbDataReader) at Dapper.SqlMapper.QueryAsync[T](IDbConnection cnn, Type effectiveType, CommandDefinition command) in /_/Dapper/SqlMapper.Async.cs:line 454 at CS2_SimpleAdmin.Managers.CacheManager.InitializeCacheAsync() at CS2_SimpleAdmin.Managers.CacheManager.InitializeCacheAsync()

    and second is statusblocker the metamod plugin is crashing the server when we change map

    latest version installed: 1.7.9a, it was happening on other versions as well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions