I decompiled an application that connects to the LF Client, runs a search query, and generates a report based on the results. Then I made a few changes that have nothing to do with this error, compiled, and tried to run it. I'm able to get as far as the query, but when I click the button to generate the report I get an error:
System.InvalidCastException: Unable to cast COM object of type 'System.__ComObject' to interface type 'LFSO83Lib.LFFolder'. This operation failed because the QueryInterface call on the Com component for the interface with IID '{the ID number}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE))
The line with the error is
this.entry = (LFFolder) this.DB.GetEntryByGUID(((ILFEntry) ((ILFSearchHit) searchHits[index]).Entry).EntryGUID);
I've been searching around online for the past two days to no avail so I figured I would ask here. The machine running the application has LF Client 8.3. Upgrading is not going to happen. The LF dlls referenced by the project are:
Interop.LFClient.dll version 1.0.0.0
Interop.LFIMAGEENABLE80Lib.dll 8.0.0.0 (also tried 8.0.6.3)
LFSO83Lib.dll version 8.3.0.0 (also tried LFSO91Lib.dll version 9.1.0.0)
The machine running the application has the 9.2.1 SDK installed.
Thank you