I’m getting odd exceptions with C# nodes if I call a method from a custom library which has generic inputs and uses IoC. At least, this is what I’ve managed to narrow it down to.
Unfortunately the exception messages I’m getting are red herrings - in the example below I’m not referencing RevitNodes and to get some more clues, if I provide a more derived type (i.e. concrete implementation of my interface) into the method with the less derived (generic) type I start seeing more useful exceptions (invalid casts) but still no solution. when I debug in Visual Studio it still yields no clues - I just get the same red herring exception message.
The method signature:
This is not a missing library problem - I’m making no calls to RevitNodes.dll!