InfoCards Resource Kit Needs a Facelift
If you are crazy enough to try and check out InfoCards at this early date, you are probably looking at one of two sources:
2) Sample Code on : MSDN
Turns out that neither of these places will actually get you easily running code. The changes needed to get the MSDN samples running are smaller, but they require the fix I’ve described below, and they don’t use runtime bindings (compared to the res kit, which does). There are also a bunch of small fixes regarding casting and iterating through claims in a claimset. The res kit requires both fixes listed below, and a few other things.
I expect that very soon, a nice new shiny set of examples and sample code will come out – maybe even for the Feb 2006 CTP. Until then, however, drop me a comment here if you want working sample code, or an edited version of the Programmer’s guide if you are like me, and want to code the thing from scratch.
If you don’t feel like waiting for me to get back to you – here are a few hints to make life easier:
Modify any instance of “configurationName” in your app.config file to be “name”
If you are getting the following error:
The binding to use to communicate to the federation service at ‘http://schemas.microsoft.com/ws/2005/05/identity/issuer/self’ is not specified. If you are using Infocard please configure an Infocard client credentials for the channel proxy.
It probably means that you need to change a line like this:
ClientCredentials credentials = new ClientCredentials();
Into a line like this:
InfoCardClientCredentials credentials = new InfoCardClientCredentials();
Isn’t it amazing how something so small can cause so much pain?
This will save you a LOT of time. I promise…