I am trying to get an addin to work that launches and runs microstation in the background on windows server 2012 R2. The purpose of the addin is to convert DGN's to PDF's with appropriate levels and colors depending on the file path the DGN is in.
I am able to launch microstation succesfully, load my addin, send my addin command just fine (stepping through the code, debugging in visual studio by "attaching to" ustation.exe process), and I can't seem to figure out how to not get the below error. The error shows up and an exception is thrown on the lines:
I moved the file ecom.config (renamed from ecom.cfg) to the path the error describes and the error persists.
This process is currently running fine on a production server and converts PDF's with no issues.
app = Utilities.ComApp; (doesn't fail on this line)
app.CadInputQueue.SendCommand("DIALOG PLOT"); (Error thrown on this line): Error images are attached. I