Live ID Authentication

May 5, 2010 at 5:49 AM

First of all I want to thank you for the very useful project you have done.

I'm developing a desktop application which retrieves contact from hotmail account.

To authenticate I use the following code from MSDN

oIDMgr = IdentityManager.CreateInstance("Tailspin Toys;;Tailspin Toys Application", "Windows Live ID Client Sample"); 


 oID = oIDMgr.CreateIdentity();


After supplying my credentials at the opened authentication form I execute GetTicket method by the following way:

 string strTicket = oID.GetTicket("", "MBI", false);

which returns a ticket.

The problem is that supplied ticket is not applicable for use with contacts (it throws "(401) Unauthorized" exception) but the same time a ticket obtained from    works fine.

Does anybody know how to obtain correct ticket using GetTicket method?