algorithmic modeling for Rhino
I have written my own GH plugin for Rhino 6. I want to use a nancy self hosting server. On installing the NuGet package and using this code -
private string _url = "http://localhost";
private int _port = 12345;
private NancyHost _nancy;
public override void AddedToDocument(GH_Document document){
var uri = new Uri($"{_url}:{_port}/");
_nancy = new NancyHost(uri);
_nancy.Start();
base.AddedToDocument(document);
}
I am getting the following exception
System.TypeLoadException
HResult=0x80131522
Message=Method 'Equals' in type 'Weaverbird.Geometry.IPoints.PointList`2' from assembly 'WeaverBird.Core, Version=0.9.0.1, Culture=neutral, PublicKeyToken=7441991d7d373a63' does not have an implementation.
Source=mscorlib
StackTrace:
at System.RuntimeTypeHandle.GetDeclaringType(RuntimeType type)
at System.RuntimeType.RuntimeTypeCache.GetEnclosingType()
at Nancy.TinyIoc.TinyIoCContainer.b__13(Type type)
at System.Linq.Enumerable.WhereListIterator`1.MoveNext()
at Nancy.TinyIoc.TinyIoCContainer.AutoRegisterInternal(IEnumerable`1 assemblies, DuplicateImplementationActions duplicateAction, Func`2 registrationPredicate)
at Nancy.DefaultNancyBootstrapper.AutoRegister(TinyIoCContainer container, IEnumerable`1 ignoredAssemblies)
at Nancy.Bootstrapper.NancyBootstrapperBase`1.Initialise()
at Nancy.Hosting.Self.NancyHost..ctor(INancyBootstrapper bootstrapper, HostConfiguration configuration, Uri[] baseUris)
at DStar.DStarRemote.AddedToDocument(GH_Document document) in C:\Users\sr-02502\Documents\GitHub\DStar\DStarRemote.cs:line 53
at Grasshopper.Kernel.GH_Document.AddObject(IGH_DocumentObject docObject, Boolean update, Int32 index)
at Grasshopper.GUI.Canvas.GH_Canvas.InstantiateNewObject(IGH_DocumentObject obj, String init_code, PointF at, Boolean update)
Tags:
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by