mismatch RRS feed

  • Question

  • I run Visual Studio 2012, Rhino5 for 32 bits and grasshopper for rhino 5. Why do I keep getting this error.

    Warning 1 There was a mismatch between the processor architecture of the project being built "MSIL" and the processor architecture of the reference "Rhino_DotNet", "x86". This mismatch may cause runtime failures. Please consider changing the targeted processor architecture of your project through the Configuration Manager so as to align the processor architectures between your project and references, or take a dependency on references with a processor architecture that matches the targeted processor architecture of your project.


    Error 3 Value of type 'Boolean' cannot be converted to 'Grasshopper.Kernel.Types.GH_Boolean'. C:\Users\User\Documents\Visual Studio 2012\Projects\ClassLibrary2\ClassLibrary2\Class1.vb 27 42 ClassLibrary2

    Sunday, April 28, 2013 3:58 PM


  • Are you targeting AnyCPU? If so you are getting this warning because you are referencing a 32bit assembly. If you run you code on a 64bit machine .NET will throw a System.BadImageformatException when it tries to load Rhino5. It would be safer to change the platform target in your project to x86.

    Sunday, April 28, 2013 4:15 PM