Page 1 of 1

Not able to load dictionary - C#

PostPosted:Wed Jan 20, 2021 11:35 am
by nisala88
I followed this youtube guide provided by OpenKM

https://www.youtube.com/watch?v=iI3S6jVF1JM - OpenKM - SDK for .NET

Using .Net Framework 4.6.1
IDE - Visual Studio 2017

Used,
OKMForms2.0
OKMUtils2.0
OKMWebservice2.0

The following error occurs when I run this code

"Not able to load dictionary"
Code: Select all
DictionaryHelper dictionary = new DictionaryHelper();
String resource = "OKMRest.resources.translation-enGB.properties";
Stream stream = System.Reflection.Assembly.GetExecutingAssembly().GetManifestResourceStream(resource);
dictionary.loadDictionary(stream, System.Text.Encoding.UTF8);
is it because stream is getting null?

Any Help would be much appreciated.

Re: Not able to load dictionary - C#

PostPosted:Fri Jan 22, 2021 8:32 pm
by pherrera
Hi,

Please use the latest version of the SDK, you can check this according to the version of your OpenKM : https://docs.openkm.com/kcenter/view/sd ... patibility

The video handles the obsolete version of the sdk, please follow the instructions, the requirements and the example in the documentation:
https://docs.openkm.com/kcenter/view/sd ... ments.html

Best regards.