1. Ivan Aase
  2. PowerBuilder
  3. Thursday, 7 March 2024 15:01 PM UTC

Hi,

We are trying to load .dll in .NET Dll importer and that is working fine.

Than when trying to call function in the loaded DLL it only work in srtandard window (10 and 11).

If we copy the product to an RDS Server running Windows Server 2022 Datacenter version 21H2 it seams that the DLL is not found.

There is no error message, and nothing reportet in the pb log on missing dll or other. 

The program just continue as if nothing has happend.

 

Is there something we are doing wrong, or is it not supported on thios environment yeat ?

 

regards

Ivan Aase

Ivan Aase Accepted Answer Pending Moderation
  1. Wednesday, 13 March 2024 08:29 AM UTC
  2. PowerBuilder
  3. # 1

Hi,

Have checked that .Net runtime is installed.

We tried to produce .dll with 6.0 and 8.0 .net runtime. 8.0 is not possible to import with pb 2022 R3, only gives error message, so we used 6.0.

All working well in Windows 10 and 11 but on this RDS Server running Windows Server 2022 Datacenter version 21H2 The DLL is not loaded and thereby the program just continued without any response on the call to then nvo_ functions in the dll.

The odd part is that there is no error message when calling functions in the dll. I would expect the runtime to give some error when the DLL is not there ?

 

regards

Ivan Aase

Comment
  1. Armeen Mazda @Appeon
  2. Wednesday, 13 March 2024 13:51 PM UTC
When you launched the app did you click "Run as Administrator" option. It might be permission issue on Windows Server 2022. The default security permission on a Server OS is way more strict than a desktop OS. Most often when something works on desktop OS but not server OS it is config issue rather than a problem with PowerBuilder itself.
  1. Helpful
  1. Ivan Aase
  2. Wednesday, 13 March 2024 17:22 PM UTC
Hi,



Have tried with and without "Run as Administrator" and there is no different between them.

Looks like it has to be something else, but so long there is no obvious solutions for us.

We may has to try to go to the old solution and registrate it as an "Local External Functions"



regards

Ivan
  1. Helpful
There are no comments made yet.
Francisco Martinez @Appeon Accepted Answer Pending Moderation
  1. Thursday, 7 March 2024 15:26 PM UTC
  2. PowerBuilder
  3. # 2

Hi Ivan,

 

If the DLLs are compiled as Portable then you will need to have the .NET runtime installed on the server. You might want to verify this.

 

Regards,
Francisco

Comment
  1. Ivan Aase
  2. Friday, 8 March 2024 07:33 AM UTC
Thank's



We will verify if this. I'm racken it's not, but it is no harm in one extra control.



Ivan.
  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.