read TM C#

hello,

we try read TM (.sdltm) to get source and target so we try using code below:

FieldValues fieldValuesCollection = new FieldValues();
FileBasedTranslationMemory tm = new FileBasedTranslationMemory(File Path);
FieldDefinition field = tm.FieldDefinitions["Type"];

when run the code we have exception: System.ServiceModel.FaultException`1: 'The type initializer for 'Sdl.LanguagePlatform.TranslationMemoryImpl.Storage.SqliteStorage' threw an exception.'

so, please we need your support to know the issue to solve it.

note: we have use Trados 2017 and updated it.