![]() |
|
|||||||
| Miscellaneous Support Miscellaneous support issues. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Senior Member
Join Date: Dec 2007
Location: Guernsey (UK)
Posts: 152
Thanks: 0
Thanked 1 time in 1 post
|
Hello,
I've got a problem when trying to import a compiled assembly on a different computer. Everything compiles ok on the computer where I wrote the scripts. Attached is the picture of the problem. Thanks |
|
|
|
|
|
#2 |
|
Certified NinjaScript Consultant
Join Date: Sep 2006
Location: New York, USA
Posts: 774
Thanks: 1
Thanked 7 times in 5 posts
|
Hey ryker,
This is basically saying that you have defined a method in the compiled assembly that is the same name as a function / method on the computer you're trying to import to. I would delete the existing TZ on the computer you're importing to (maybe back it up first), then try to import and see how it works.
"You look closely enough, you can find everything has a ... weak spot where it can break, sooner or later"
PureLogikTrading |
|
|
|
|
|
#3 |
|
Senior Member
Join Date: Dec 2007
Location: Guernsey (UK)
Posts: 152
Thanks: 0
Thanked 1 time in 1 post
|
Hi mrlogik,
Thanks for your quick answer. The computer where I try to import this assembly has a clean install so there's nothing on it. The enum TZ is in a namespace like UserDefinedMethods. When I tried to import it alone it works but when I try to add an indicator in the assembly, it doesn't work anymore and I got this error message. There is no definition of TZ in the indicator. So I have no idea why I've got this duplicate message error... |
|
|
|
|
|
#4 |
|
Certified NinjaScript Consultant
Join Date: Sep 2006
Location: New York, USA
Posts: 774
Thanks: 1
Thanked 7 times in 5 posts
|
Wait... Is it in UserDefinedMethods? If it is, I don't believe that function will export.
If you tried to import it alone, its now already in there, and something when you try to add an indicator is causing the problem; or at least that is how i'm understanding it. I would try to remove anything on the "to" computer, put the enum into the indicator itself, export that and see what happens. I know the enum is more of a global thing you want to use, but I would try it this way to understand what is going on....
"You look closely enough, you can find everything has a ... weak spot where it can break, sooner or later"
PureLogikTrading |
|
|
|
|
|
#5 |
|
Senior Member
Join Date: Dec 2007
Location: Guernsey (UK)
Posts: 152
Thanks: 0
Thanked 1 time in 1 post
|
Ok, it wasn't exactly in UserDefinedMethods but in my own namespace. So I moved it to one of my indicators that uses it and then found out that the property needs the full name to access it. Then moved it back to its old location and amended the property name with the full path to TZ. Tried export and import it and it works!
Thanks for your suggestions! |
|
|
|
|
|
#6 |
|
Certified NinjaScript Consultant
Join Date: Sep 2006
Location: New York, USA
Posts: 774
Thanks: 1
Thanked 7 times in 5 posts
|
Good job!
Sometimes the export / import can be a bit tricky
"You look closely enough, you can find everything has a ... weak spot where it can break, sooner or later"
PureLogikTrading |
|
|
|
|
|
#7 | |
|
Certified NinjaScript Consultant
|
Quote:
using YourNameSpaceName; |
|
|
|
|
|
|
#8 |
|
Senior Member
Join Date: Dec 2007
Location: Guernsey (UK)
Posts: 152
Thanks: 0
Thanked 1 time in 1 post
|
I have that line on top already but still needed to use the full library path somehow...
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Removing An Assembly | SystemTrading | Miscellaneous Support | 3 | 03-15-2009 11:36 AM |
| Removing NinjScript Assembly | grd974 | Miscellaneous Support | 1 | 11-26-2008 11:24 AM |
| remove assembly | ATI user | Historical NinjaTrader 6.5 Beta Threads | 2 | 02-12-2008 11:52 AM |
| Importing Assembly | CashCache | Strategy Development | 9 | 02-01-2008 09:37 AM |
| Remove Ninjascript Assembly | ATI user | Historical NinjaTrader 6.5 Beta Threads | 1 | 12-29-2007 08:34 AM |