I think the problem is that IdentifyPlugIn() in your case is a class method, not a standalone function as it needs to be, so it's exported name in the DLL is most certainly different (mangled.) Not being proficient in C# I can't say if it's possible to export methods using arbitrary names (but as I understand it's not possible to write standalone functions in it, they must be members of some class.)