Having problems with your account or logging in?
A lot of changes are happening in the community right now. Some may affect you. READ MORE HERE

Problem getting RTS 173 error "Program name not found" when calling managed subprogram in production

Problem getting RTS 173 error "Program name not found" when calling managed subprogram in production


Customer has a .NET managed code solution in which he has two projects.
The first project is a main console application that generates an assembly called mainprog.exe.

The second project is a Class Library project that generates an assembly called subprog.dll.
Within the subprog project is a program called prog2.cbl.

mainprog.cbl calls this prog2 through the use of:

   call "prog2" using ...

Because prog2 is not the name of the .dll on disk, the .dll needs to be loaded in order to make the entry point prog2 available to mainprog.

The customer has created an app.config file for the mainprog project which contains the following preload section which will cause the program to load the subprog.dll when it starts:

         <add key="subprog.dll" value="managed" />

When he runs this in development it works fine and the program prog2 is found without a problem.

When he moves the program to a production computer on which COBOL Server is installed, when he runs the program he gets a RTS error 173 that prog2 program name cannot be found.



It turns out that although the customer moved the mainprog.exe and subprog.dll to the production computer he did not move the mainprog.exe.config file which is automatically generated by Visual COBOL in the project output folder.

Since this file actually contains the required statement to preload the subprog.dll and it was missing, the subprog.dll was not loaded and thus the prog2 entry point could not be found.

Copying the .config file to the production system solved this problem.


Some content on Community Tips & Information pages is not officially supported by Micro Focus. Please refer to our Terms of Use for more detail.
Top Contributors
Version history
Revision #:
1 of 1
Last update:
‎2013-09-12 23:54
Updated by:
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.