C# plugins stopped working in latest Vegas Pro 20 build

marcinzm wrote on 3/25/2023, 9:24 AM

Hello,

 

After yesterday update Vegas to the latest build I am not able to run my own C# Vegas plugins.

Most of them are not launch. Everytime I get the following error on almost every C# Vegas plugin:

 

System.ApplicationException: Suitable entry point method, 'FromVegas', not found.
   at ScriptPortal.Vegas.ScriptHost.ScriptManager.Run(Assembly asm, String className, String methodName)
   at ScriptPortal.Vegas.ScriptHost.RunScript(Boolean fCompileOnly)

 

I have i.e. such code which is fired during launch:

 

namespace VegasJumpingCutScript
{
    public partial class Form1 : Form
    {
        public Vegas myVegas;

        public Form1(Vegas vegas)
        {
            myVegas = vegas;
            InitializeComponent();

//            my code here
        }
}

    public class EntryPoint
    {
        private static VegasJumpingCutScript.Form1 form;

        public void FromVegas(Vegas vegas)
        {
            form = new VegasJumpingCutScript.Form1(vegas);
            form.ShowDialog();
        }
    }

I can add that "ScriptPortal.Vegas.dll" is places where my VegasJumpingCutScript.dll is located.

What is wrong with it?
Is it a bug in Vegas Pro 20 latest build?

What am I doing wrong?


Regards

Marcin

If you are bored, drink water, you will want to pee. -> Albert Einstein - my idol!

I am 42. I have been creating videos since 2009 (the date when my first daughter was born in). My first video software was Pinnacle, next one was Sony Vegas 8 (I am not sure if remember it correctly). I am also a developer and wedding movie operator and editor. For example: I have created an Android app which let me control Vegas Pro rendering progress level on Android smartphone. I created it for fun, because I also love programming. I also created my own plugin for Audio To Text feature specified usage from Vegas Pro 19. I created proxy creation plugin which uses multiple GPU threads (maximum 3) to create proxy files for Vegas Pro. I also written many others plugin/softwares which enhance my video editing, also wedding editing.

Camera/video camera: Sony FX3, Sony A7 III, Sony FDR AX 100, Canon 5D Mark III, GoPro Hero Black 7,8,9,10

Lenses for Sony: Tamron 28-75mm F/2.8 Di III , Sony 24mm gm 1.4 FE, Sony 20 mm G FE 1.8

Lenses for Canon: Canon EF 24-70 mm F/2.8 L USM, Canon 70-200 f/2.8 L

Drone: DJI Mavic 3 & DJI Phantom 4 Pro v2.0

 

Editing: Vegas Pro 20 (365) with a lot of third party plugins, also my own plugins written in C#

 

PC:

CPU: Intel(R) Core(TM) i9-7900X CPU @ 3.30GHz   3.31 GHz

RAM: 128 GB

GPU: Nvidia RTX 2080 TI

storage: 4 SSD drives (including two M.2 flash drives) and two HDD drives

Windows system: 10 Home edition

Comments

marcinzm wrote on 3/25/2023, 10:01 AM

I got the solution for it.

 

My own C# plugins are located here:

c:\Program Files\VEGAS\VEGAS Pro 20.0\Script Menu\MZ_Vegas_C#\

Here I had:

ScriptPortal.Vegas.dll
VegasJumpingCutScript.dll

I copied the following files:


 

ScriptPortal.Capture.dll
ScriptPortal.MediaSoftware.Archive.dll
ScriptPortal.MediaSoftware.clrshared.dll
ScriptPortal.MediaSoftware.DeviceExp.dll
ScriptPortal.MediaSoftware.ExternalVideoDevice.dll
ScriptPortal.MediaSoftware.FileExplorer.dll
ScriptPortal.MediaSoftware.SfBdMuxCom.dll
ScriptPortal.MediaSoftware.Skins.dll
ScriptPortal.MediaSoftware.TextGen.CoreGraphics.dll
ScriptPortal.MediaSoftware.TextGen.CoreGraphics.XmlSerializers.dll
ScriptPortal.MediaSoftware.TextGen.OFXInterop.dll
ScriptPortal.MediaSoftware.VideoEffectsUI.dll
ScriptPortal.MediaSoftware.XDCAMExp.dll
ScriptPortal.Monitor3D.dll
ScriptPortal.Vegas.dll
ScriptPortal.Vegas.MobileSync.dll
ScriptPortal.Vegas.RelinkSonyWirelessAdapterMedia.dll
ScriptPortal.Vegas.Slideshow.dll
ScriptPortal.Vegas.Slideshow.xml

from the path:

c:\Program Files\VEGAS\VEGAS Pro 20.0\

to the path:

c:\Program Files\VEGAS\VEGAS Pro 20.0\Script Menu\MZ_Vegas_C#\

 

and I also overwrited the file: ScriptPortal.Vegas.dll, because I noticed that

c:\Program Files\VEGAS\VEGAS Pro 20.0\ 

is different than the file from

c:\Program Files\VEGAS\VEGAS Pro 20.0\Script Menu\MZ_Vegas_C#\

 

I hope that it helps somebody who has the same problems.

If you are bored, drink water, you will want to pee. -> Albert Einstein - my idol!

I am 42. I have been creating videos since 2009 (the date when my first daughter was born in). My first video software was Pinnacle, next one was Sony Vegas 8 (I am not sure if remember it correctly). I am also a developer and wedding movie operator and editor. For example: I have created an Android app which let me control Vegas Pro rendering progress level on Android smartphone. I created it for fun, because I also love programming. I also created my own plugin for Audio To Text feature specified usage from Vegas Pro 19. I created proxy creation plugin which uses multiple GPU threads (maximum 3) to create proxy files for Vegas Pro. I also written many others plugin/softwares which enhance my video editing, also wedding editing.

Camera/video camera: Sony FX3, Sony A7 III, Sony FDR AX 100, Canon 5D Mark III, GoPro Hero Black 7,8,9,10

Lenses for Sony: Tamron 28-75mm F/2.8 Di III , Sony 24mm gm 1.4 FE, Sony 20 mm G FE 1.8

Lenses for Canon: Canon EF 24-70 mm F/2.8 L USM, Canon 70-200 f/2.8 L

Drone: DJI Mavic 3 & DJI Phantom 4 Pro v2.0

 

Editing: Vegas Pro 20 (365) with a lot of third party plugins, also my own plugins written in C#

 

PC:

CPU: Intel(R) Core(TM) i9-7900X CPU @ 3.30GHz   3.31 GHz

RAM: 128 GB

GPU: Nvidia RTX 2080 TI

storage: 4 SSD drives (including two M.2 flash drives) and two HDD drives

Windows system: 10 Home edition

jetdv wrote on 3/25/2023, 10:21 AM

I didn't see any "Using" statements in your script. You do NOT need to copy those other files to the script menu folder.

All scripts and custom commands are working just fine in all versions of VEGAS here without copying any of those files.

marcinzm wrote on 3/25/2023, 10:26 AM

I already had Using statements at the begining of my plugins:

 

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using ScriptPortal.Vegas;

I do also had them for a very long time, but after latest Vegas Pro build some of the plugins stopped me working.

I noticed that copied all the files I mentioned in previous solved the issue.

I didn`t have any problems with my plugins before latest Vegas Pro update.

That's why I was very shocked.

Last changed by marcinzm on 3/25/2023, 10:27 AM, changed a total of 2 times.

If you are bored, drink water, you will want to pee. -> Albert Einstein - my idol!

I am 42. I have been creating videos since 2009 (the date when my first daughter was born in). My first video software was Pinnacle, next one was Sony Vegas 8 (I am not sure if remember it correctly). I am also a developer and wedding movie operator and editor. For example: I have created an Android app which let me control Vegas Pro rendering progress level on Android smartphone. I created it for fun, because I also love programming. I also created my own plugin for Audio To Text feature specified usage from Vegas Pro 19. I created proxy creation plugin which uses multiple GPU threads (maximum 3) to create proxy files for Vegas Pro. I also written many others plugin/softwares which enhance my video editing, also wedding editing.

Camera/video camera: Sony FX3, Sony A7 III, Sony FDR AX 100, Canon 5D Mark III, GoPro Hero Black 7,8,9,10

Lenses for Sony: Tamron 28-75mm F/2.8 Di III , Sony 24mm gm 1.4 FE, Sony 20 mm G FE 1.8

Lenses for Canon: Canon EF 24-70 mm F/2.8 L USM, Canon 70-200 f/2.8 L

Drone: DJI Mavic 3 & DJI Phantom 4 Pro v2.0

 

Editing: Vegas Pro 20 (365) with a lot of third party plugins, also my own plugins written in C#

 

PC:

CPU: Intel(R) Core(TM) i9-7900X CPU @ 3.30GHz   3.31 GHz

RAM: 128 GB

GPU: Nvidia RTX 2080 TI

storage: 4 SSD drives (including two M.2 flash drives) and two HDD drives

Windows system: 10 Home edition

marcinzm wrote on 3/25/2023, 10:38 AM

@jetdv

 

Jetdv, If I had not had "using ScriptingPortal.Vegas" statement before, my all Vegas code would not even compiled and my dll would not even been created. That's why it was weird why it throws the error I mentioned in first post.

Last changed by marcinzm on 3/25/2023, 11:01 AM, changed a total of 2 times.

If you are bored, drink water, you will want to pee. -> Albert Einstein - my idol!

I am 42. I have been creating videos since 2009 (the date when my first daughter was born in). My first video software was Pinnacle, next one was Sony Vegas 8 (I am not sure if remember it correctly). I am also a developer and wedding movie operator and editor. For example: I have created an Android app which let me control Vegas Pro rendering progress level on Android smartphone. I created it for fun, because I also love programming. I also created my own plugin for Audio To Text feature specified usage from Vegas Pro 19. I created proxy creation plugin which uses multiple GPU threads (maximum 3) to create proxy files for Vegas Pro. I also written many others plugin/softwares which enhance my video editing, also wedding editing.

Camera/video camera: Sony FX3, Sony A7 III, Sony FDR AX 100, Canon 5D Mark III, GoPro Hero Black 7,8,9,10

Lenses for Sony: Tamron 28-75mm F/2.8 Di III , Sony 24mm gm 1.4 FE, Sony 20 mm G FE 1.8

Lenses for Canon: Canon EF 24-70 mm F/2.8 L USM, Canon 70-200 f/2.8 L

Drone: DJI Mavic 3 & DJI Phantom 4 Pro v2.0

 

Editing: Vegas Pro 20 (365) with a lot of third party plugins, also my own plugins written in C#

 

PC:

CPU: Intel(R) Core(TM) i9-7900X CPU @ 3.30GHz   3.31 GHz

RAM: 128 GB

GPU: Nvidia RTX 2080 TI

storage: 4 SSD drives (including two M.2 flash drives) and two HDD drives

Windows system: 10 Home edition

jetdv wrote on 3/25/2023, 12:32 PM

I've had every build of VEGAS Pro 20 and this has not been an issue.

marcinzm wrote on 3/25/2023, 3:23 PM

@jetdv

 

I also had every build of Vegas Pro 20, and this has not been an issue so far, till today.

I didn`t think up the error issue:

 

System.ApplicationException: Suitable entry point method, 'FromVegas', not found.
   at ScriptPortal.Vegas.ScriptHost.ScriptManager.Run(Assembly asm, String className, String methodName)
   at ScriptPortal.Vegas.ScriptHost.RunScript(Boolean fCompileOnly)

Maybe it was some Windows 10 issue, I don`t know, but copying files helped it.

If you are bored, drink water, you will want to pee. -> Albert Einstein - my idol!

I am 42. I have been creating videos since 2009 (the date when my first daughter was born in). My first video software was Pinnacle, next one was Sony Vegas 8 (I am not sure if remember it correctly). I am also a developer and wedding movie operator and editor. For example: I have created an Android app which let me control Vegas Pro rendering progress level on Android smartphone. I created it for fun, because I also love programming. I also created my own plugin for Audio To Text feature specified usage from Vegas Pro 19. I created proxy creation plugin which uses multiple GPU threads (maximum 3) to create proxy files for Vegas Pro. I also written many others plugin/softwares which enhance my video editing, also wedding editing.

Camera/video camera: Sony FX3, Sony A7 III, Sony FDR AX 100, Canon 5D Mark III, GoPro Hero Black 7,8,9,10

Lenses for Sony: Tamron 28-75mm F/2.8 Di III , Sony 24mm gm 1.4 FE, Sony 20 mm G FE 1.8

Lenses for Canon: Canon EF 24-70 mm F/2.8 L USM, Canon 70-200 f/2.8 L

Drone: DJI Mavic 3 & DJI Phantom 4 Pro v2.0

 

Editing: Vegas Pro 20 (365) with a lot of third party plugins, also my own plugins written in C#

 

PC:

CPU: Intel(R) Core(TM) i9-7900X CPU @ 3.30GHz   3.31 GHz

RAM: 128 GB

GPU: Nvidia RTX 2080 TI

storage: 4 SSD drives (including two M.2 flash drives) and two HDD drives

Windows system: 10 Home edition

jetdv wrote on 3/25/2023, 4:32 PM

I'd try removing the files you copied, uninstall VEGAS, and then reinstall VEGAS. There's definitely something odd with your VEGAS installation at this point.

RedRob-CandlelightProdctns wrote on 5/31/2023, 2:41 AM

I'd try removing the files you copied, uninstall VEGAS, and then reinstall VEGAS. There's definitely something odd with your VEGAS installation at this point.

I'm having similar issue -- trying to run a script I wrote that was doing well pre V20 and now I'm getting that error.. don't use these often enough to know root cause yet -- just trying to get it running..

Vegas 21.300

My PC (for finishing):

Cyperpower PC Intel Core i7-7700K CPU @ 4.2GHz, 64GB mem @ 2133MHz RAM, AMD Radeon RX470 (4GB dedicated) with driver recommended by Vegas Updater (reports as 30.0.15021.11005 dated 4/28/22), and Intel HD Graphics 630 driver version 31.0.101.2112 dated 7/21/22 w/16GB shared memory. Windows 10 Pro 64bit version 10.0.19045 Build 19045.

My main editing laptop:

Dell G15 Special Edition 5521, Bios 1.12 9/13/22, Windows 11 22H2 (10.0.22621)

12th Gen Intel Core i7-12700H (14 cores, 20 logical processors), 32 GB DDR5 4800MHz RAM, Intel Iris Xe Graphics, NVIDIA GeForce RTX 3070 Ti Laptop GPU w/8GB GDDR6 RAM, Realtek Audio

 

 

RedRob-CandlelightProdctns wrote on 5/31/2023, 3:05 AM

I know I've been down similar road before but this is a bit different... can't get this script to run either in debug mode from VS, or starting within Vegas.

When in VS if I choose "Debug->Start Debugging", I get this:

 

If I build the solution and try running it from Vegas (Tools.Vegas.Run Script), pointing to the .dll that was generated (in the source.repos.myprojectnameproject.myprojectnameproject.bin.Release) I get the "Suitable entry point method, 'FromVegas', not found. (message missing):

And I definitely have a 'FromVegas' method defined... this was working last time I'd tried it... (several months ago or more)

 

There must be an easy way to get over this hump... I'd happily run it in Debug mode (preferred) or direct started within Vegas.. just need to get it running. Debug Mode is a bonus since I've just added new functionality I'd love to debug if it doesn't work right the first time (ha!).

 

PS @jetdv Thank you for your short little videos.. they've helped get me in the right direction more than once!

UPDATE: From inside VS I got it to launch in debug mode but it was trying to load Vegas 18... when I changed it to Vegas 20's EXE (properties, debug, Start external program), the output window returns pretty quickly saying "The program '[36348] vegas200.exe' has exited with code 0 (0x0), but it never actually appears to launch. Changed it back to the Vegas 18 executable, but when I run the script I'm getting the same "FromVegas" not found error.

System.ApplicationException: Suitable entry point method, 'FromVegas', not found.
   at ScriptPortal.Vegas.ScriptHost.ScriptManager.Run(Assembly asm, String className, String methodName)
   at ScriptPortal.Vegas.ScriptHost.RunScript(Boolean fCompileOnly)
 

Last changed by RedRob-CandlelightProdctns on 5/31/2023, 4:03 AM, changed a total of 3 times.

Vegas 21.300

My PC (for finishing):

Cyperpower PC Intel Core i7-7700K CPU @ 4.2GHz, 64GB mem @ 2133MHz RAM, AMD Radeon RX470 (4GB dedicated) with driver recommended by Vegas Updater (reports as 30.0.15021.11005 dated 4/28/22), and Intel HD Graphics 630 driver version 31.0.101.2112 dated 7/21/22 w/16GB shared memory. Windows 10 Pro 64bit version 10.0.19045 Build 19045.

My main editing laptop:

Dell G15 Special Edition 5521, Bios 1.12 9/13/22, Windows 11 22H2 (10.0.22621)

12th Gen Intel Core i7-12700H (14 cores, 20 logical processors), 32 GB DDR5 4800MHz RAM, Intel Iris Xe Graphics, NVIDIA GeForce RTX 3070 Ti Laptop GPU w/8GB GDDR6 RAM, Realtek Audio

 

 

RedRob-CandlelightProdctns wrote on 5/31/2023, 4:17 AM

Welp... I put back the Vegas 18 scriptportal.vegas.dll, and set the project to launch Vegas 18 and now I'm at least able to get my code debugging... just nada when trying to use Vegas 20 and its version of the dll :(

Vegas 21.300

My PC (for finishing):

Cyperpower PC Intel Core i7-7700K CPU @ 4.2GHz, 64GB mem @ 2133MHz RAM, AMD Radeon RX470 (4GB dedicated) with driver recommended by Vegas Updater (reports as 30.0.15021.11005 dated 4/28/22), and Intel HD Graphics 630 driver version 31.0.101.2112 dated 7/21/22 w/16GB shared memory. Windows 10 Pro 64bit version 10.0.19045 Build 19045.

My main editing laptop:

Dell G15 Special Edition 5521, Bios 1.12 9/13/22, Windows 11 22H2 (10.0.22621)

12th Gen Intel Core i7-12700H (14 cores, 20 logical processors), 32 GB DDR5 4800MHz RAM, Intel Iris Xe Graphics, NVIDIA GeForce RTX 3070 Ti Laptop GPU w/8GB GDDR6 RAM, Realtek Audio

 

 

jetdv wrote on 5/31/2023, 8:31 AM

@RedRob-CandlelightProdctns First of all, the scriptportal dll file does not need to be copied into the same folder as your compiled DLL file. Also, it should not be added to your project as shown in the third image. It SHOULD chosen be in "references" but does not need to be directly added to the project.

I can say I have not seen this issue with either text scripts or compiled scripts. I would need to see the full project in order to do any testing.

Will the script work if you run it as plain text instead of compiled?

Start with something simple and verify things are working. Save this as "test.cs" and see if it runs properly:

using System;
using System.Collections.Generic;
using System.Collections;
using System.IO;
using System.Text;
using System.Windows.Forms;
using System.Globalization;
using System.Drawing;
using System.Runtime;
using System.Xml;
using ScriptPortal.Vegas;

namespace Test_Script
{
    public class Class1
    {
        public Vegas myVegas;

        public void Main(Vegas vegas)
        {
            myVegas = vegas;

            MessageBox.Show("This Script Started Fine");
        }

    }
}

public class EntryPoint
{
    public void FromVegas(Vegas vegas)
    {
        Test_Script.Class1 test = new Test_Script.Class1();
        test.Main(vegas);
    }
}

@marcinzm By the way, in the first post in this thread, I just noticed a "}" is missing in the top section. Please note that "EntryPoint" is OUTSIDE the "Namespace" section:
 

namespace VegasJumpingCutScript
{
    public partial class Form1 : Form
    {
        public Vegas myVegas;

        public Form1(Vegas vegas)
        {
            myVegas = vegas;
            InitializeComponent();

//            my code here
        }
    } <--- This one is missing!

}

public class EntryPoint
{
    private static VegasJumpingCutScript.Form1 form;

    public void FromVegas(Vegas vegas)
    {
        form = new VegasJumpingCutScript.Form1(vegas);
        form.ShowDialog();
    }
}