![]() |
|
|||||||
| Miscellaneous Support Miscellaneous support issues. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Member
Join Date: May 2009
Posts: 81
Thanks: 1
Thanked 0 times in 0 posts
|
Using 6.5.1000.14 on Windows XP
After removing an indicator via "Remove Assembly..." and looking in \My Documents\NinjaTrader 6.5\bin\Custom and My Documents\NinjaTrader 6.5\bin\Custom\Indicator I can see that the indicator files are no longer there. I then shutdown Ninja and restart it. Then, when I try to re-install the indicator again I get this error Import failed. The existing NinjaScript file 'a4af667719664256a4e22ab4d9794db7, version 6.5.1000.14, Culture=neutral, PublicToken=null' contains duplicate method names in the imported NinjaScript Archive File. Attached is a screenshot. This is being reported by a user of our's and I can't duplicate * the problem so I'm reaching out to you guys to see if you had any tips. We can install the indicator and re-install it fine on our end. It's a commercial indicator that is compiled and obfusctated with the Remotesoft tool. |
|
|
|
|
|
#2 |
|
NinjaTrader Customer Service
Join Date: Sep 2008
Location: Germany
Posts: 22,377
Thanks: 252
Thanked 966 times in 949 posts
|
shodson, can you please try to recompile your customer's scripts first (after assembly removal) before trying to reinstall the indicators. To see which methods cause the issues, you could drop the DLL directly into the custom folder and then compile...the duplicate methods would then be shown in the NinjaScript editor.
Bertrand
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Member
Join Date: May 2009
Posts: 81
Thanks: 1
Thanked 0 times in 0 posts
|
I created the assembly. They are using only the assembly. They don't have any of the original source .cs files, just the compiled assembly. When they removed the assembly as described above, then tried to import my newer version, this is when they got the error. I confirmed that the DLL and .CS files are not on their computer anymore, so I don't know what it could be conflicting with.
|
|
|
|
|
|
#4 |
|
NinjaTrader Product Manager
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
|
shodson,
Are you referencing some thing from your source code that you are not including in your assembly that they could require? Have they restarted NT after removing old assemblies before trying to import?
Josh
NinjaTrader Customer Service |
|
|
|
|
|
#5 |
|
Senior Member
Join Date: Feb 2008
Location: Paris
Posts: 710
Thanks: 10
Thanked 10 times in 7 posts
|
Shodson - did you get a solution for this? I have it too.
|
|
|
|
|
|
#6 |
|
Member
Join Date: May 2009
Posts: 81
Thanks: 1
Thanked 0 times in 0 posts
|
Hey stranger
![]() The issue was that my original export/ZIP file had 2 custom indicators in them. I later exported them as two, separate export/ZIP files and imported them individually that made the problem go away. |
|
|
|
|
|
#7 |
|
Senior Member
Join Date: Feb 2008
Location: Paris
Posts: 710
Thanks: 10
Thanked 10 times in 7 posts
|
I only have one indicator but mine uses the GOM framework, I wonder if that could be the source of my problem.
|
|
|
|
|
|
#8 |
|
NinjaTrader Product Manager
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
|
If your indicator uses GOM, you would need to have GOM included already on the install machine or in the export as well to be installed concurrently with it.
Josh
NinjaTrader Customer Service |
|
|
|
|
|
#9 |
|
Senior Member
Join Date: Feb 2008
Location: Paris
Posts: 710
Thanks: 10
Thanked 10 times in 7 posts
|
Wouldn't that give a different error than the duplicate method names?
|
|
|
|
|
|
#10 |
|
NinjaTrader Product Manager
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
|
cunparis,
It all depends on how your NinjaScript files interrelate to each other. What you will for sure need the scripts that your files rely on installed or else it won't work.
Josh
NinjaTrader Customer Service |
|
|
|
|
|
#11 |
|
Senior Member
Join Date: Feb 2008
Location: Paris
Posts: 710
Thanks: 10
Thanked 10 times in 7 posts
|
Don't those get included automatically? It seems to include the GOM classes that I use.
|
|
|
|
|
|
#12 |
|
NinjaTrader Product Manager
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
|
As mentioned, it all depends on how your scripts interrelate with each other. We would not know how GOM is programmed or how your indicator is programmed. If your indicator is calling methods and properties from GOM then for sure you need to include GOM to your package too. There is no auto inclusion of required 3rd party components.
What you need to do is install GOM onto your computer. Then install your indicator.
Josh
NinjaTrader Customer Service |
|
|
|
|
|
#13 |
|
Senior Member
Join Date: Feb 2008
Location: Paris
Posts: 710
Thanks: 10
Thanked 10 times in 7 posts
|
Ok I'm going to reinstall ninja on a new pc and then experiment with what I need to package to get it to work.
one thing that's weird is my DLL contains methods or method declarations for other libraries. in fact every DLL I have shows up in my DLL and I'm not using them. I get Woodies CCI in my DLL and I don't use woodies. lots of others too. |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Error message "Failed to execute DB job . . . " | LG | Version 7 Beta General Questions & Bug Reports | 2 | 01-29-2010 08:19 AM |
| NT7 chgs to "Auto-import 1000's of contracts' meta-data (not manually)" | ChiTrader2000 | Version 7 Beta General Questions & Bug Reports | 12 | 11-07-2009 09:10 AM |
| summary of "strategy realized" is not equal "account performance, total net profit"" | Fragolino | Miscellaneous Support | 1 | 02-19-2009 04:12 AM |
| Error Warning upon clicking the "Import NinjaScript" button | pipal | General Programming | 1 | 06-05-2008 10:22 PM |
| Failed to call method "Initialize" for indicator 'Test': Object reference not set to | clearpicks | Indicator Development | 3 | 04-23-2008 12:53 PM |