Skip to content
This repository has been archived by the owner on Jun 14, 2024. It is now read-only.

MMI does not work with NativeAOT #54

Open
prajaybasu opened this issue Dec 6, 2021 · 0 comments
Open

MMI does not work with NativeAOT #54

prajaybasu opened this issue Dec 6, 2021 · 0 comments

Comments

@prajaybasu
Copy link

Stack Trace

Unhandled exception!
      System.TypeInitializationException: A type initializer threw an exception. To determine which type, inspect the InnerException's StackTrace property.
       ---> EETypeRva:0x00BAC1C8(System.Runtime.InteropServices.MissingInteropDataException): Microsoft.Management.Infrastructure.Native.DeserializerCallbacks+GetIncludedFileBufferAppDomainProxyDelegate is missing delegate marshalling data. To enable delegate marshalling data, add a MarshalDelegate directive to the application rd.xml file. For more information, please visit http://go.microsoft.com/fwlink/?LinkID=393965
         at Internal.Runtime.CompilerHelpers.RuntimeInteropData.GetDelegateMarshallingStub(RuntimeTypeHandle, Boolean) + 0x92
         at System.Runtime.InteropServices.PInvokeMarshal.AllocateThunk(Delegate) + 0x7a
         at System.Runtime.CompilerServices.ConditionalWeakTable`2.GetValueLocked(TKey, ConditionalWeakTable`2.CreateValueCallback) + 0x26
         at System.Runtime.CompilerServices.ConditionalWeakTable`2.GetValue(TKey, ConditionalWeakTable`2.CreateValueCallback) + 0x3e
         at System.Runtime.InteropServices.PInvokeMarshal.GetFunctionPointerForDelegate(Delegate) + 0x92
         at <Module>.Microsoft.Management.Infrastructure.Native.MI_ApplicationWrapper_Initialize_Managed(_MI_ApplicationWrapper*) + 0x66
@prajaybasu prajaybasu changed the title MMI does not work with NativeAOT out of the box MMI does not work with NativeAOT Dec 6, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant