![]() |
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
|
|||||||
| Version 7 Beta General Questions & Bug Reports Ask questions here and post bug reports. |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Member
Join Date: Oct 2008
Posts: 68
Thanks: 0
Thanked 0 times in 0 posts
|
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?
|
|
|
|
|
|
#2 |
|
NinjaTrader Customer Service
Join Date: Sep 2009
Location: Denver, CO
Posts: 8,117
Thanks: 249
Thanked 418 times in 415 posts
|
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.
Ryan M
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Member
Join Date: Oct 2008
Posts: 68
Thanks: 0
Thanked 0 times in 0 posts
|
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.
|
|
|
|
|
|
#4 |
|
NinjaTrader Customer Service
Join Date: Sep 2009
Location: Denver, CO
Posts: 8,117
Thanks: 249
Thanked 418 times in 415 posts
|
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.
Ryan M
NinjaTrader Customer Service |
|
|
|
|
|
#5 |
|
Member
Join Date: Oct 2008
Posts: 68
Thanks: 0
Thanked 0 times in 0 posts
|
Yes, that is part of the fresh install. Any other suggestions?
|
|
|
|
|
|
#6 |
|
NinjaTrader Customer Service
Join Date: Sep 2009
Location: Denver, CO
Posts: 8,117
Thanks: 249
Thanked 418 times in 415 posts
|
Try loading the source code file one more time and verifying it compiles. Then, export to assembly the new file and try with this.
Ryan M
NinjaTrader Customer Service |
|
|
|
|
|
#7 |
|
Member
Join Date: Oct 2008
Posts: 68
Thanks: 0
Thanked 0 times in 0 posts
|
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. |
|
|
|
|
|
#8 |
|
Member
Join Date: Oct 2008
Posts: 68
Thanks: 0
Thanked 0 times in 0 posts
|
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.
|
|
|
|
| Thread Tools | |
| Display Modes | |
|
|
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 |