NinjaTrader Support Forum  
X

Attention!

This website will be down for maintenance from Friday May 24th at 6PM MDT until Saturday May 25th at 11AM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com


Go Back   NinjaTrader Support Forum > Application Technical Support > Installation and Licensing

Installation and Licensing Support for installation and licensing of NinjaTrader.

Reply
 
Thread Tools Display Modes
Old 05-03-2011, 01:20 AM   #1
DionysusToast
Senior Member
 
Join Date: Jul 2010
Location: Bangkok
Posts: 162
Thanks: 4
Thanked 38 times in 12 posts
Unhappy CliSecure Full Version + Ninja

All

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
Last edited by DionysusToast; 05-03-2011 at 01:26 AM.
DionysusToast is offline  
Reply With Quote
Old 05-03-2011, 09:12 AM   #2
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,411
Thanks: 252
Thanked 976 times in 959 posts
Default

DionysusToast, as we discussed in your other thread on this the full obfuscation (including signatures and properties) is currently not supported unfortunately, however we're adding your suggestion under tracking # 930 in our system.

Thanks,
NinjaTrader_Bertrand is offline  
Reply With Quote
Old 05-03-2011, 10:53 AM   #3
bukkan
Senior Member
 
Join Date: Feb 2009
Posts: 285
Thanks: 2
Thanked 52 times in 41 posts
Default

BerTrand,
In this regard I would like to add the following.

I own a copy of .Net Reactor. When I try to import an indicator obfuscated with the same, NT is throwing an error (see attached pic).

Is third party obfuscator supported, if so pls do also add thrid party obfuscator in the list of future support.

regards..

pls do note:
though i didnt face any issues for testing etc pls import the indicator on a standby pc if possible.

I manually deleted the dll and the reference and recompiled an indicator, and everything was back to normal.
Attached Images
File Type: png Obfuscate.PNG (110.7 KB, 37 views)
Attached Files
File Type: zip Obfuscate.zip (78.9 KB, 6 views)
bukkan is offline  
Reply With Quote
Old 05-03-2011, 11:38 AM   #4
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,411
Thanks: 252
Thanked 976 times in 959 posts
Default

Thanks for the suggestion bukkan - you're of course free to work / experiment with your own obfuscation techniques as you desired, however we would not be able to provide support in this area then.
NinjaTrader_Bertrand is offline  
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
CliSecure - Protection level DionysusToast General Programming 19 05-06-2012 11:29 AM
What CliSecure options are being used? koganam Installation and Licensing 10 03-21-2011 07:37 AM
Ninja Trader v7.0.1000.2 on Windows 7 Ultimate x64 SP1(full) error ! Muska Miscellaneous Support 18 03-03-2011 06:58 AM
TT Credits (broker to full version) ggm01 Installation and Licensing 1 07-23-2009 05:09 AM
Ninja full of bugs ? bluejay Charting 1 03-05-2009 01:11 PM


All times are GMT -6. The time now is 10:32 AM.