click on Settings tab it gives error "The given key was not present in the dictionary."

click on Settings tab it gives error "The given key was not present in the dictionary."

This question has suggested answer(s)

When i try to logged in with facebook and  insert all the data like birthday, location, city etc and data will inserted. but the problem is that when i clicked on settings tab it will throws an error "The given key was not present in the dictionary.".

i checked it on database it is because of birthday field in the user's profile. i don't know how it's done but i checked date format of birthday field from backend and it's perfect.

so please give some suggestion about this topic............

All Replies
  • Do you get a error in the Exceptions Report in the Control Panel, If so, can you post the entire error message with the stack trace?

  • System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.

    Stack Trace

    [KeyNotFoundException: The given key was not present in the dictionary.]

      System.ThrowHelper.ThrowKeyNotFoundException() +36

      System.Collections.Generic.Dictionary`2.get_Item(TKey key) +59

      Telligent.Common.Collections.ParsedEnumCollection`1.get_Item(String value, Boolean ignoreCase) +96

      CommunityServer.Components.Profile.get_Gender() +124

      CommunityServer.Controls.EditUserForm.DataBind() +3673

      CommunityServer.Controls.WrappedFormBase.OnLoad(EventArgs e) +233

      System.Web.UI.Control.LoadRecursive() +66

      System.Web.UI.Control.LoadRecursive() +191

      System.Web.UI.Control.LoadRecursive() +191

      System.Web.UI.Control.LoadRecursive() +191

      System.Web.UI.Control.LoadRecursive() +191

      System.Web.UI.Control.LoadRecursive() +191

      System.Web.UI.Control.LoadRecursive() +191

      System.Web.UI.Control.LoadRecursive() +191

      System.Web.UI.Control.LoadRecursive() +191

      System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2428

  • Which version of Evolution are you running?

    If this is < 6.x, do you have a "Gender" profile field in Control Panel > Administration > Membership Administration > User Profile Configuration > Fields?  If not,

    1. Go to Control Panel > Administration > Membership Administration > User Profile Configuration > Fields

    2. Click "Create New Field"

    3. Set the Name to "Gender", Label to "Gender", Searchable to "Yes", Type of Input to "Single Select", and add the following field choices: (a) Name: Male, Value: Male, (b) Name: Female, Value: Female.

    4. Click "Save"

    This should correct the issue of a missing "Gender" field.  This field is required, but could be deleted prior to Evolution 7.x.

  • i am using telligent 5.6

    Gender Field is available in the list

    and it is properly created as you said in your reply.

  • Are you able to edit the user through the control panel membership administration page?  Perhaps try removing the birthday there, and then accessing the Settings page to set it again.

  • yes you are right when i removed the birthday field it runs perfectly.

    but i want the birthday field so what should i want to do?