win-x64 version not working #169

Closed
opened 2026-01-29 21:06:45 +00:00 by claunia · 1 comment
Owner

Originally created by @Feathered-Serpent on GitHub (Mar 10, 2024).

Originally assigned to: @mnadareski on GitHub.

Downloaded BinaryObjectScanner_3.1.0_net8.0_win-x64_release.zip and every file I want to test, even the Test.exe itself, causes in a file created called "exception-(timestamp).txt"

Example:

System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types.




   at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
   at System.Reflection.RuntimeModule.GetTypes()
   at BinaryObjectScanner.Handler.InitCheckClasses[T](Assembly assembly)
   at BinaryObjectScanner.Handler.InitCheckClasses[T]()
   at BinaryObjectScanner.Handler.get_PathCheckClasses()
   at BinaryObjectScanner.Handler.HandlePathChecks(String path, IEnumerable`1 files)
   at BinaryObjectScanner.Scanner.GetProtections(List`1 paths)
   at BinaryObjectScanner.Scanner.GetProtections(String path)
   at Test.Protector.GetAndWriteProtections(Scanner scanner, String path)
System.TypeLoadException
System.TypeLoadException
System.TypeLoadException
System.TypeLoadException

Using BinaryObjectScanner_3.1.0_net8.0_win-x86_release.zip works flawlessly. This one has a few DLLs inside, which the x64 version does not. Is there the problem?

Originally created by @Feathered-Serpent on GitHub (Mar 10, 2024). Originally assigned to: @mnadareski on GitHub. Downloaded BinaryObjectScanner_3.1.0_net8.0_win-x64_release.zip and every file I want to test, even the Test.exe itself, causes in a file created called "exception-(timestamp).txt" Example: ``` System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module) at System.Reflection.RuntimeModule.GetTypes() at BinaryObjectScanner.Handler.InitCheckClasses[T](Assembly assembly) at BinaryObjectScanner.Handler.InitCheckClasses[T]() at BinaryObjectScanner.Handler.get_PathCheckClasses() at BinaryObjectScanner.Handler.HandlePathChecks(String path, IEnumerable`1 files) at BinaryObjectScanner.Scanner.GetProtections(List`1 paths) at BinaryObjectScanner.Scanner.GetProtections(String path) at Test.Protector.GetAndWriteProtections(Scanner scanner, String path) System.TypeLoadException System.TypeLoadException System.TypeLoadException System.TypeLoadException ``` Using BinaryObjectScanner_3.1.0_net8.0_win-x86_release.zip works flawlessly. This one has a few DLLs inside, which the x64 version does not. Is there the problem?
Author
Owner

@mnadareski commented on GitHub (Mar 11, 2024):

Interesting that this doesn't seem to happen in the untargeted build. I'm going to have to take a look at this a bit deeper to see why building for win-x64 is causing this issue.

@mnadareski commented on GitHub (Mar 11, 2024): Interesting that this doesn't seem to happen in the untargeted build. I'm going to have to take a look at this a bit deeper to see why building for `win-x64` is causing this issue.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SabreTools/BinaryObjectScanner#169