You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 14, 2024. It is now read-only.
Make sure you are able to repro it on the latest version
Search the existing issues.
Steps to reproduce
I build my app with .NET 8, runtime win-x64 and Microsoft.Management.Infrastructure version 3.0.0 and let it run.
I am able to get my .NET 8 app running when built with Microsoft.Management.Infrastructure version 3.0.0-preview.3, the issue is also happening with 3.0.0-preview.4.
Expected behavior
No problem
Actual behavior
When application start I get exception:System.TypeInitializationException: The type initializer for 'Microsoft.Management.Infrastructure.Native.ApplicationMethods' threw an exception. ---> System.DllNotFoundException: Unable to load DLL 'Microsoft.Management.Infrastructure.Native.Unmanaged.DLL' or one of its dependencies: The specified module could not be found. (0x8007007E) at MI_ApplicationWrapper_Initialize(_MI_ApplicationWrapper* , UInt16* , , , , , , , , , , , , , ) at Microsoft.Management.Infrastructure.Native.MI_ApplicationWrapper_Initialize_Managed(_MI_ApplicationWrapper* pmiApplicationWrapper) at Microsoft.Management.Infrastructure.Native.ApplicationMethods.InitializeCore(InstanceHandle& errorDetails, ApplicationHandle& applicationHandle) at Microsoft.Management.Infrastructure.Native.ApplicationMethods..cctor() --- End of inner exception stack trace --- at Microsoft.Management.Infrastructure.Native.ApplicationMethods.Initialize(InstanceHandle& errorDetails, ApplicationHandle& applicationHandle) at Microsoft.Management.Infrastructure.Internal.CimApplication.GetApplicationHandle() at System.Lazy`1.ViaFactory(LazyThreadSafetyMode mode) --- End of stack trace from previous location --- at System.Lazy`1.CreateValue() at Microsoft.Management.Infrastructure.Internal.CimApplication.get_Handle() at Microsoft.Management.Infrastructure.CimSession.Create(String computerName, CimSessionOptions sessionOptions) at Microsoft.Management.Infrastructure.CimSession.Create(String computerName)
Error details
No response
Environment data
The application run on cotainer without powershell
Prerequisites
Steps to reproduce
I build my app with .NET 8, runtime win-x64 and Microsoft.Management.Infrastructure version 3.0.0 and let it run.
I am able to get my .NET 8 app running when built with Microsoft.Management.Infrastructure version 3.0.0-preview.3, the issue is also happening with 3.0.0-preview.4.
Expected behavior
No problemActual behavior
Error details
No response
Environment data
Version
3.0.0
Visuals
No response