Skip to content

Could not load type error #28

@xxbeefydjxx

Description

@xxbeefydjxx

Hi,

Apologies if this is the wrong project, but

Using a custom C++ DLL injected into a game to load the X86 C# .NET Framework 4.7.2 DLL using Reloaded.Hooks, I get the below error regarding types.

Reloaded.Memory, and Reloaded.Memory.Buffers are installed in NuGET, the while DLL is packed up using Fody Weavers.

As below:
Error: System.TypeLoadException: Could not load type 'Reloaded.Memory.Buffers.MemoryBuffer' from assembly 'Reloaded.Memory.Buffers, Version=3.0.6.0, Culture=neutral, PublicKeyToken=null'.
at Reloaded.Hooks.X86.Wrapper.Create[TFunction](UIntPtr functionAddress, IFunctionAttribute fromConvention, IFunctionAttribute toConvention)
at Reloaded.Hooks.X86.ReverseWrapper1.Create(ReverseWrapper1 reverseFunctionWrapper, UIntPtr functionPtr)
at Reloaded.Hooks.X86.ReverseWrapper1..ctor(TFunction function) at Reloaded.Hooks.Hook1.CreateReverseWrapper(TFunction function)
at Reloaded.Hooks.ReloadedHooks.CreateHook[TFunction](TFunction function, Int64 functionAddress, Int32 minHookLength)
at Reloaded.Hooks.ReloadedHooks.CreateHook[TFunction](TFunction function, Int64 functionAddress)****

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions