Resolution:
Correct the code to remove the object reference declaration from the file section and recompile as before, or recompile for native code instead of .NET COBOL code.
Example:
The following example shows the R1 object declared in the FD.
select f1 assign "MyFile". fd f1. 01 r1 object.