Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. can't connect to finger print scanning device from windows server 2003

can't connect to finger print scanning device from windows server 2003

Scheduled Pinned Locked Moved Visual Basic
csharpvisual-studiocomsysadminwindows-admin
3 Posts 2 Posters 2 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Meax
    wrote on last edited by
    #1

    i am using a windows application to connect to a finger print scanning device.

    at the moment i can connect to machine and download all the logs. (using this DLL Interop.zkemkeeper.dll)

    from my PC, windows 7 32bit it is working but when i installed the application on windows server 2003
    32bit i am not able to connect to reader.

    i installed visual studio 2010 on server and tried to build the Application on the server to make sure no reference were missing.

    but still i can not connect to the reader.

    my question is why it connects and can even downloads all the logs from my pc but it doesnt work on server (windows server 2003 32bit)

    reader IP 192.168.0.1 port: 4370.

    Public axCZKEM1 As New zkemkeeper.CZKEM

    code to connect to reader:
    private sub ConnectToReader()
    If txtIP.Text.Trim() = "" Or txtPort.Text.Trim() = "" Then
    MsgBox("IP and Port cannot be null", MsgBoxStyle.Exclamation, "Error")
    Return
    End If
    Dim idwErrorCode As Integer
    Cursor = Cursors.WaitCursor
    If btnConnect.Text = "Disconnect" Then
    AxCZKEM1.Disconnect()
    bIsConnected = False
    btnConnect.Text = "Connect"
    lblState.Text = "Current State:Disconnected"
    Cursor = Cursors.Default
    Return
    End If

        bIsConnected = AxCZKEM1.Connect\_Net(txtIP.Text.Trim(), Convert.ToInt32(txtPort.Text.Trim()))
        If bIsConnected = True Then
            btnConnect.Text = "Disconnect"
            btnConnect.Refresh()
            lblState.Text = "Current State:Connected"
            iMachineNumber = 1
            axCZKEM1.RegEvent(iMachineNumber, 65535)
        Else
            AxCZKEM1.GetLastError(idwErrorCode)
            MsgBox("Unable to connect the device,ErrorCode=" & idwErrorCode, MsgBoxStyle.Exclamation, "Error")
        End If
        Cursor = Cursors.Default
    

    End Sub

    Richard DeemingR 1 Reply Last reply
    0
    • M Meax

      i am using a windows application to connect to a finger print scanning device.

      at the moment i can connect to machine and download all the logs. (using this DLL Interop.zkemkeeper.dll)

      from my PC, windows 7 32bit it is working but when i installed the application on windows server 2003
      32bit i am not able to connect to reader.

      i installed visual studio 2010 on server and tried to build the Application on the server to make sure no reference were missing.

      but still i can not connect to the reader.

      my question is why it connects and can even downloads all the logs from my pc but it doesnt work on server (windows server 2003 32bit)

      reader IP 192.168.0.1 port: 4370.

      Public axCZKEM1 As New zkemkeeper.CZKEM

      code to connect to reader:
      private sub ConnectToReader()
      If txtIP.Text.Trim() = "" Or txtPort.Text.Trim() = "" Then
      MsgBox("IP and Port cannot be null", MsgBoxStyle.Exclamation, "Error")
      Return
      End If
      Dim idwErrorCode As Integer
      Cursor = Cursors.WaitCursor
      If btnConnect.Text = "Disconnect" Then
      AxCZKEM1.Disconnect()
      bIsConnected = False
      btnConnect.Text = "Connect"
      lblState.Text = "Current State:Disconnected"
      Cursor = Cursors.Default
      Return
      End If

          bIsConnected = AxCZKEM1.Connect\_Net(txtIP.Text.Trim(), Convert.ToInt32(txtPort.Text.Trim()))
          If bIsConnected = True Then
              btnConnect.Text = "Disconnect"
              btnConnect.Refresh()
              lblState.Text = "Current State:Connected"
              iMachineNumber = 1
              axCZKEM1.RegEvent(iMachineNumber, 65535)
          Else
              AxCZKEM1.GetLastError(idwErrorCode)
              MsgBox("Unable to connect the device,ErrorCode=" & idwErrorCode, MsgBoxStyle.Exclamation, "Error")
          End If
          Cursor = Cursors.Default
      

      End Sub

      Richard DeemingR Offline
      Richard DeemingR Offline
      Richard Deeming
      wrote on last edited by
      #2

      Make sure you've registered the SDK on the 2003 server. Copy all of the SDK files to the %windir%\system32 folder, and then run:

      regsvr32.exe %windir%\system32\zkemkeeper.dll

      If that doesn't fix it, then you're going to need to tell us what errors you're getting.


      "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

      "These people looked deep within my soul and assigned me a number based on the order in which I joined" - Homer

      M 1 Reply Last reply
      0
      • Richard DeemingR Richard Deeming

        Make sure you've registered the SDK on the 2003 server. Copy all of the SDK files to the %windir%\system32 folder, and then run:

        regsvr32.exe %windir%\system32\zkemkeeper.dll

        If that doesn't fix it, then you're going to need to tell us what errors you're getting.


        "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

        M Offline
        M Offline
        Meax
        wrote on last edited by
        #3

        Thank you. I copied the dll I was referring to but it didn’t work. Then I copied all the dll (5 or 6 files I think). Once I copied all those dlls now it is working.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups