Well - I went ahead and purchased the full version of CliSecure so that I can properly secure all of my coding assets.
I can't find any docs anywhere on fully protecting the code with Ninja and the full CliSecure and I am looking for advice.
Here is what I have tried.
Test 1
- Create an assembly from Ninja without the "Protect Compiled Assemblies" option checked.
- Import this assembly into Ninja Trader on a second PC.
Results : Indicators worked fine
Test 2
- obfuscated the DLLs in the assembly from step 1
- put the obfuscated DLL back into the zip file
Results :
Log:
03/05/2011 14:10:59|0|4|Unable to retrieve type infos from assembly 'JigsawBeta1_1': System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
at System.Reflection.Module._GetTypesInternal(StackCr awlMark& stackMark)
at System.Reflection.Assembly.GetTypes()
at NinjaTrader.Cbi.AssemblyDictionary.GetTypes(Type superClass)
03/05/2011 14:13:17|1|2|Kinetick: Primary connection=Disconnected, Price feed=Disconnected
03/05/2011 14:13:26|1|4|Verifying license at primary server...
03/05/2011 14:13:29|2|4|Session Break (Version 7.0.1000.4)
03/05/2011 14:13:29|1|4|Current license: Type=SimulationOnly State=Verified StartDate=01/01/2005 EndDate=01/12/2099 Collective2 Dtn ESignal External Provider2 Provider3 Provider7 Replay Simulator Yahoo Gain Hosted InteractiveBrokers MBTrading Patsystems Provider1 Provider4 Provider8 Provider9 Tda TrackData TradingTechnologies AdvancedStrategyManagement AutomatedTrading BasicEntry Charting SuperDom
03/05/2011 14:13:29|3|4|Failed load vendor assembly 'C:\Users\hp\Documents\NinjaTrader 7\bin\Custom\JigsawBeta1_1.dll': Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
03/05/2011 14:13:29|1|4|Vendor assembly 'JTConsolidatedTape' version='1.0.0.0' loaded.
03/05/2011 14:13:29|1|4|Vendor assembly 'SummaryTape' version='1.0.0.0' loaded.
03/05/2011 14:13:32|0|4|Unable to retrieve type infos from assembly 'JigsawBeta1_1': System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
at System.Reflection.Module._GetTypesInternal(StackCr awlMark& stackMark)
at System.Reflection.Assembly.GetTypes()
at NinjaTrader.Cbi.AssemblyDictionary.GetTypes(Type superClass)
03/05/2011 14:13:32|0|4|Unable to retrieve type infos from assembly 'JigsawBeta1_1': System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
at System.Reflection.Module._GetTypesInternal(StackCr awlMark& stackMark)
at System.Reflection.Assembly.GetTypes()
at NinjaTrader.Cbi.AssemblyDictionary.GetTypes(Type superClass)
Trace
2011-05-03 14:23:23:115 Loading C:\Users\hp\Documents\NinjaTrader 7\bin\Custom\NinjaTrader.Vendor.dll...
2011-05-03 14:23:23:121 Loading 3rd party C:\Users\hp\Documents\NinjaTrader 7\bin\Custom\JigsawBeta1_1.dll...
2011-05-03 14:23:23:153 ERROR: Failed load vendor assembly 'C:\Users\hp\Documents\NinjaTrader 7\bin\Custom\JigsawBeta1_1.dll': Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
My problem is this:
- I have code that is way more than a simple indicator. Free CliSecure gives far too much away.
- I now have the full CliSecure but zero guidelines on how to use it with Ninja.
Anyone else done this?
Cheers
Pete
Comment