SpickeyCactus
SpickeyCactus
CC#
Created by SpickeyCactus on 2/4/2024 in #help
System.TypeLoadException error when executing a dll created via c# .net standard library
will check into this, thanks!
7 replies
CC#
Created by SpickeyCactus on 2/4/2024 in #help
System.TypeLoadException error when executing a dll created via c# .net standard library
no, this is the entire traceback
Traceback (most recent call last):
File "C:\path\to\python_project\change_icon.py", line 12, in <module>
IconInject.IconInjector.InjectIcon(r"C:\path\to\rtgr.exe", r"C:\path\ie.ico")
System.TypeLoadException: Could not load type 'System.Runtime.InteropServices.GCHandle' from assembly 'System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
at IconInject.IconInjector.IconFile.FromFile(String filename)
at IconInject.IconInjector.InjectIcon(String exeFileName, String iconFileName, UInt32 iconGroupID, UInt32 iconBaseID)
at IconInject.IconInjector.InjectIcon(String exeFileName, String iconFileName)
Traceback (most recent call last):
File "C:\path\to\python_project\change_icon.py", line 12, in <module>
IconInject.IconInjector.InjectIcon(r"C:\path\to\rtgr.exe", r"C:\path\ie.ico")
System.TypeLoadException: Could not load type 'System.Runtime.InteropServices.GCHandle' from assembly 'System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
at IconInject.IconInjector.IconFile.FromFile(String filename)
at IconInject.IconInjector.InjectIcon(String exeFileName, String iconFileName, UInt32 iconGroupID, UInt32 iconBaseID)
at IconInject.IconInjector.InjectIcon(String exeFileName, String iconFileName)
7 replies
CC#
Created by SpickeyCactus on 2/4/2024 in #help
System.TypeLoadException error when executing a dll created via c# .net standard library
i mostly understand what each part of the code does, but no where near a proper c# programmer
7 replies