Looks like goBIM_API or one of its references are 32 bit. If you have any assembly marked x86 it will not load into a x64 assembly.
It looks as if you are using a third-party library (goBIM_API.dll) which is only present as a 32-bit version. You get the exception because this 32-bit assembly cannot be loaded into 64-bit process.
To fix this problem, either get a 64-bit version of that library, or, what is easier, set the target platform to x86 for all your executables.
Using x86 on a 64-bit platform usually should not have any noticeable performance hit. The only downside is that you can't get above the 2GB/3GB memory limit of a process.
Update:
Is AutoDesk Revit a 32-bit application? That's what it looks like. Then you will have to compile your libary using the x86 platform target to fix the error.
Did you compile the DLL using Multi-threaded (/MT) so that all dependencies are put in the binary of your DLL?
Because the serializer was being called in a method called by another process, the goBIM_API.dll needed to be located in the same directory as that processes' executable. After moving the .dll to that location, serialization works fine.