Occasionally when using NETDEFGEN, you may encounter the error message:

C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\ilasm.exe Event Handler Compilation Failed

as shown on the bottom of the screen below.

NETDEFGEN error message

This is a Microsoft message indicating that "ilasm.exe," a Microsoft executable, could not generate an event handler, probably because the assembly did not specify events. Our NETDEFGEN did not generate this message. It generates the COPY file normally despite the Microsoft error.