1. Tanya Weaver
  2. PowerBuilder
  3. Tuesday, 1 November 2022 14:40 PM UTC

We have a service which was built in PB 2017.  We have upgraded the service and deployed it to a new Windows Server VM.

When we try start the service, we get this error

I then checked in Event Viewer and the error is "Powerbuilder VM not found".

Any idea how we can get this error sorted?  The PowerBuilder 2021 run-time was installed on the server.

 

 

 

 

 

Accepted Answer
Miguel Leeuwe Accepted Answer Pending Moderation
  1. Thursday, 3 November 2022 10:29 AM UTC
  2. PowerBuilder
  3. # Permalink

Hi, 

To answer your question on how to add a folder to the system path: https://windowsloop.com/how-to-add-to-windows-path/ 

Regards.

Comment
  1. Tanya Weaver
  2. Thursday, 3 November 2022 11:47 AM UTC
Thank you, Miguel. I followed the steps in the link you provided and our service is now up and running.
  1. Helpful
  1. Miguel Leeuwe
  2. Thursday, 3 November 2022 14:51 PM UTC
Glad to hear that!
  1. Helpful
There are no comments made yet.
Tanya Weaver Accepted Answer Pending Moderation
  1. Wednesday, 2 November 2022 10:05 AM UTC
  2. PowerBuilder
  3. # 1

Thanks Armeen.

I did go through the documents previously, but not sure what I would need to change if anything.  We do have a registry setting for the service which specifies the name of the pbvm.dll.  I updated it from pbvm170.dll to just pbvm.dll, but it didn't help.

 

Comment
  1. Roland Smith
  2. Wednesday, 2 November 2022 12:36 PM UTC
PB 2021 doesn't add the PB Runtime folder to the system path like PB 2017 did. You need to add the PB 2021 runtime folder to the system path.

The runtime path should be something like:

C:\Program Files (x86)\Appeon\Common\PowerBuilder\Runtime 21.0.0.1509
  1. Helpful 1
  1. Tanya Weaver
  2. Wednesday, 2 November 2022 12:42 PM UTC
"You need to add the PB 2021 runtime folder to the system path". - Where/how would I do this?
  1. Helpful
  1. Tanya Weaver
  2. Wednesday, 2 November 2022 12:44 PM UTC
The runtime install created the folder you mentioned.
  1. Helpful
There are no comments made yet.
Tanya Weaver Accepted Answer Pending Moderation
  1. Wednesday, 2 November 2022 10:04 AM UTC
  2. PowerBuilder
  3. # 2

Hi Roland

To be very honest, that I am still trying to figure out.  I am a .Net developer not a Powerbuilder developer, so this is all new to me.  I just followed the installation guide created by the previous developer to install the service on the server and copied across the updated 2021 .pbd files for the service.

 

 

Comment
  1. Roland Smith
  2. Wednesday, 2 November 2022 12:31 PM UTC
You can't create a Windows Service with just PowerBuilder. There must be some other tool involved. Do you know what that is?
  1. Helpful 1
  1. Tanya Weaver
  2. Wednesday, 2 November 2022 12:41 PM UTC
Hi Roland



We use pbniserv to run it as a service. I actually wasn't aware this was a 3rd party tool.
  1. Helpful
  1. Chris Pollach @Appeon
  2. Wednesday, 2 November 2022 20:05 PM UTC
The "pbniserv" 3d party tool could be the issue.
  1. Helpful
There are no comments made yet.
Tanya Weaver Accepted Answer Pending Moderation
  1. Wednesday, 2 November 2022 10:00 AM UTC
  2. PowerBuilder
  3. # 3

Q1:  Is this an IIS web service or an O/S Service?

O/S Service

Q2:    Did you install the PB runtime via the "PB Packager" utility's created MSI?

The PB packager utility to create the MSI package doesn't work on my laptop or my colleagues.  We were advised to install it by running the Powerbuilder Installer and selecting to install the run time package.

 

 

Comment
  1. Chris Pollach @Appeon
  2. Wednesday, 2 November 2022 20:04 PM UTC
If the PB packager utility that created the MSI runtime package doesn't work - then you are having some significant O/S and/or environment issues.
  1. Helpful
  1. Tanya Weaver
  2. Thursday, 3 November 2022 07:50 AM UTC
My colleague's machine is a clean install of Windows 11 with Powerbuilder 2021 and he gets the same error as me. It just says "Compiling the MSI for PowerBuilder .NET runtime produces an error.
  1. Helpful
There are no comments made yet.
Armeen Mazda @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 1 November 2022 18:13 PM UTC
  2. PowerBuilder
  3. # 4

Hi Tanya, You mentioned PB 2017 and then you mention PB 2021.  So it sounds like problem you are having is getting the PB 2021 version of your project to work?  If yes, please note that starting from PB 2019 R3, change was made to how the runtime deployment is handled.  Please carefully read this: https://docs.appeon.com/pb/whats_new/Separating_Runtime_from_IDE.html

Best regards,
Armeen

Comment
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 1 November 2022 17:13 PM UTC
  2. PowerBuilder
  3. # 5

Hi Tanya;

  Is this an IIS web service or an O/S Service?

  Did you install the PB runtime via the "PB Packager" utility's created MSI?

Regards ... Chris

Comment
There are no comments made yet.
Roland Smith Accepted Answer Pending Moderation
  1. Tuesday, 1 November 2022 14:56 PM UTC
  2. PowerBuilder
  3. # 6

How are you making it into a service?

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.