Link to home
Start Free TrialLog in
Avatar of ZuZuPetals
ZuZuPetalsFlag for United States of America

asked on

ASP.Net: Session Object: Item has already been added. Key in dictionary: 'MyKey' Key being added: 'MyKey'

This is bizarre.

I've been doing ASP for over 10 years and I've never seen this before.   The below line of code is failing.  Why?  I've re-assigned values to collection keys dozens of times.  Why would this start complaining now?

The error message:

 Item has already been added. Key in dictionary: 'MyKey' Key being added: 'MyKey'
Session["MyKey"] = "some string"

Open in new window

SOLUTION
Avatar of sunithnair
sunithnair

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial