Zkemkeeper.dll not working after deploying, Class

2020-02-13 06:42发布

I am trying to integrate to ZKTeco bio-metric device with my web application. It's working absolutely fine but when I deploy application and try to connect with bio-metric device I get the following error:

Retrieving the COM class factory for component with CLSID {00853A19-BD51-419B-9269-2DABE57EB61F} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).

I am following this tutorial.

I tried following solutions:

  1. I changed the reference of my dll to copy to local.
  2. I changed the targeted CPU before deploying.

But both the solutions didn't work. What could be possible solution?

1条回答
迷人小祖宗
2楼-- · 2020-02-13 07:06

You must register zkemkeeper in every computer that will use your program, not just in the development environment.

To register the zkemkeeper dll in both development and deployment computers, follow the steps provided in the solution of this post: Error when inserting finger print data into database table. When registering in deployment computers, avoid the steps related with the Visual Studio.

You should also take a look to this document, it provides useful information to understand how zkemkeeper works: COM Class Objects and CLSIDs.

Best regards.

查看更多
登录 后发表回答