1. Kirankumar Chavadi
  2. PowerBuilder
  3. Monday, 4 December 2023 10:48 AM UTC

Imported a .Net DLL and while consuming I am getting below error!

PowerBuilder 2022 R3

Miguel Leeuwe Accepted Answer Pending Moderation
  1. Monday, 4 December 2023 15:04 PM UTC
  2. PowerBuilder
  3. # 1

in your of_createOnDemand() function, change "LoadwithDotnet" to "LoadWithDotnetFramework" and see if it works.

"Reflection" doesn't work in .Net Core / .Net. Only in .Net Framework.

 

Comment
  1. Kirankumar Chavadi
  2. Monday, 4 December 2023 15:57 PM UTC
This worked! Thank you

Where I can mention to import DLL as .Net Framework instead of .Net Core ?

In PB 2022 R3, I don't see radio buttons on Import window
  1. Helpful
  1. Miguel Leeuwe
  2. Monday, 4 December 2023 16:18 PM UTC
Glad it works!

In PB 2022 R3, you can no longer specify it. Appeon has had the genius idea of trying to force all of us to use .Net 6 or later. However, there are a lot of things that cannot easily be converted to .Net and only work on .Net FRAMEWORK.

So as long as we're allowed to change it manually in the code, we'll be ok. What I'm afraid of, is that in some future the LoadWithDotnetFramework() will no longer work.

regards

  1. Helpful
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Monday, 4 December 2023 12:29 PM UTC
  2. PowerBuilder
  3. # 2

Hi Kirankumer;

  Since this is a beta. If you find any anomalies, please open a support ticket for these so that Engineering can jump on these issues ASAP. Many thanks.

Regards ... Chris 

Comment
  1. Kirankumar Chavadi
  2. Monday, 4 December 2023 12:34 PM UTC
This happens with PowerBuilder 2022 R2 also
  1. Helpful
  1. Miguel Leeuwe
  2. Monday, 4 December 2023 16:21 PM UTC
It's been mentioned in several tickets already, but Appeon tells us this is the way they've decided to go.

(Just do a search on LoadWithDotnetFramework).
  1. Helpful
There are no comments made yet.
Miguel Leeuwe Accepted Answer Pending Moderation
  1. Monday, 4 December 2023 11:23 AM UTC
  2. PowerBuilder
  3. # 3

Your .Net DLL:

- 64 or 32 bit compiled?

- .Net Core / .Net / .Net Framework?

Comment
  1. Kirankumar Chavadi
  2. Monday, 4 December 2023 11:34 AM UTC
32 bit compiled with .Net Framework 4.7.2
  1. Helpful
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.