-
Shashank S
- PowerBuilder
- Tuesday, 10 March 2026 09:10 AM UTC
While reviewing some of the available documentation, I could not find clear guidance on the following scenario, so I am reaching out here for clarification.
We are migrating an application from PowerBuilder WinForms target (Sybase IDE – 12.5.2) to Appeon PowerBuilder 2022 R3 (Classic).
The application calls a .NET DLL built with .NET Framework 4.8.
- Issue 1 – Exception handling
In Sybase PowerBuilder 12.5.2 we were able to catch exceptions thrown from the .NET DLL:
TRY
// call external DLL
CATCH (System.Exception ex)
MessageBox("Error", ex.Message)
END TRY
In Appeon Classic, System.Exception does not appear to be supported.
If the DLL throws an exception (even for business validation), we only get:
“Runtime exception error calling external function”
The original exception message is not available.
Question:
What is the recommended way to return error messages from a .NET DLL to PowerBuilder in Appeon Classic?
- Issue 2 – LDAP authentication
The same DLL contains LDAP authentication code using:
System.DirectoryServices.Protocols
When this code runs from Appeon, we get:
“System.DirectoryServices.Protocols is not supported on this platform.”
(This message was captured from within the .NET DLL by adding logging inside the called dll function.)
Question:
Is System.DirectoryServices.Protocols supported when calling a .NET Framework4.8 DLL from Appeon Classic? If not, what is the recommended approach for LDAP authentication?
Thanks in advance
Regards.
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.