Integrating Lync into a C# application and Windows Event Log error messages
Posted: (EET/GMT+2)
I'm currently working on a C# Windows application that integrates some functions of Lync into itself. In this application, Lync is being run in UI suppression mode, which means the Lync user interface (Lync application itself) isn't visible, but you can still call its functions through the SDK API routines.
Now, the C# application itself is working fine, but I just noticed that even though everything appears to work perfectly, Lync is generating error messages (sometimes fatal) into the Windows Event log under the Application Log.
For instance, when I'm calling Process.Start to launch Lync.exe, the event log sometimes says Lync.exe generated an exception, and crashed. But even when this happens, the C# application can nicely get Lync running, and access its APIs.
In case you are developing similar applications, be sure to check out the Windows Event Log, too.
Good luck!