Newbie - VS throwing errors

Questions about MultiCharts .NET and user contributed studies.
Talky_Zebra
Posts: 45
Joined: 07 Mar 2024
Has thanked: 13 times
Been thanked: 1 time

Newbie - VS throwing errors

Postby Talky_Zebra » 08 Mar 2024

Hi all. New MC.NET user with another (probably) stupid question. Since I already had Visual Studio up and running on my PC, it was no problem getting the MC IDE to open Visual Studio. But: saving even simple changes is broken on my environment. See the attachments using a standard "new indicator" as a test.

I can navigate to the indicator just fine in VS and it opens. Great.
BeforeEdit.JPG
(183.53 KiB) Not downloaded yet
I make an edit and save it - the file in the IDE goes blank!
AfterEdit.JPG
(134.34 KiB) Not downloaded yet
I get the following error in VS:

Code: Select all

Failed to save 'test3.Indicator.CS': Unable to write file 'c:\ProgramData\TS Support\MultiCharts .NET64\StudyServer\Techniques\CS\test3.Indicator.CS' (Unknown (FileSystemError): Error: EBUSY: resource busy or locked, open 'c:\ProgramData\TS Support\MultiCharts .NET64\StudyServer\Techniques\CS\test3.Indicator.CS')
AfterEditError.JPG
(25.39 KiB) Not downloaded yet

How do I fix this, what is the troubleshooting?

Talky_Zebra
Posts: 45
Joined: 07 Mar 2024
Has thanked: 13 times
Been thanked: 1 time

Re: Newbie - VS throwing errors

Postby Talky_Zebra » 08 Mar 2024

Ok, just realized something: the PLE IDE is automatically opening VS Code instead of my Visual Studio Community edition.

How to I redirect the IDE to open the right VS application?

User avatar
Kate MultiCharts
Posts: 597
Joined: 21 Oct 2020
Has thanked: 9 times
Been thanked: 148 times

Re: Newbie - VS throwing errors

Postby Kate MultiCharts » 12 Mar 2024

Hello,

For correct operation VS should be launched from the PowerLanguage .NET Editor using the Launch VS button.

And for Visual Studio to be launched by default instead of VS Code, right-click any .sln file → Open with → Choose another app → select Visual Studio and check the 'Always use this app to open .sln files' box.

Talky_Zebra
Posts: 45
Joined: 07 Mar 2024
Has thanked: 13 times
Been thanked: 1 time

Re: Newbie - VS throwing errors

Postby Talky_Zebra » 12 Mar 2024

Thanks Kate, when I do that, I get a dialog notifying me that I will need the .net 4.0 framework. On Microsofts site, there is no 4.0 framework, so which should I download?

Version Developer Pack Runtime Release notes End of support
.NET Framework 4.8.1 Developer Pack Runtime Release notes
.NET Framework 4.8 Developer Pack Runtime Release notes
.NET Framework 4.7.2 Developer Pack Runtime Release notes
.NET Framework 4.7.1 Developer Pack Runtime Release notes
.NET Framework 4.7 Developer Pack Runtime Release notes
.NET Framework 4.6.2 Developer Pack Runtime Release notes
.NET Framework 3.5 SP1 Runtime Release notes January 9, 2029

Talky_Zebra
Posts: 45
Joined: 07 Mar 2024
Has thanked: 13 times
Been thanked: 1 time

Re: Newbie - VS throwing errors

Postby Talky_Zebra » 12 Mar 2024

After doing some research the best option seems to be downgrading to Visual Studio 2019 so there is support for .NET 4.0. Now it seems to work.

The framework is very old. When will MultiCharts be upgrading the .NET framework?

User avatar
Kate MultiCharts
Posts: 597
Joined: 21 Oct 2020
Has thanked: 9 times
Been thanked: 148 times

Re: Newbie - VS throwing errors

Postby Kate MultiCharts » 13 Mar 2024

There's no ETA yet, but it's on our roadmap.

HellGhostEvocatorX
Posts: 80
Joined: 10 Feb 2022
Has thanked: 52 times
Been thanked: 11 times

Re: Newbie - VS throwing errors

Postby HellGhostEvocatorX » 17 Mar 2024

you don't need a Visual studio downgrade. I also use Visual Studio 2022. When I open it, a warning message should appear: select update the target framework to .net Framework 4.8 (recommended). If necessary, download the latest framework beforehand using the Visualstudio installer. In any case, I haven't had any problems so far

Talky_Zebra
Posts: 45
Joined: 07 Mar 2024
Has thanked: 13 times
Been thanked: 1 time

Re: Newbie - VS throwing errors

Postby Talky_Zebra » 21 Mar 2024

you don't need a Visual studio downgrade. I also use Visual Studio 2022. When I open it, a warning message should appear: select update the target framework to .net Framework 4.8 (recommended). If necessary, download the latest framework beforehand using the Visualstudio installer. In any case, I haven't had any problems so far
4.8? So 4.8 works for you.... it gave me headaches to no end. Framework 4.0 is the latest for MultiCharts, no?

HellGhostEvocatorX
Posts: 80
Joined: 10 Feb 2022
Has thanked: 52 times
Been thanked: 11 times

Re: Newbie - VS throwing errors

Postby HellGhostEvocatorX » 21 Mar 2024

yes multicharts.net should be based on the 4.0 Netframework. In principle, an update shouldn't be too much of a problem for the Multicharts.net developers, as you can simply specify a different target framework. However, you also want to be able to guarantee that the software runs smoothly and with the regular updates, it may not be easy to carry out all the necessary tests for each new update

https://chat.openai.com/share/33c6f015- ... 01a0ffd5e9

HellGhostEvocatorX
Posts: 80
Joined: 10 Feb 2022
Has thanked: 52 times
Been thanked: 11 times

Re: Newbie - VS throwing errors

Postby HellGhostEvocatorX » 21 Mar 2024

PL net4.8.png
(127.81 KiB) Not downloaded yet


Return to “MultiCharts .NET”