OutprocLoader C# Problem

  • Last Post 15 December 2016
  • Topic Is Solved
hakanaktan posted this 13 December 2016

Dear Sir/Madam,

In our application we were using DLL Import code to create FREngine object. Now we are using "OutprocLoader" and "GetEngineObject" method to create FREngine object. After this code change we get error in our clients application, but it works fine on developer computers.

After the error we received (in below image file), alt text

we send the abby sdk dll files to client computer and now we receive error that is shown in this image file.

alt text

We think that some dll files are absent on client computer. What we need to transfer to the client computer to solve this problem?

Thanx in advance.

Code is below: DLL Import:

 [DllImport(@"FREngine.dll", CharSet = CharSet.Unicode), PreserveSig]
        private extern static uint GetEngineObject(
            String devSN,
            String reserved1,
            String reserved2,
            ref FREngine.IEngine engine);

        [DllImport(@"FREngine.dll", CharSet = CharSet.Unicode), PreserveSig]
        private extern static int DeinitializeEngine();

         uint hresult = GetEngineObject(_engineDeveloperKey, null, null, ref _frEngine);

C# Code

  private static volatile IEngineLoader engineLoader = new FREngine.OutprocLoader();

  _frEngine = engineLoader.GetEngineObject(_engineDeveloperKey, null, null);

Attached Files

Order By: Standard | Newest | Votes
Oksana Serdyuk posted this 15 December 2016


To solve the first initial issue please look on this article: http://knowledgebase.ocrsdk.com/article/1562. It describes several reasons for the “Class not registered” error.

As for the second issue, it occurs because you are trying to run a non-developer, i.e. Runtime, license in developer library. Please see the details in our Knowledgebase article: http://knowledgebase.ocrsdk.com/article/650

  • Liked by
  • hakanaktan
hakanaktan posted this 15 December 2016

Thank you so much. We solved the problem by second knowledge base link that you write.