A Programmer's Dream

SmartCards & .NET

Posted by Stephen Wrighton on 28 Mar 2007

This is insane.

My project at work has the requirement of talking to a SmartCard reader, and our hardware partner on this project had developed libraries to do just that - one for Linux and one for Windows. Good deal, huh?

Well, after learning enough C++.Net to get these C Libraries to actually talk to .Net in an efficient fashion, I went to use the first function and managed to get a NULL Reference Exception. Yippie.

And of course the libraries weren't compiled in DEBUG mode, so all I know is that there's this exception coming out of the library. Fast Forward two days and we're attempting to recompile the libraries in DEBUG mode in the vain hope that we can pinpoint where this error is coming from.

And while one of our programmers more familiar with C and MAKEFILES has been working on that, I've been looking at other options for getting information to and from the SmartCards.

Why, oh why, did Microsoft leave the ability to interact with PC/SC compliant devices out of the .NET Framework? It was a seriously gross oversight on their part, and one that I sincerely hope they correct in the near future.

Oh well, back to trying to get the SmartCards read.

Tweet me @kidananubix if you like this post.

Tweet