I've been scripting in the script window and missed features of VS. I downloaded and installed the latest community version. I cloned and stripped down an example of a console app posted By AdamW.
I was able to establish root and application. The exception occurred in the following line.
string tech = app.GetTechnologyForFile(@"d:\temp\test.map", true);
I did do the run time update as well.
Exception thrown: 'System.Exception' in extnet.dll
An unhandled exception of type 'System.Exception' occurred in extnet.dll
Invalid API operation.
This message appeared on the console.
Unhandled exception. System.Exception: Invalid API operation.
at ?A0xdab747ad.GetTechnologyForFileCore(String path, Boolean mayOpen)
at Manifold.Application.GetTechnologyForFile(String file, Boolean mayOpen)
at ConsoleApp2.Program.Main(String args) in D:\Users\...\ConsoleApp2\Program.cs:line 14