-
Ali Ashraf
- PowerBuilder
- Saturday, 17 January 2026 02:34 PM UTC
Hi guys,
Our team ran into a very weird issue, recently after migrating to PowerBuilder 2025.
We have developed a .net class library responsible for retrieving device data (hardware + OS info). We imported it into PowerBuilder 2025 successfully.
It operates fine when run from within the PowerBuilder IDE. All our required values are retrieved correctly by it.
However, when we deploy the application (that uses said DLL) the dll fails to retrieve said info, throwing the following errors:
PowerBuilder Target .exe metadata:
- Type: Pcode
- Platform: 32-bit
---------------------------
MyNvo Error:
---------------------------HDSNo: Could not load file or assembly 'Microsoft.Management.Infrastructure.Native, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. Could not find or load a specific file. (0x80131621) | BiosId: Could not load file or assembly 'Microsoft.Management.Infrastructure.Native, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. Could not find or load a specific file. (0x80131621) | CpuId: Could not load file or assembly 'Microsoft.Management.Infrastructure.Native, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. Could not find or load a specific file. (0x80131621)
---------------------------
OK
---------------------------
For your info:
- We tried this on 3 different Windows (10 and 11) machines - all with .net 8 runtime installed. The problem was consistent.
- Ran the .exe as administrator
And yes, we made sure all the DLLs were present in the directory of the .exe.
Here is our dll .csproj file for your reference:
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <!--<TargetFramework>net8.0</TargetFramework>--> <TargetFramework>net8.0</TargetFramework> <RuntimeIdentifier>win-x64</RuntimeIdentifier> <AssemblyName>MyDll</AssemblyName> <RootNamespace>MyDll</RootNamespace> <GenerateAssemblyInfo>false</GenerateAssemblyInfo> <CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies> </PropertyGroup> <ItemGroup> <Compile Include="Properties\AssemblyInfo.cs.old" /> </ItemGroup>
<ItemGroup> <PackageReference Include="AWSSDK.Core" Version="3.7.400" /> <PackageReference Include="AWSSDK.S3" Version="3.7.400" /> <!-- This is the DLL that cannot be loaded OR found by the .exe for some reason--> <PackageReference Include="Microsoft.Management.Infrastructure" Version="3.0.0" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" /> <PackageReference Include="System.CodeDom" Version="10.0.1" /> <PackageReference Include="System.Configuration.ConfigurationManager" Version="8.0.0" /> </ItemGroup></Project>
Any help would be appreciated. Thank you!
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.