Currently I am creating a new assembly using visual studio. Let’s call this assembly A. I reference assembly B to the assembly A project. However I could not load assembly B in grasshopper. It keeps reporting the same problem.
Object: AssemblyA (level 1)
{
Exception has been thrown by the target of an invocation.
TargetInvocationException
}
Object: AssemblyA (level 2)
{
Could not load file or assembly ‘AssemblyB, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null’ or one of its dependencies. The system cannot find the file specified.
FileNotFoundException
}
I have read all other related grasshopper forum topic related to this error and could not find my own solution. I have also tried the following:
-
Re-opened my Visual Studio and project.
-
Removing extra references in the code
-
Copying both AssemblyA and AssemblyB .gha to my
/Libaries/
directory. -
Setting Copy True local of all the references to false.
-
Deleting .PDBs
-
Clear all temp files
Thanks in advance