Passing around custom class objects in GH (C#)

Hi all,

I’m using option 3 David suggested.
It works well at first but now It occurs error message.
I thought it depends on .dll file location so I made my component refer same file location.
However there is still this message…

[A]Analysis.defExportModel cannot to be cast to [B]Analysis.defExportModel 
Type A originates from 'Analysis, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' (in the context 'LoadNeither'、at location 'C:\Users\kjmsn\AppData\Roaming\Grasshopper\Libraries\Analysis.dll')
Type B originates from 'Analysis, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' (in the context 'LoadFrom' at ocation 'C:\Users\kjmsn\Documents\Visual Studio 2015\Projects\Analysis\Analysis\bin\Debug\Analysis.dll')

There was discussion about this error but it seems the topic author gave up to solve it.

Does anyone know how to solve it?