MRTD.NET icon indicating copy to clipboard operation
MRTD.NET copied to clipboard

Sequence contains no elements Exception

Open akeilox opened this issue 6 years ago • 2 comments

This is a gem, very hard to find MRTD on .NET.

So I am giving this a try with DemoApp, I have updated the MRZ data correctly and Card ATR is fetching and starts reading past EF.COM; 0 - 5 .. .. 13110 - 230 13340 - 0

Till it reaches 13340 - 0 and throws Sequence contains no elements exception at line 22 of ExtractedDO99.cs

for line return parsetBerTLV.Data.Where(tlv => tlv.T == "99").First().Bytes();

Any idea what might be the issue ? I can use the same MRZ info successfully with same reader under PCSC dumpmrtd.js script so I know passport and reader is ok as well as MRZ data; dob, expiry, docNo.

akeilox avatar May 08 '19 12:05 akeilox

@akeilox thank you for feedback

At this time I have no idea what might be the issue. You can see this document and try to debug code

Page: 49 Unprotected response APDU

About BerTLV see this ISO 7816 standard Part-4, Section 5-6

giokoguashvili avatar Jul 12 '19 18:07 giokoguashvili

@kogoia Thank you for the pointers, appreciate taking the time to give specific references. Its a bit above my head but I'll try to read through.

akeilox avatar Jul 13 '19 06:07 akeilox