1. Jeganathan Thasaiyan
  2. PowerBuilder
  3. Monday, 18 September 2023 06:46 AM UTC

 

The dll has the dependency with System.Data.SqlClient namespace is not getting imported through .NET DLL Importer and getting below error message. Could you help us to fix the issue? 

 

Miguel Leeuwe Accepted Answer Pending Moderation
  1. Monday, 18 September 2023 08:47 AM UTC
  2. PowerBuilder
  3. # 1

Hi,

Which powerbuilder version? 32 bit or 64 bit?

How was the DLL compiled ( .Net Framework, .Net core xx) ? 32 bit or 64 bit?

Can you post / attach you DLL so we can try?

regards.

 

Comment
  1. Miguel Leeuwe
  2. Monday, 18 September 2023 10:28 AM UTC
Nope, I don't know.
  1. Helpful
  1. Chris Pollach @Appeon
  2. Monday, 18 September 2023 12:37 PM UTC
Hi J;

Only "simple" data types can be passed between PB & .Net modules. You cannot pass object classes as neither PB or .Net can understand each other's classes.

Regards.... Chris
  1. Helpful 1
  1. Francisco Martinez @Appeon
  2. Monday, 18 September 2023 14:20 PM UTC
Jeganathan, since the SqlConnection object is an argument, the .NET DLL Importer requires it to be defined in order to load the function's signature.

One solution is to include the corresponding assembly alongside the DLL you're trying to import.



Regards - Francisco
  1. Helpful 1
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.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.