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;
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
add a comment |
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
add a comment |
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
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
c# asp.net zkteco
asked Mar 24 at 5:58
user3875039user3875039
245
245
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
In my case, I did it in windows forms application and then pass data to the web API
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
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
In my case, I did it in windows forms application and then pass data to the web API
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
add a comment |
In my case, I did it in windows forms application and then pass data to the web API
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
add a comment |
In my case, I did it in windows forms application and then pass data to the web API
In my case, I did it in windows forms application and then pass data to the web API
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
add a comment |
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
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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