MC 8.5 does not work with external assemblies  [SOLVED]

Questions about MultiCharts .NET and user contributed studies.
davewolfs
Posts: 89
Joined: 06 Feb 2013
Has thanked: 2 times
Been thanked: 11 times

MC 8.5 does not work with external assemblies

Postby davewolfs » 22 Mar 2013

Looks like a bug.

Steps to reproduce.

1. Create an indicator that references an external assembly.
2. Compile the indicator.
3. Take note of folders in directory: C:\ProgramData\TS Support\MultiCharts .NET64\StudyServer\Techniques\CompAssms
4. Above directory has required files
5. Go into chart, insert new indicator
6. Stop application. Notice that folders in C:\ProgramData\TS Support\MultiCharts .NET64\StudyServer\Techniques\CompAssms are deleted.
7. Start application and open chart. Can't load indicator. Sometimes the required files get recompiled sometimes they dont.

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2957 times

Re: MC 8.5 does not work with external assemblies

Postby Henry MultiСharts » 25 Mar 2013

Hello davewolfs,

Do you add a reference through Visual Studio or PowerLanguage .Net editor?

davewolfs
Posts: 89
Joined: 06 Feb 2013
Has thanked: 2 times
Been thanked: 11 times

Re: MC 8.5 does not work with external assemblies

Postby davewolfs » 25 Mar 2013

Hello davewolfs,

Do you add a reference through Visual Studio or PowerLanguage .Net editor?
PowerLanguage Editor.

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2957 times

Re: MC 8.5 does not work with external assemblies  [SOLVED]

Postby Henry MultiСharts » 27 Mar 2013

Oddly, I am having difficulties reproducing myself. I wonder if the application put itself in some sort of weird state at the time.
davewolfs, please let us know if this behavior will reappear.

rjelles
Posts: 36
Joined: 04 Feb 2010
Location: Calgary, AB Canada
Has thanked: 7 times
Been thanked: 19 times
Contact:

Re: MC 8.5 does not work with external assemblies

Postby rjelles » 04 Apr 2013

I have also seen this problem - in VS2010 I add a reference in my indicator to System.ServiceModel, and my indicator that uses WCF compiles correctly. However in PowerEditor, the "using System.ServiceModel" generates an error. PowerEditor appears to not allow the additional references.

thanks,

Jeff

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2957 times

Re: MC 8.5 does not work with external assemblies

Postby Henry MultiСharts » 04 Apr 2013

in VS2010 I add a reference in my indicator to System.ServiceModel, and my indicator that uses WCF compiles correctly. However in PowerEditor, the "using System.ServiceModel" generates an error. PowerEditor appears to not allow the additional references.
From MC .NET FAQ:
+ All references should be added through MultiCharts .Net Editor only. The references you have added are global and available for all studies. There is only one direction of synchronization: from МultiСharts .Net editor to PlStudies* project. The changes done in VS for PlStudies* project would not be saved and would not show up in MC.Net editor.

rjelles
Posts: 36
Joined: 04 Feb 2010
Location: Calgary, AB Canada
Has thanked: 7 times
Been thanked: 19 times
Contact:

Re: MC 8.5 does not work with external assemblies

Postby rjelles » 04 Apr 2013

Thanks Henry - found it - right clicking in the indicator code itself.
Last edited by rjelles on 04 Apr 2013, edited 1 time in total.

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2957 times

Re: MC 8.5 does not work with external assemblies

Postby Henry MultiСharts » 04 Apr 2013

rjelles, the reply to this question was in my post above:
The references you have added are global and available for all studies.


Return to “MultiCharts .NET”