VP11 Script Loading Problem

hipgnosis wrote on 11/10/2011, 11:12 AM
I've just started work on migrating my script from Vegas 9/10 to Vegas 11.

The script is written in C# in Visual Studio 10.

The problem I'm having is that after changing to the latest Sony.Vegas.dll and rebuilding the assembly that I get the following error :


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


For debugging purposes I created a new simple project, but that exhibits the same error :


//entrypoint.cs
using System;
using System.Collections.Generic;
using System.Text;
using Sony.Vegas;

public class EntryPoint
{
public void FromVegas(Vegas vegas)
{
System.Diagnostics.Debug.WriteLine(vegas.Version);
}
}


I'm unsure where the problem is unless the method signature for FromVegas has changed.

Any ideas?

Comments

hipgnosis wrote on 11/10/2011, 2:14 PM
Ok, simple solution : Import the Sony.Vegas.dll from the installation directory of VP11.

Unlike 9 and 10 it requires your script to have a large number of linked assemblies in their directory.

Hope this helps out someone else who might have run across this issue.