0

I have a ACR1281 reader. I'm trying to load authentication keys on the reader without a card.

When I write:

var isoReader = new IsoReader(
    context, readerName, SCardShareMode.Shared, SCardProtocol.Any, false)

it returns me a "Removed Card" error.

But if I use SCardShareMode.Direct, I can't transmit apdu-commands to load authentication keys.

Can I work with the reader without a card? Which mode and protocol do I need?

Michael
  • 8,362
  • 6
  • 61
  • 88
alnot
  • 1
  • You are not the only one experiencing this issue. For me it seems like a bug in the windows PC/SC implementation since in the Linux PCSCLite implementation it works. – arminb May 09 '17 at 14:14

1 Answers1

0

As proposed in this question, try to set SCARD_PROTOCOL_UNDEFINED as protocol parameter. So inside the smartcard framework you are using there should be something like SCardProtocol.Undefined.

Community
  • 1
  • 1
arminb
  • 2,036
  • 3
  • 24
  • 43