Skip to content

Third-party components report errors under nativeaot #1117

Open
@DragonXYZ

Description

@DragonXYZ

I tried to generate a nativeaot program and got an error when running it
error message:

Unhandled exception. System.NotSupportedException: 'AsyncIO.Windows.AcceptExDelegate' is missing delegate marshalling data. This can happen for code that is not compatible with AOT. Inspect and fix AOT related warnings that were generated when the app was published. For more information see https://aka.ms/nativeaot-compatibility at Internal.Runtime.CompilerHelpers.RuntimeInteropData.GetForwardDelegateCreationStub(RuntimeTypeHandle) + 0x6d at System.Runtime.InteropServices.PInvokeMarshal.GetDelegateForFunctionPointer(IntPtr, RuntimeTypeHandle) + 0x71 at AsyncIO.Windows.Socket.LoadDynamicMethod[T](Guid) + 0x8c at AsyncIO.Windows.Socket.Listener..ctor(Socket) + 0x44 at AsyncIO.Windows.Socket.Listen(Int32) + 0x36 at NetMQ.Core.Transports.Tcp.TcpListener.SetAddress(String) + 0x1b2 at NetMQ.Core.SocketBase.Bind(String) + 0x286 at NetMQ.NetMQSocket..ctor(ZmqSocketType, String, NetMQSocket.DefaultAction) + 0x2ae

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions