Throw actual exception instead of swallowing them in FindEntryPoint and throwing System.IO.FileNotFoundException #5

Closed
spazzarama opened this Issue Aug 14, 2015 · 0 comments

Comments

Projects
None yet
1 participant
@spazzarama
Member

spazzarama commented Aug 14, 2015

Moved from CodePlex

Instead of {System.IO.FileNotFoundException: The given user library could not be found.}, have the binaries in build folder, and was still not sure why it fails to load. Finally decided to modify private static Type FindEntryPoint(string userAssemblyStrongName, string userAssemblyFileName) by throwing the actual exceptions instead of swallowing them. I found that my binaries were of incorrect type.
The actual exceptions were clear enough for me to fix!

{"Could not load file or assembly '<my dll>, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=c7d65e07d9025c78' or one of its dependencies. An attempt was made to load a
program with an incorrect format."}

Could not load file or assembly '' or one of its dependencies. An attempt was made to load a program with an incorrect format.

@spazzarama spazzarama added this to the 2.7 Stable milestone Aug 14, 2015

@spazzarama spazzarama self-assigned this Aug 14, 2015

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