Hi Alex,

It seems that the exception is thrown inside your method "ExamRecordLoader" so it is hard to debug. 
Is it possible that the error is thrown because of different working directories? Can you try to use the full path to 'MyBinaryFile.bin' ?

Also, I always use the file name including the extension ( clr.AddReference("C:\ExamRecordHelper.dll") ) but I doubt it will change anything

I hope it helps,
Manu. 



On Wed, Jan 27, 2021 at 2:47 PM Alexander Masis <alexmasis@gmail.com> wrote:
The code in the original post works in IronPython ( i.e. loaderObj = ExamRecordLoader( 'MyBinaryFile.bin') this line has no exceptions in IronPython )
_______________________________________________
PythonNet mailing list -- pythonnet@python.org
To unsubscribe send an email to pythonnet-leave@python.org
https://mail.python.org/mailman3/lists/pythonnet.python.org/
Member address: manu@upsim.tech