I have built a solution but when I try to run it outside of Visual Studio I get the error.
Windows 11
Visual Studio Community 2022 Build 17.8.5
Visual Cobol 9.0 Personal Edition
Console Application.
Cybersecurity
DevOps Cloud (ADM)
IT Operations Cloud
If an answer to your question is correct, click on "Verify Answer" under the "More" button. The answer will now appear with a checkmark. Please be sure to always mark answers that resolve your issue as verified. Your fellow Community members will appreciate it!  Learn more
I have built a solution but when I try to run it outside of Visual Studio I get the error.
Windows 11
Visual Studio Community 2022 Build 17.8.5
Visual Cobol 9.0 Personal Edition
Console Application.
Found solution put Visual Cobol directory in PATH system variables.
If you are building the application as an executable you could also change the Run-time Model option to Dynamic Link on the COBOL Link page of the project properties. This will cause the application to look in the Registry to discover the location of the Visual COBOL product.
If you are running from a command prompt you could open up a Visual COBOL command prompt from the Visual COBOL group on the Start menu instead and then the Visual COBOL environment is setup automatically.
Chris Glazier
Rocket Software - Principal Technical Support Specialist
If you found this post useful, give it a “Like” or click on "Verify Answer" under the "More" button