ArgumentTypeException expected X got X

Hello,

I solved the problem by using clr.AddReference() instead of AddReferenceToFileAndPath(). Probably the additional copy into sys.path caused the type error problem.