-
Simone Olianti
- PowerBuilder
- Friday, 11 April 2025 03:36 PM UTC
Hello, i've successfully imported a .NET DLL with the .NET DLL Importer Tool inside powerbuilder IDE.
Successfully deployed and compiled and everything working as expected on my machine. Even on other two windows 11 machines working great.
In some other Windows 11 machines when i try to access the dll nothing happens.
After some investigations i've discovered that it fails when it tries to load the dll with "LoadWithDotNet", returning status -1 (Unknown error)
Unfortunately the error text is empty, but i suspect i miss some components but i don't understand what is it.
here is the code:
This.of_ResetError( )
If This.ib_objectCreated Then Return True // Already created => DONE
Long ll_status
String ls_action
/* Load assembly using .NET */
ls_action = 'Load ' + This.is_AssemblyPath
DotNetAssembly lnv_assembly
lnv_assembly = Create DotNetAssembly
ll_status = lnv_assembly.LoadWithDotNet(This.is_AssemblyPath)
/* Abort when load fails */
If ll_status <> 1 Then
This.of_SetAssemblyError(This.LOAD_FAILURE, ls_action, ll_status, lnv_assembly.ErrorText)
This.of_SignalError( )
Return False // Load failed => ABORT
End If
Double checked the Powerbuilder runtime which is correct and tried to install .NET 8 runtime (same versione of the external dll) but the issue is still there
I'm using PB 2022 R3 Build 3397
any help or advice would be very appreciated
TIA,
simone
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.