Solved

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

Posted on 2011-09-27
4
1,839 Views
Last Modified: 2012-05-12
Dear EE Members,

         We developed ASP.net 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.

Thanks
0
Comment
Question by:mivbinfotech
  • 2
4 Comments
 
LVL 9

Expert Comment

by:dexterrajesh
ID: 36708697
hi,

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
0
 
LVL 16

Expert Comment

by:Easwaran Paramasivam
ID: 36709072
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.


0
 
LVL 2

Accepted Solution

by:
mivbinfotech earned 0 total points
ID: 37249648
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
0
 
LVL 2

Author Closing Comment

by:mivbinfotech
ID: 37545665
Issue Solved
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
install app on other machine 13 32
Get id from json Data with NewtonSoft 3 34
About delegates in c sharp 3 33
SQL Exceptions 3 37
Extention Methods in C# 3.0 by Ivo Stoykov C# 3.0 offers extension methods. They allow extending existing classes without changing the class's source code or relying on inheritance. These are static methods invoked as instance method. This…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now