NinjaTrader Support Forum  

Go Back   NinjaTrader Support Forum > Application Technical Support > Miscellaneous Support

Miscellaneous Support Miscellaneous support issues.

Reply
 
Thread Tools Display Modes
Old 02-15-2010, 09:52 AM   #1
shodson
Member
 
Join Date: May 2009
Posts: 81
Thanks: 1
Thanked 0 times in 0 posts
Default "Import failed" after removing an assembly

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.
Attached Images
File Type: jpg error.jpg (53.9 KB, 17 views)
shodson is offline  
Reply With Quote
Old 02-15-2010, 12:15 PM   #2
NinjaTrader_Bertrand
NinjaTrader Customer Service
 
NinjaTrader_Bertrand's Avatar
 
Join Date: Sep 2008
Location: Germany
Posts: 22,377
Thanks: 252
Thanked 966 times in 949 posts
Default

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.
NinjaTrader_Bertrand is offline  
Reply With Quote
Old 02-22-2010, 02:22 PM   #3
shodson
Member
 
Join Date: May 2009
Posts: 81
Thanks: 1
Thanked 0 times in 0 posts
Default

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.
shodson is offline  
Reply With Quote
Old 02-22-2010, 02:51 PM   #4
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
Default

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?
NinjaTrader_Josh is offline  
Reply With Quote
Old 06-03-2010, 10:48 AM   #5
cunparis
Senior Member
 
Join Date: Feb 2008
Location: Paris
Posts: 710
Thanks: 10
Thanked 10 times in 7 posts
Default

Shodson - did you get a solution for this? I have it too.
cunparis is offline  
Reply With Quote
Old 06-03-2010, 10:56 AM   #6
shodson
Member
 
Join Date: May 2009
Posts: 81
Thanks: 1
Thanked 0 times in 0 posts
Default

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.
shodson is offline  
Reply With Quote
Old 06-03-2010, 10:58 AM   #7
cunparis
Senior Member
 
Join Date: Feb 2008
Location: Paris
Posts: 710
Thanks: 10
Thanked 10 times in 7 posts
Default

I only have one indicator but mine uses the GOM framework, I wonder if that could be the source of my problem.
cunparis is offline  
Reply With Quote
Old 06-03-2010, 11:08 AM   #8
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
Default

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.
NinjaTrader_Josh is offline  
Reply With Quote
Old 06-03-2010, 11:09 AM   #9
cunparis
Senior Member
 
Join Date: Feb 2008
Location: Paris
Posts: 710
Thanks: 10
Thanked 10 times in 7 posts
Default

Wouldn't that give a different error than the duplicate method names?
cunparis is offline  
Reply With Quote
Old 06-03-2010, 12:03 PM   #10
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
Default

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.
NinjaTrader_Josh is offline  
Reply With Quote
Old 06-03-2010, 12:07 PM   #11
cunparis
Senior Member
 
Join Date: Feb 2008
Location: Paris
Posts: 710
Thanks: 10
Thanked 10 times in 7 posts
Default

Don't those get included automatically? It seems to include the GOM classes that I use.
cunparis is offline  
Reply With Quote
Old 06-03-2010, 12:11 PM   #12
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
Default

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.
NinjaTrader_Josh is offline  
Reply With Quote
Old 06-03-2010, 12:18 PM   #13
cunparis
Senior Member
 
Join Date: Feb 2008
Location: Paris
Posts: 710
Thanks: 10
Thanked 10 times in 7 posts
Default

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.
cunparis 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
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


All times are GMT -6. The time now is 07:47 PM.