Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sequence contains no elements Exception #2

Open
akeilox opened this issue May 8, 2019 · 2 comments
Open

Sequence contains no elements Exception #2

akeilox opened this issue May 8, 2019 · 2 comments

Comments

@akeilox
Copy link

akeilox commented May 8, 2019

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.

@giokoguashvili
Copy link
Owner

@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

@akeilox
Copy link
Author

akeilox commented Jul 13, 2019

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants