1. Naomi Schneider
  2. PowerBuilder
  3. Monday, 15 January 2024 09:33 AM UTC

Hello,

I'm using ".NET DLL Importer" and I have a problem when I'm trying to load DLL file of class Library.

PowerBuilder version is 2022 R2 build 2819

 

Francisco Martinez @Appeon Accepted Answer Pending Moderation
  1. Monday, 15 January 2024 14:39 PM UTC
  2. PowerBuilder
  3. # 1

Hi Naomi,

 

When this error shows up, one possible solution is to restart the IDE and try to import it again.

 

Regards,
Francisco

Comment
There are no comments made yet.
Naomi Schneider Accepted Answer Pending Moderation
  1. Tuesday, 16 January 2024 07:37 AM UTC
  2. PowerBuilder
  3. # 2

Hi Francisco,

 

Thanks for your response.

After restarting the IDE I still get this error message, this is since I downloaded the R2 version, and happens with every DLL I upload!

 

Regards,

Naomi

Comment
  1. Francisco Martinez @Appeon
  2. Tuesday, 16 January 2024 15:39 PM UTC
What .NET versions do you have installed in your computer? You can see this by running the following command on the CMD:

dotnet --info
  1. Helpful
There are no comments made yet.
Nomi Scneider Accepted Answer Pending Moderation
  1. Wednesday, 17 January 2024 08:58 AM UTC
  2. PowerBuilder
  3. # 3

Comment
  1. Francisco Martinez @Appeon
  2. Wednesday, 17 January 2024 15:06 PM UTC
Do you have the same issue when trying to import a different DLL? Can you try creating a DLL yourself on SnapDevelop or VisualStudio and try importing it?
  1. Helpful
There are no comments made yet.
Naomi Schneider Accepted Answer Pending Moderation
  1. Sunday, 28 January 2024 09:31 AM UTC
  2. PowerBuilder
  3. # 4

Yes, when I'm trying to import different DLLs I receive another message:

 

 In addition, after I created a simple DLL in Visual Studio (.NET 6), the import button is unavailable.

could you have an advice?  

 

Comment
There are no comments made yet.
Peter Pang @Appeon Accepted Answer Pending Moderation
  1. Monday, 29 January 2024 02:08 AM UTC
  2. PowerBuilder
  3. # 5

Hi Naomi,

 

Screenshot 1:

Answer: The other DLLs or files associated with the imported DLL failed to be loaded. Please make sure the associated files can be loaded successfully.

 

Screenshot 2:

Answer: The file imported last time was .Net Framework dll, so PB IDE pre-loaded the related environment file for .Net Framework. Please close PB IDE and then open it again.

 

Screenshot 3:

Answer: Please select the functions you need to import and then click the Import button.

 

You can refer to the relevant material below:

https://docs.appeon.com/pb2021/application_techniques/Calling_C_Assembly_in_an_Application.html#Importing_CSharp_assembly

 

 

Best Regards,

Peter

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.