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

ASP.NET application gets RTS error 173 - "Program not Found" when attempting to call an unmanaged .dll in same folder

ASP.NET application gets RTS error 173 - "Program not Found" when attempting to call an unmanaged .dll in same folder

Problem:

Customer has an ASP.NET Web application written in Visual COBOL which does a call to an unmanaged COBOL .dll.

The .dll is located in the web applications bin folder along with the calling program yet when a call is made a 173 error "Program Not Found" occurs.

How can this be resolved?

Resolution:

When an ASP.NET application is run, the sources for the web pages are moved to a temporary location, compiled and run from that temporary location so the default folder is no longer the bin folder..

The unmanaged .dlls are not moved to this temprary location so the web application needs to know where to look for these files.

It is therefore necessary to place the location of these unmanaged .dlls within the PATH environment variable.
This can be done directly within the web applications web.config file by right-clicking on web.config in Solution Explorer and selecting the Edit option.

You can then add the PATH environment variable and set it to the value of the folder in which your unmanaged .dlls reside.

 

DISCLAIMER:

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-04-03 07:02
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.