I am running Extend 10.0.0 on Windows 10, 64-bit, but developing for 32-bit. I have been developing a .NET DLL to use with our COBOL app over the last couple of months, and NETDEFGEN has been creating the DEF file just fine and I can run the app. Now I'm trying to add events that will be caught by COBOL, and I expected NETDEFGEN to create the event DLL, like it did for the sample program AmortControl. The documentation says that occasionally, I might get the error "The Event Handler Compilation Failed" but the DEF file would generated normally. Well, the DEF did, but the event DLL did not.
What can I check? I built the .NET DLL with Framework 4, build platform x86. The NETDEFGEN setting is using 32-bit 4.0 ilasm.exe. The Class Member screen in NETDEFGEN shows that I have Events, but when I click Generate, I get the error message, and no event DLL. I generated for AmortControl under these conditions, and it worked. My next course of action is to start adding to AmortControl until I stumble across something. But I thought I could save myself some work if someone else has experienced this and can help me out.
The exact error message is: C:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319\\ilasm.exe Event Handler Compilation Failed [1].
#extend
#Events
#.net