ASP.NET Error :Invalid value for 'encryptedTicket' parameter.

Dear EE Members,

         We developed Application in C#, in which we are validating the User group through LDAP:<DominName> by checking if the group is available in out list then proceed to site.

For some users, when we are validating authentication cookies we are getting the error Invalid value for 'encryptedTicket' parameter

Below is the line for the reference where we are getting this error.

 authTicket = FormsAuthentication.Decrypt(authCookie.Value);

We tried  with different PCs and clear cookies still no luck.

Who is Participating?
mivbinfotechConnect With a Mentor Author Commented:
The cookie being passed was way too big and the URL was going bigger than 4096 chars, so we reduced the string, and its fine now

possible causes:

a null value is passed to decrypt, or
the cookie is getting corrupted

check the cookie value for null, or rename your cookie

hope this helps
Easwaran ParamasivamCommented:
Check the Value assigned code for the Cookie. Whether it is set correctly?

Check what value is in authCookie.Value by debugging the application.

Check whether cookies are enabled in Browser settings and Cookie values are stored correctly.

mivbinfotechAuthor Commented:
Issue Solved
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.