Imported a .Net DLL and while consuming I am getting below error!
PowerBuilder 2022 R3
- You are here:
- Home
- Q&A
- Q&A
- PowerBuilder
- error while consuming imported .Net DLL
- Kirankumar Chavadi
- PowerBuilder
- Monday, 4 December 2023 10:48 AM UTC
- Monday, 4 December 2023 11:23 AM UTC
- PowerBuilder
- # 1
Your .Net DLL:
- 64 or 32 bit compiled?
- .Net Core / .Net / .Net Framework?
Comment
- Kirankumar Chavadi
- Monday, 4 December 2023 11:34 AM UTC
32 bit compiled with .Net Framework 4.7.2
-
Helpful Loading... Helpful 0
There are no comments made yet.
- Monday, 4 December 2023 12:29 PM UTC
- PowerBuilder
- # 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
- Kirankumar Chavadi
- Monday, 4 December 2023 12:34 PM UTC
This happens with PowerBuilder 2022 R2 also
-
Helpful Loading... Helpful 0
- Miguel Leeuwe
- 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).
(Just do a search on LoadWithDotnetFramework).
-
Helpful Loading... Helpful 0
There are no comments made yet.
- Monday, 4 December 2023 15:04 PM UTC
- PowerBuilder
- # 3
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
- Kirankumar Chavadi
- 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
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
-
Helpful Loading... Helpful 0
- Miguel Leeuwe
- 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
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
-
Helpful Loading... Helpful 0
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.
However, you are not allowed to reply to this question.
Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here. Register Here »