Hello i am a new IT student i just start with c# and Active Directory and i made a Web Application on it but i am not able to connect it with my Active Directory , i will be glad if anyone helpd me throw it
Thanks
Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Nilesh ShahRank #42 · 34.2K reputationPosted May 1, 2017, 6:28 AM EDT
I T9 reputationPosted May 2, 2017, 12:55 AM EDT
This is my code :
Cookie Path: " + ticket.CookiePath);
Ticket Expiration: " +
Expired: " + ticket.Expired.ToString());
Persistent: " + ticket.IsPersistent.ToString());
IssueDate: " + ticket.IssueDate.ToString());
UserData: " + ticket.UserData);
Version: " + ticket.Version.ToString());
The Application uses Form Authentication at the moment.
Nilesh ShahRank #42 · 34.2K reputationPosted May 2, 2017, 6:19 AM EDT
"Unable to cast object of type 'System.Security.Principal.GenericIdentity' to type 'System.Web.Security.FormsIdentity'. ".
However, once authenticated, the cast is valid. Hope that helps.