1. Hirenkumar Lad
  2. PowerBuilder
  3. Thursday, 5 May 2022 12:24 PM UTC

Dear Support Team,

I have created the .Net Assembly project in Power Builder which will generate the DLL as an output and same DLL I am referencing in my another .Net Program. In my Power Builder .Net Assembly project I have used the DataStore to load the PSR file and export the PDF of PSR report. 

In my .Net Program, I am calling the function created in .Net Assembly power builder project. I am getting the below exception in my .Net program while calling the Power Builder function. 

Exception:

DataWindow Server PBDWM150.DLL or required DLLs (atl71.dll, msvcp71.dll or msvcr71.dll)  not found.

Just for your information, I have already place the all files/folders available in Runtime folder to bin/debug folder of .Net Program. But still I am getting the above exception. Also, I could not find the missing dll files in runtime folder.  

Already I gone through the post having the same exception but I didn't find the solution.

Thanks & Regards,

Hiren Lad

Accepted Answer
Andreas Mykonios Accepted Answer Pending Moderation
  1. Monday, 9 May 2022 06:35 AM UTC
  2. PowerBuilder
  3. # Permalink

In help it is mentioned:

If the PowerBuilder runtime files are not available on the target computer, you must deploy pbshr.dll, pbdwm.dll, and any other PowerBuilder runtime files the application needs. You can deploy these files by adding them to this page or use the bootstrapper on the Prerequisites page. The Microsoft files on which the PowerBuilder runtime files depend, msvcr100.dll, msvcp100.dll, and at100.dll, must also be available on the target computer.

Have you deployed pbshr.dll, pbdwm.dll and other required files?

Andreas.

Comment
  1. Hirenkumar Lad
  2. Monday, 9 May 2022 07:06 AM UTC
Hi Andreas,



I have not deployed the pbdwm.dll as it is not a part of Runtime folder. I have place the dll and now it is working fine.



Many thanks.!



Hiren Lad
  1. Helpful
There are no comments made yet.
Andreas Mykonios Accepted Answer Pending Moderation
  1. Thursday, 5 May 2022 12:31 PM UTC
  2. PowerBuilder
  3. # 1

You should inform us the version of powerbuilder you are using for this.

Andreas.

Comment
There are no comments made yet.
Miguel Leeuwe Accepted Answer Pending Moderation
  1. Thursday, 5 May 2022 14:27 PM UTC
  2. PowerBuilder
  3. # 2

atl71.dll, msvcp71.dll or msvcr71.dll 

These files are not part of the pb runtime, you have to get them elsewhere. (C++ runtime?).

regards

Comment
  1. Andreas Mykonios
  2. Thursday, 5 May 2022 16:15 PM UTC
I believe those files were part of .net framework 1.x... The c++ runtime was not distributed alone. But i'm curious the PBDWM150.DLL is part of pb 15 (old beta)?
  1. Helpful
  1. Miguel Leeuwe
  2. Friday, 6 May 2022 07:24 AM UTC
Hi Andreas,

You are right. The file that comes from C++ runtime is "MSVCR.DLL".

I also think that there never was any pbdwm150.dll.

Hiren Lad must be having some very old runtime somewhere on the computer which maybe confuses the hell out of powerbuilder 2021.

He should do a "Dir PBDW*.DLL /S" from a command shell to see what old stuff might be interfering.

regards
  1. Helpful
  1. Hirenkumar Lad
  2. Monday, 9 May 2022 04:03 AM UTC
Hi Andreas,



I have started Power builder since few months and very first version which I have installed in my PC was 21.0.0.1311
  1. Helpful
There are no comments made yet.
Hirenkumar Lad Accepted Answer Pending Moderation
  1. Friday, 6 May 2022 05:11 AM UTC
  2. PowerBuilder
  3. # 3

Hi Andreas,

I am using the Power Builder version 2021 Build 1509 and runtime version 21.0.0.1509.

 

Thanks & Regards 

Hiren Lad

Comment
There are no comments made yet.
Andreas Mykonios Accepted Answer Pending Moderation
  1. Friday, 6 May 2022 05:59 AM UTC
  2. PowerBuilder
  3. # 4

That is strange. I don't recall any library named PBDWM150.DLL in pb2019 - pb2021. Both powerbuilder  2019 & 2021 do have a PBDWM.DLL which in PB2019R2 and previous minor releases may be found as PBDWM190.DLL.

Andreas.

Comment
There are no comments made yet.
Hirenkumar Lad Accepted Answer Pending Moderation
  1. Monday, 9 May 2022 05:05 AM UTC
  2. PowerBuilder
  3. # 5

Dear All,

I think there is some problem in deployment of DLL. Kindly correct my steps which I have done to integrate DLL generated through power Builder in .Net Program.

Step 1: Build and deploy the Project. As a result, Power Builder generated the DLL files along with pbd, pdb and xml files. Attached in screenshot.

Step 2: Copy all files (dll, pbd, pdb and xml) and paste in my .Net application and Add the Reference of DLL file. As a result, I can access the function of Power Builder in my .Net Application.

Step 3: Build the .Net Application. So that DLL file copied in \bin\debug folder of .Net application. Also, I have manually copied Other files (pbd, pdb and xml) in \bin\debug folder of .Net application.

Step 4: In order to run the we need Runtime so I have copied all the files and folder available in "Runtime 21.0.0.1509" folder and paste those files/folders in \bin\debug folder of .Net Application. As I assumed that runtime files should available along with DLL file of Power Builder.

After performing above steps my .Net application can call the function of Power Builder which I have make sure by putting the Message box in Power Builder application. But while executing the line where I am creating the datastore (code snippet below), it throws errors.

datastore lds_datastore
lds_datastore = CREATE datastore

I suspect in Step 4. I don't whether I have performed the correct steps or not. Hope above information may help you to find the solution of error.

Thanks & Regards,

Hiren Lad

Attachments (1)
Comment
There are no comments made yet.
Mark Lee @Appeon Accepted Answer Pending Moderation
  1. Monday, 9 May 2022 07:18 AM UTC
  2. PowerBuilder
  3. # 6

Hi Hirenkumar,

 

Please try the steps below and see if it resolves your issue.

1. Since you are using the .NET Assembly project, you need to install PowerBuilder .NET Component to your .NET application's \bin\debug folder (the "Runtime 21.0.0.1509" folder is the PB application's standard runtime package).
You can use the following steps to create PowerBuilder .NET Component on your development machine with PB IDE.

1) Create a pbpack.ini file in the "C:\Program Files (x86)\Appeon\PowerBuilder 21.0\IDE" folder in PB 2021.
2) Add the following to this INI file.
[Packager]
DotNetComponents=1
3) Start the PB Packager utility and you should now see the ".Net Component" installation.


2. After you create the file PBNETRT 21.0.0.1509.msi, please add the runtime installation path (default path: C:\Program Files (x86)\Appeon\Common\PowerBuilder\Runtime 21.0.0.1509) and PB IDE installation path (default path: C:\Program Files (x86)\Appeon\PowerBuilder 21.0\IDE) to the System Path variable of the Windows OS.

 

3. Restart your computer and verify if it resolves the issue.

 

BTW, the .NET Assembly target is obsoleted since PowerBuilder version 2019.

 

Regards,

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.