I have been at this for a couple of days now. I am trying to access the methods inside the zkemkeeper.dll. My web app is running on the .net core 2 framework. When I create an instance of the CZKEMClass or access any of its methods I receive the following'FileNotFoundException: Could not load file or assembly 'Interop.zkemkeeper, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.'
Apr 17, 2013 - How to Register and Unregister a DLL or ActiveX controls using Regsvr32.exe. Regsvr32.exe is a program that you can use to register.
I tried recreating this scenario in a .net core 1 web app. At first it gave the same error message, however changing the project build target to x86 and changing the runtimeidentifier in the csproj loaded the dll methods successfully.
Back in the .net core 2 web app I tried to do the same, however I still get the same error message. I have tried creating a .net standard library and adding it to the solution, same result.
I am out of ideas on how to get this dll to work. :(
![Interop.zkemkeeper Net Core Interop.zkemkeeper Net Core](https://i.stack.imgur.com/WluyX.jpg)
Regards,
1 Answer
The issue you are experiencing is due to the fact that zkemkeeper is not compatible with .Net core
To resolve this you will need to create a .Net standard project and reference that project in your .Net core project.
I have created a github repo for reference: