MC.NET 8.5RC: REFERENCE NOT COMPATIBLE Framework 3.5  [SOLVED]

Questions about MultiCharts .NET and user contributed studies.
Emmanuel
Posts: 355
Joined: 21 May 2009
Has thanked: 109 times
Been thanked: 28 times

MC.NET 8.5RC: REFERENCE NOT COMPATIBLE Framework 3.5

Postby Emmanuel » 06 Mar 2013

MC.NET 8.5 RC : REFERENCE NOT COMPATIBLE Framework 3.5

Hi

I am using VS 2008, to be able to debug on breakpoint with VB.

As I installed the new MULTICHARTS .NET 8.5 RC,

As I rebuilded the solution with VS 2008, I got multiple errors because the "system can not find the reference specified"

We can read , two missing reference :

C:\Program Files\TS Support\MultiCharts .NET64\PLBuiltInFunctions.dll
C:\Program Files\TS Support\MultiCharts .NET64\PLStudiesProxy.dll

(I can read this message when I look at the property of the project, (See attached file Capture.jpg)

I have the same error with VS 2010 :

If I rebuilt with NET Framework 4.0, I have no error, and all the reference are found,

If I rebuilt with VS 2010 and NET Framework 3.5, I get the same message with multiple error
.

It seem that those two reference are not compatible with Framework 3.5
C:\Program Files\TS Support\MultiCharts .NET64\PLBuiltInFunctions.dll
C:\Program Files\TS Support\MultiCharts .NET64\PLStudiesProxy.dll


I try to add the reference manually, but I still have this message in the list of reference :
"the system can not find the reference specified"

Is it possible to have them compatible with NET Framework 3.5 to be able to debug VB with VS 2008 ?

How could I add those two missing reference ?
C:\Program Files\TS Support\MultiCharts .NET64\PLBuiltInFunctions.dll
C:\Program Files\TS Support\MultiCharts .NET64\PLStudiesProxy.dll

Emmanuel
Attachments
Capture.JPG
(149.8 KiB) Downloaded 2005 times

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

Re: MC.NET 8.5RC: REFERENCE NOT COMPATIBLE Framework 3.5

Postby Henry MultiСharts » 07 Mar 2013

Hello Emmanuel,

MultiCharts .Net 8.5 Release Candidate uses .Net Framework 4.0 (as our users have requested).
The solution should be compiled using .Net 4.0 now. VS2008 does not support .Net Framework 4.0.

Here is what we can recommend you to do while MS is checking our bug report (Unable to evaluate the expression):
For example you have a class MyIndicator. It inherits from Indicator object at the moment.
You can create your own assembly(dll) where you will implement all your logic.
In the dll class MyIndicImp should inherit from Indicator object.
In the PL .Net study you need to add reference to this dll and make class MyIndicator inherit from dll class MyIndicImp. In this case you should be able to debug your VB codes in VS 2010/12.

Emmanuel
Posts: 355
Joined: 21 May 2009
Has thanked: 109 times
Been thanked: 28 times

Re: MC.NET 8.5RC: REFERENCE NOT COMPATIBLE Framework 3.5

Postby Emmanuel » 07 Mar 2013

Hi Henry !

This is excellent !!!!!!!!!!!!!!!!!!!!!!

You always find the solution !!!!!

It works !!!!!!!!!


This is really strange to be able to watch variable in the DLL , but not in the indicator MC.
I don't see why not, this is clearly a bug of VS 2010 / 2012

1/ With this dll I can watch any variable anywhere in the code !!!!!
2/ I can share variable from one indicator to another indicator !!!!! Which mean that the indicator can communicate, easly.
3/ I can put a part of my code in the DLL

This is really fantastic !!! VS 2008 is clearly obsolete, Now we can really work with VS 2010 without restriction.

:) :) :) THANK YOU VERY MUCH !!!!!! :) :) :)

Thank very much to all TSSupport Team / Multicharts Team !!!!!

:) :) :) Have GREAT Day :) :) :)

Emmanuel

Emmanuel
Posts: 355
Joined: 21 May 2009
Has thanked: 109 times
Been thanked: 28 times

Re: MC.NET 8.5RC: REFERENCE NOT COMPATIBLE Framework 3.5

Postby Emmanuel » 08 Mar 2013

Hi

As I added this DLL as reference in the PowerLanguage editor,

Then I exported the studies to save them, I get the following error message :

It seem the try to export the DLL as well ? but I get this warning message attached : (assembly file not found)

After importing on a second computer, the indicator has been exported correctly , and the reference as been added on the second installation.

But the DLL has not been exported, this is good to know.

So, all works fine, we just have to move the dll seperatly which is more than ok with me.

Emmanuel
Attachments
Capture1.JPG
(26.62 KiB) Downloaded 2129 times

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

Re: MC.NET 8.5RC: REFERENCE NOT COMPATIBLE Framework 3.5

Postby Henry MultiСharts » 10 May 2013

Here is Microsoft reply for our bug report:
We took a closer look and found that our understanding of the problem was wrong. We hadn't noticed that your repro project actually produces and consumed a VB-authored netmodule. Upon investigation, we found that we had indeed broken debugging for VB netmodules in Visual Studio 2010, but they are so rare that this bug hadn't been reported (or we hadn't recognized the report for what it was).

We have now *fixed* this issue for the next major release of Visual Studio. I sincerely apologize for the inconvenience this has caused you.
I have also asked for a hotfix or estimated release time:
I can't share ship dates, but we are far enough along in the next product cycle that it is unlikely that we'll be able to produce a hot fix for this problem.

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

Re: MC.NET 8.5RC: REFERENCE NOT COMPATIBLE Framework 3.5  [SOLVED]

Postby Henry MultiСharts » 01 Jun 2015

We have verified that this bug is now fixed in Visual Studio 2013.

Emmanuel
Posts: 355
Joined: 21 May 2009
Has thanked: 109 times
Been thanked: 28 times

Re: MC.NET 8.5RC: REFERENCE NOT COMPATIBLE Framework 3.5

Postby Emmanuel » 01 Jun 2015

Thank you Henry and to all Multicharts team !!!!

Emmanuel


Return to “MultiCharts .NET”