Zkteco Event Listener Not Working in ASP.NET Web Services ProjectASP.NET Web Site or ASP.NET Web Application?WCF vs ASP.NET Web APIHow to secure an ASP.NET Web APIMultiple dropdowns from different databases on a single view in asp.net mvc4Asp.Net 5 IdentityRole CreateAsync not worksI cannot create any web project in Visual Studio 2015JQuery AJAX throws no error but doesn't work as wellAn unhandled exception of type 'System.TypeInitializationException' occurred in RTEvents.exec# AsyncSocket Server need locking?Error : There is already an open DataReader associated with this Command which must be closed first

Is "cool" appropriate or offensive to use in IMs?

Is real public IP Address hidden when using a system wide proxy in Windows 10?

Binary Search in C++17

Plot twist where the antagonist wins

My employer faked my resume to acquire projects

Is the Starlink array really visible from Earth?

When and what was the first 3D acceleration device ever released?

How to use " shadow " in pstricks?

What does the view outside my ship traveling at light speed look like?

Would jet fuel for an F-16 or F-35 be producible during WW2?

If a person had control of every single cell of their body, would they be able to transform into another creature?

Where's this lookout in Nova Scotia?

Is the field of q-series 'dead'?

Does Nitrogen inside commercial airliner wheels prevent blowouts on touchdown?

Statue View: 2, 3, 5, 7

NIntegrate doesn't evaluate

Why did David Cameron offer a referendum on the European Union?

Why do Windows registry hives appear empty?

Why does the 6502 have the BIT instruction?

Compactness of finite sets

Why colon to denote that a value belongs to a type?

How to pull out the underlying query syntax being used by dataset?

A steel cutting sword?

Why doesn't the Earth accelerate towards the Moon?



Zkteco Event Listener Not Working in ASP.NET Web Services Project


ASP.NET Web Site or ASP.NET Web Application?WCF vs ASP.NET Web APIHow to secure an ASP.NET Web APIMultiple dropdowns from different databases on a single view in asp.net mvc4Asp.Net 5 IdentityRole CreateAsync not worksI cannot create any web project in Visual Studio 2015JQuery AJAX throws no error but doesn't work as wellAn unhandled exception of type 'System.TypeInitializationException' occurred in RTEvents.exec# AsyncSocket Server need locking?Error : There is already an open DataReader associated with this Command which must be closed first






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








1















we are planning to develop ASP.Net webservices for methods provided in Zkteco SDK.



One of the web-service is to Connect to the device. After invoking "Connect_Net(string IPAdd, int Port)" method, the connection is successful, also in the method, we register few events such as below:-



public bool Connect_Net(string IPAdd, int Port)

if (objCZKEM.Connect_Net(IPAdd, Port))

//65535, 32767
if (objCZKEM.RegEvent(1, 32767))

// [ Register your events here ]
// [ Go through the _IZKEMEvents_Event class for a complete list of events
objCZKEM.OnConnected += ObjCZKEM_OnConnected;
objCZKEM.OnDisConnected += objCZKEM_OnDisConnected;
//objCZKEM.OnEnrollFinger += ObjCZKEM_OnEnrollFinger;
objCZKEM.OnEnrollFingerEx += new _IZKEMEvents_OnEnrollFingerExEventHandler(ObjCZKEM_OnEnrollFingerEx);
objCZKEM.OnNewUser += ObjCZKEM_OnNewUser;
objCZKEM.OnFinger += ObjCZKEM_OnFinger;
//this.objCZKEM.OnVerify += new zkemkeeper._IZKEMEvents_OnVerifyEventHandler(ObjCZKEM_OnVerify);
objCZKEM.OnAttTransactionEx += new _IZKEMEvents_OnAttTransactionExEventHandler(zkemClient_OnAttTransactionEx);

return true;

return false;



But after connection, those events (OnEnrollFinger, On Clock-In etc..) are not getting invoked in ASP.NET Webservices.



Similar listeners work fine in a windows form application.



Can you please advice on how to resolve this?, should the above events be registered in a background thread?, if yes then how to do so?.



Thanks










