I am getting a "Recorder offline -" exception in a simple console app attempting to use the MKSExporter. I used the component sample "ExportSample" which is a Windows Forms application and moved the relevant code to my console app without success.

Some background… I have a requirement for some basic capabilities in a console application that will get a list of cameras and be able to write a video clip to the file system for any of those cameras.

I have very little experience in .NET development and was hoping to use the Component Samples solution. I found a console app, AddLayout, and used that to log into the server and traverse the Configuration to get the cameras. I moved what I thought was the required code from ExportSample into the console app. When the following line is executed:

_exporter.StartExport(startTime, endTime)

I get a Recorder offline - exception

I have been comparing the camera and exporter between the working Windows Form app, ExportSample, and my console app and don’t see any differences. Any suggestions would be appreciated

Let me ask you a few questions.

Can you check if unmodified Export Sample work properly?

Is your recording server service online?

Can you see green triangle icon in window task-bar?

Thanks Rie,

I was able to get past this problem. The ExportSample was working properly. I later found a recommendation to use a script to load the complete set of dlls into the project. The AddLayout sample had a different set of libraries. The script was CopyExportFiles.bat

Christopher,

take a look to this: https://developer.milestonesys.com/s/question/0D53X000069M5gJSAS/dbexporter-fails

Frediano