Skip to main content

Hi,

I'm encountering an issue with a DLL built on the .NET Framework 4.7.2. I generated a .def file using axDefGen and included it in my AcuCobol program. Although the function I needed appeared
in the .def file, I encountered a "System Exception, Member not found" error when running the AcuCobol program.

I then tried using NetDefGen to generate the .def file, despite knowing it only supports .NET 1.1 and 2.0 versions. The .def file was generated with the required function, but during compilation,
I faced numerous errors, causing the system to abort the process.

Can anyone suggest a solution to these issues?

Thanks,

Aji Cherian

Hi,

I'm encountering an issue with a DLL built on the .NET Framework 4.7.2. I generated a .def file using axDefGen and included it in my AcuCobol program. Although the function I needed appeared
in the .def file, I encountered a "System Exception, Member not found" error when running the AcuCobol program.

I then tried using NetDefGen to generate the .def file, despite knowing it only supports .NET 1.1 and 2.0 versions. The .def file was generated with the required function, but during compilation,
I faced numerous errors, causing the system to abort the process.

Can anyone suggest a solution to these issues?

Thanks,

Aji Cherian

Good afternoon, Aji Cherian .

NetDefGen is the correct tool to use in this case.

Have you set the correct "ILAsm.exe" in the Utility Settings / IL Assemblers field?

What errors do you see when compiling?


Good afternoon, Aji Cherian .

NetDefGen is the correct tool to use in this case.

Have you set the correct "ILAsm.exe" in the Utility Settings / IL Assemblers field?

What errors do you see when compiling?

Thanks for your response. The version of ILAsm.exe I'm using is shown in the screenshot.

NetDefGen generates two .def files. Using the second .def file for compilation caused the process to abort. However, when I used the first .def file, I received a few warnings.

For example, Warning: ID may not end with a hyphen: @TENANTID-. Please note that @TENANTID- is not defined in the .dll.

Aji Cherian


Thanks for your response. The version of ILAsm.exe I'm using is shown in the screenshot.

NetDefGen generates two .def files. Using the second .def file for compilation caused the process to abort. However, when I used the first .def file, I received a few warnings.

For example, Warning: ID may not end with a hyphen: @TENANTID-. Please note that @TENANTID- is not defined in the .dll.

Aji Cherian

Good morning.

Have you tried to use this first .def copy file?
A warning is not a showstopper, as an error could be.
You should find the compiled object, despite this warning, and then test the result with the runtime.

Talking about the compilation process that aborts, which version of ACUCOBOL-GT are you working with?

I suggest you to report this situation creating a Case in https://portal.microfocus.com/

A local engineer will analyse the error more in depth.


Good morning.

Have you tried to use this first .def copy file?
A warning is not a showstopper, as an error could be.
You should find the compiled object, despite this warning, and then test the result with the runtime.

Talking about the compilation process that aborts, which version of ACUCOBOL-GT are you working with?

I suggest you to report this situation creating a Case in https://portal.microfocus.com/

A local engineer will analyse the error more in depth.

Thanks for your reply. Since the warnings aren't showstoppers, I decided to proceed despite them. Additionally, I tried compiling the program using the second .def file generated by NetDefGen. However, in the last few attempts, the compilation process didn't get aborted.