mcneel / rhinocommon

RhinoCommon is the .NET SDK for Rhino5 / Grasshopper
http://wiki.mcneel.com/developer/rhinocommon
244 stars 93 forks source link

System.TypeInitializationException error while constructing a Plane #173

Closed VahidYousefzadeh closed 7 years ago

VahidYousefzadeh commented 7 years ago

Hi all,

I've added a reference to the lastest version of Rhino3dmIO.dll in a Console Application project and tried to construct a Plane:

Plane plane = new Plane(Point3d.Origin, Vector3d.YAxis);

I'm getting System.TypeInitializationException exception though. Am I missing something big time?

Thanks

piac commented 7 years ago

It shouldn't happen. Are you able to look at the inner exception and tell the Description?

Thanks

Giulio

-- Giulio Piacentino for Robert McNeel & Associates giulio@mcneel.com

VahidYousefzadeh commented 7 years ago

Fortunately, the exception does not happen now that I added the reference again. You can see the exception here. I have also attached the project.

image

RhinoException.zip

piac commented 7 years ago

Thanks @vahidce; I am going to close this issue, as it really is not something I would know how to fix. Feel free to tell me that this is not fixed, otherwise!