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 > Miscellaneous Support > Historical Version 7 Beta Threads > Version 7 Beta General Questions & Bug Reports

Version 7 Beta General Questions & Bug Reports Ask questions here and post bug reports.

 
 
Thread Tools Display Modes
Old 10-04-2010, 04:25 PM   #1
un$ane
Member
 
Join Date: Oct 2008
Posts: 68
Thanks: 0
Thanked 0 times in 0 posts
Default Import NinjaScript Archive File Error Beta 22

Since upgrading to Beta 22 from 21, I can't seem to import my compiled assembly...If I transport the source code over, it compiles fine. I get the attached error dialog. Any thoughts?
Attached Images
File Type: png temp.png (38.5 KB, 7 views)
un$ane is offline  
Old 10-04-2010, 04:32 PM   #2
NinjaTrader_RyanM
NinjaTrader Customer Service
 
NinjaTrader_RyanM's Avatar
 
Join Date: Sep 2009
Location: Denver, CO
Posts: 8,117
Thanks: 249
Thanked 418 times in 415 posts
Default

Hello un$ane,

Likely the duplicate method message is caused by the existence of the source code. Please try to delete your script from Tools > Edit NinjaScript > indicator/strategy and then import the assembly.
NinjaTrader_RyanM is offline  
Old 10-04-2010, 04:41 PM   #3
un$ane
Member
 
Join Date: Oct 2008
Posts: 68
Thanks: 0
Thanked 0 times in 0 posts
Default

I wish it was that easy...I've done a fresh install and still it's being rejected. Is there more info supplied somewhere in a log file? Are you storing variables in the registry? I've noticed others are having compiling issues since upgrading to 22 too.
un$ane is offline  
Old 10-04-2010, 04:46 PM   #4
NinjaTrader_RyanM
NinjaTrader Customer Service
 
NinjaTrader_RyanM's Avatar
 
Join Date: Sep 2009
Location: Denver, CO
Posts: 8,117
Thanks: 249
Thanked 418 times in 415 posts
Default

Unfortunately no additional information is logged. There's nothing stored in the registry, but if you didn't manually delete the My Documents\NinjaTrader 7 folder, all custom items from the previous installation remain.
NinjaTrader_RyanM is offline  
Old 10-04-2010, 04:51 PM   #5
un$ane
Member
 
Join Date: Oct 2008
Posts: 68
Thanks: 0
Thanked 0 times in 0 posts
Default

Yes, that is part of the fresh install. Any other suggestions?
un$ane is offline  
Old 10-04-2010, 05:00 PM   #6
NinjaTrader_RyanM
NinjaTrader Customer Service
 
NinjaTrader_RyanM's Avatar
 
Join Date: Sep 2009
Location: Denver, CO
Posts: 8,117
Thanks: 249
Thanked 418 times in 415 posts
Default

Try loading the source code file one more time and verifying it compiles. Then, export to assembly the new file and try with this.
NinjaTrader_RyanM is offline  
Old 10-04-2010, 05:14 PM   #7
un$ane
Member
 
Join Date: Oct 2008
Posts: 68
Thanks: 0
Thanked 0 times in 0 posts
Default

Ok, I'm exporting them one at a time and found the one it's choking on. I'll investigate further, without debugging though. It's weird it will compile the source files fine, but won't import the assembly. I'll let you know if I find anything that may be of use to you or someone in the future.

Thanks for the help.
un$ane is offline  
Old 10-04-2010, 05:31 PM   #8
un$ane
Member
 
Join Date: Oct 2008
Posts: 68
Thanks: 0
Thanked 0 times in 0 posts
Default

Well...I had an enum in the wrong place I guess. VS thought it was fine, but NT didn't like it. The joy of compiling and debugging with two platforms. Thanks again for the help, and sorry to waste your time.
un$ane is offline  
 

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
Import NinjaScript Archive File (.zip) Warning sonnykhalil General Programming 9 03-31-2011 07:49 AM
error when back up and seems similar error when importing ninjascript .zip file MoreYummy Miscellaneous Support 6 06-22-2010 04:30 PM
Exporting NinjaScript Archive File- Compiler Error snobtrader Miscellaneous Support 2 01-02-2010 12:34 PM
NinjaScript Archive Error thuff General Programming 4 08-01-2009 01:27 PM
Export NinjaScript Archive File NinjaSP Indicator Development 3 03-31-2009 06:35 AM


All times are GMT -6. The time now is 02:29 AM.