Solved

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

Posted on 2011-09-27
4
1,817 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
Issue Solved
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
This video discusses moving either the default database or any database to a new volume.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

762 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

9 Experts available now in Live!

Get 1:1 Help Now