share|improve this question




























    1















    we are planning to develop ASP.Net webservices for methods provided in Zkteco SDK.



    One of the web-service is to Connect to the device. After invoking "Connect_Net(string IPAdd, int Port)" method, the connection is successful, also in the method, we register few events such as below:-



    public bool Connect_Net(string IPAdd, int Port)

    if (objCZKEM.Connect_Net(IPAdd, Port))

    //65535, 32767
    if (objCZKEM.RegEvent(1, 32767))

    // [ Register your events here ]
    // [ Go through the _IZKEMEvents_Event class for a complete list of events
    objCZKEM.OnConnected += ObjCZKEM_OnConnected;
    objCZKEM.OnDisConnected += objCZKEM_OnDisConnected;
    //objCZKEM.OnEnrollFinger += ObjCZKEM_OnEnrollFinger;
    objCZKEM.OnEnrollFingerEx += new _IZKEMEvents_OnEnrollFingerExEventHandler(ObjCZKEM_OnEnrollFingerEx);
    objCZKEM.OnNewUser += ObjCZKEM_OnNewUser;
    objCZKEM.OnFinger += ObjCZKEM_OnFinger;
    //this.objCZKEM.OnVerify += new zkemkeeper._IZKEMEvents_OnVerifyEventHandler(ObjCZKEM_OnVerify);
    objCZKEM.OnAttTransactionEx += new _IZKEMEvents_OnAttTransactionExEventHandler(zkemClient_OnAttTransactionEx);

    return true;

    return false;



    But after connection, those events (OnEnrollFinger, On Clock-In etc..) are not getting invoked in ASP.NET Webservices.



    Similar listeners work fine in a windows form application.



    Can you please advice on how to resolve this?, should the above events be registered in a background thread?, if yes then how to do so?.



    Thanks










    share|improve this question
























      1












      1








      1








      we are planning to develop ASP.Net webservices for methods provided in Zkteco SDK.



      One of the web-service is to Connect to the device. After invoking "Connect_Net(string IPAdd, int Port)" method, the connection is successful, also in the method, we register few events such as below:-



      public bool Connect_Net(string IPAdd, int Port)

      if (objCZKEM.Connect_Net(IPAdd, Port))

      //65535, 32767
      if (objCZKEM.RegEvent(1, 32767))

      // [ Register your events here ]
      // [ Go through the _IZKEMEvents_Event class for a complete list of events
      objCZKEM.OnConnected += ObjCZKEM_OnConnected;
      objCZKEM.OnDisConnected += objCZKEM_OnDisConnected;
      //objCZKEM.OnEnrollFinger += ObjCZKEM_OnEnrollFinger;
      objCZKEM.OnEnrollFingerEx += new _IZKEMEvents_OnEnrollFingerExEventHandler(ObjCZKEM_OnEnrollFingerEx);
      objCZKEM.OnNewUser += ObjCZKEM_OnNewUser;
      objCZKEM.OnFinger += ObjCZKEM_OnFinger;
      //this.objCZKEM.OnVerify += new zkemkeeper._IZKEMEvents_OnVerifyEventHandler(ObjCZKEM_OnVerify);
      objCZKEM.OnAttTransactionEx += new _IZKEMEvents_OnAttTransactionExEventHandler(zkemClient_OnAttTransactionEx);

      return true;

      return false;



      But after connection, those events (OnEnrollFinger, On Clock-In etc..) are not getting invoked in ASP.NET Webservices.



      Similar listeners work fine in a windows form application.



      Can you please advice on how to resolve this?, should the above events be registered in a background thread?, if yes then how to do so?.



      Thanks










      share|improve this question














      we are planning to develop ASP.Net webservices for methods provided in Zkteco SDK.



      One of the web-service is to Connect to the device. After invoking "Connect_Net(string IPAdd, int Port)" method, the connection is successful, also in the method, we register few events such as below:-



      public bool Connect_Net(string IPAdd, int Port)

      if (objCZKEM.Connect_Net(IPAdd, Port))

      //65535, 32767
      if (objCZKEM.RegEvent(1, 32767))

      // [ Register your events here ]
      // [ Go through the _IZKEMEvents_Event class for a complete list of events
      objCZKEM.OnConnected += ObjCZKEM_OnConnected;
      objCZKEM.OnDisConnected += objCZKEM_OnDisConnected;
      //objCZKEM.OnEnrollFinger += ObjCZKEM_OnEnrollFinger;
      objCZKEM.OnEnrollFingerEx += new _IZKEMEvents_OnEnrollFingerExEventHandler(ObjCZKEM_OnEnrollFingerEx);
      objCZKEM.OnNewUser += ObjCZKEM_OnNewUser;
      objCZKEM.OnFinger += ObjCZKEM_OnFinger;
      //this.objCZKEM.OnVerify += new zkemkeeper._IZKEMEvents_OnVerifyEventHandler(ObjCZKEM_OnVerify);
      objCZKEM.OnAttTransactionEx += new _IZKEMEvents_OnAttTransactionExEventHandler(zkemClient_OnAttTransactionEx);

      return true;

      return false;



      But after connection, those events (OnEnrollFinger, On Clock-In etc..) are not getting invoked in ASP.NET Webservices.



      Similar listeners work fine in a windows form application.



      Can you please advice on how to resolve this?, should the above events be registered in a background thread?, if yes then how to do so?.



      Thanks







      c# asp.net zkteco






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 24 at 5:58









      user3875039user3875039

      245




      245






















          1 Answer
          1






          active

          oldest

          votes


















          1














          In my case, I did it in windows forms application and then pass data to the web API






          share|improve this answer























          • Thank you, but how do i develop a seamless solution, where get-data and listeners work properly?

            – user3875039
            Mar 30 at 10:28











          • I would suggest you separate the listeners - using windows form/service, to pass real-time data to web api/service. And use web service to expose data to other applications

            – rjs123431
            Apr 1 at 7:35











          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55321126%2fzkteco-event-listener-not-working-in-asp-net-web-services-project%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          1














          In my case, I did it in windows forms application and then pass data to the web API






          share|improve this answer























          • Thank you, but how do i develop a seamless solution, where get-data and listeners work properly?

            – user3875039
            Mar 30 at 10:28











          • I would suggest you separate the listeners - using windows form/service, to pass real-time data to web api/service. And use web service to expose data to other applications

            – rjs123431
            Apr 1 at 7:35















          1














          In my case, I did it in windows forms application and then pass data to the web API






          share|improve this answer























          • Thank you, but how do i develop a seamless solution, where get-data and listeners work properly?

            – user3875039
            Mar 30 at 10:28











          • I would suggest you separate the listeners - using windows form/service, to pass real-time data to web api/service. And use web service to expose data to other applications

            – rjs123431
            Apr 1 at 7:35













          1












          1








          1







          In my case, I did it in windows forms application and then pass data to the web API






          share|improve this answer













          In my case, I did it in windows forms application and then pass data to the web API







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Mar 26 at 9:59









          rjs123431rjs123431

          466




          466












          • Thank you, but how do i develop a seamless solution, where get-data and listeners work properly?

            – user3875039
            Mar 30 at 10:28











          • I would suggest you separate the listeners - using windows form/service, to pass real-time data to web api/service. And use web service to expose data to other applications

            – rjs123431
            Apr 1 at 7:35

















          • Thank you, but how do i develop a seamless solution, where get-data and listeners work properly?

            – user3875039
            Mar 30 at 10:28











          • I would suggest you separate the listeners - using windows form/service, to pass real-time data to web api/service. And use web service to expose data to other applications

            – rjs123431
            Apr 1 at 7:35
















          Thank you, but how do i develop a seamless solution, where get-data and listeners work properly?

          – user3875039
          Mar 30 at 10:28





          Thank you, but how do i develop a seamless solution, where get-data and listeners work properly?

          – user3875039
          Mar 30 at 10:28













          I would suggest you separate the listeners - using windows form/service, to pass real-time data to web api/service. And use web service to expose data to other applications

          – rjs123431
          Apr 1 at 7:35





          I would suggest you separate the listeners - using windows form/service, to pass real-time data to web api/service. And use web service to expose data to other applications

          – rjs123431
          Apr 1 at 7:35



















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55321126%2fzkteco-event-listener-not-working-in-asp-net-web-services-project%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

          SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

          은진 송씨 목차 역사 본관 분파 인물 조선 왕실과의 인척 관계 집성촌 항렬자 인구 같이 보기 각주 둘러보기 메뉴은진 송씨세종실록 149권, 지리지 충청도 공주목 은진현