Here is the description of the problem were are stuck with in our smartcard implementation with CardSpace:
- We try to authenticate on a relying party website supporting our homemade managed InfoCard supporting smartcard authentication
- We select our InfoCard in CardSpace. CardSpace prompts to enter the smartcard. We enter the smartcard, and press OK
- CardSpace interacts with the smartcard middleware to enter the PIN code that is protecting the certificates on the smartcard. We enter the PIN code, and press OK
- CardSpace prompts us an “Internal CardSpace error”
Below some screenshots of the situation:



Below are the 2 error records dumped by Window CardSpace in the Windows logs:
An error occurred when communicating with the Windows CardSpace service. Exception of type ‘Microsoft.InfoCards.CommunicationException’ was thrown.
Inner Exception: Not implemented
Additional Information:
Microsoft.InfoCards.CommunicationException: Exception of type ‘Microsoft.InfoCards.CommunicationException’ was thrown. —> System.ComponentModel.Win32Exception: Not implemented
at Microsoft.InfoCards.NativeMcppMethods.RpcCryptoDispatchRequest(IntPtr hIdl, String contextKey, String requestName, Byte[] buffer, Int32 index, Int32 length)
at Microsoft.InfoCards.RpcCryptoRequest.Process()
— End of inner exception stack trace —
An error occurred when communicating with the Windows CardSpace service. Exception of type ‘Microsoft.InfoCards.CommunicationException’ was thrown.
Inner Exception: Bad UID
Additional Information:
Microsoft.InfoCards.CommunicationException: Exception of type ‘Microsoft.InfoCards.CommunicationException’ was thrown. —> System.ComponentModel.Win32Exception: Bad UID
at Microsoft.InfoCards.NativeMcppMethods.RpcCryptoDispatchRequest(IntPtr hIdl, String contextKey, String requestName, Byte[] buffer, Int32 index, Int32 length)
at Microsoft.InfoCards.RpcCryptoRequest.Process()
— End of inner exception stack trace —
The communication between the relying party and the STS intercepted by a HTTP proxy:
http://www.voipsec.eu/troubleshooting/mex_comm3.xml