Any ideas?
Edit: Log...
6/18/2008 1:15:09 PM Default Unable to create instance of 'NinjaTrader.Indicator.MarketDepth'. Most likely there is no default constructor defined, or the default constructor does not work correctly: Exception has been thrown by the target of an invocation.
Edit2: This seems to happen when I try and instantiate classes from a .dll compiled with VS2005, which I have referenced in NT, it happenens even with empty classes.
Edit3: Yet I can instantiate the classes in the .dll using a C# console project.
Edit4: VS2005 trace
The thread '<No Name>' (0xeac) has exited with code 0 (0x0).
'NinjaTrader.exe' (Managed): Loaded 'C:\Documents and Settings\craig\My Documents\NinjaTrader 6.5\bin\Custom\Tmp\ce3b10e0be69441b9e6ea87e92a73a8 0.dll', Symbols loaded.
A first chance exception of type 'System.Xml.XmlException' occurred in System.Xml.dll
A first chance exception of type 'System.IO.FileNotFoundException' occurred in ce3b10e0be69441b9e6ea87e92a73a80.dll
A first chance exception of type 'System.TypeInitializationException' occurred in ce3b10e0be69441b9e6ea87e92a73a80.dll
A first chance exception of type 'System.Reflection.TargetInvocationException' occurred in mscorlib.dll
A first chance exception of type 'System.Reflection.TargetInvocationException' occurred in mscorlib.dll
2008-06-18 13:41:27:463 ERROR: Unable to create instance of 'NinjaTrader.Indicator.ADL'. Most likely there is no default constructor defined, or the default constructor does not work correctly: Exception has been thrown by the target of an invocation.
A first chance exception of type 'System.Reflection.TargetInvocationException' occurred in mscorlib.dll
A first chance exception of type 'System.Reflection.TargetInvocationException' occurred in mscorlib.dll
2008-06-18 13:41:27:479 ERROR: Unable to create instance of 'NinjaTrader.Indicator.Test'. Most likely there is no default constructor defined, or the default constructor does not work correctly: Exception has been thrown by the target of an invocation.
Edit 5:
Here is what happens if I move the invocation into Initialize
A first chance exception of type 'System.IO.FileNotFoundException' occurred in NinjaTrader.Core.dll
2008-06-18 13:51:28:632 ERROR: Failed to call method 'Initialize' for indicator 'Test': Could not load file or assembly 'NinjaTraderTools, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
Comment