Page 1 of 1

Starting a VPR using VMSClient.Start

Posted: 17 Dec 2019, 01:45
by Etienne
Is it possible to start a VPR using the VMSClient Start method? I tried doing this using the Remoting4 Demo project and I get a Requested Project not found exception.

I also tried using the Proj method to have the VMS Client examine a project file at a known location on the target system but that gives me another exception: Specified argument was out of the range of valid values. Parameter name: root.

Re: Starting a VPR using VMSClient.Start

Posted: 17 Dec 2019, 08:48
by lerou
Yes, you can start a VPR via VMSClient.Start. The project name has to match. It's NOT the VPR's file name - usually it's the filename without the extension, but that's also not always the case!

Use VMSclient.Proj(null) to list your projects and have a look at them. There you'll find both the file (VPR or VZP) and the project name. It should contain all projects found by the VMS Discovery. Look up your VPR there and and then use the ID to start the project.

Re: Starting a VPR using VMSClient.Start

Posted: 17 Dec 2019, 09:02
by lerou
lerou wrote:
17 Dec 2019, 08:48
It should contain all projects found by the VMS Discovery.
I meant Project scan. Discovery finds VMS services in the network.

Re: Starting a VPR using VMSClient.Start

Posted: 17 Dec 2019, 18:00
by Etienne
Thanks, using the project ID works.

The documentation leads you to believe you can specify the file name (The project can be specified by either its fullpath on the remote filesystem).

In an effort to minimize the configuration required on a production machine, I will try modifying the VNSConfig.ProjectPaths to add the folder to my VPR and see how that goes.