The entire problem is that when i enter something that does'nt exist in the member area in the search box, it's all going fine, but when i enter something that exist, i got this error. Can anyone help me??
I am using 4.7.1 .Every thing is working fine but the search box in memeber section (backend)is not working only for 1 member.And giving the error "key was not present in the dictionary"
I had something similar to this when I moved a site from dev to live. I had to recreate the Lucene indexes for Examine. To do this, go into App_Data/Temp/ExamineIndexs/ and delete the folders/files in there (take a backup first in case anything goes wrong). This will force Umbraco to recreate the indexes (it might take a minute or so depending on how much content is on the site) once files are back in the folder, you'll know the indexes have rebuilt. Once that's happened, try the search again and see if that works properly.
Thanks for the adivse Tim. It didn't work for me either but good information nonetheless. My issue with members more than likely due to that fact that I've implemented asp.net membership in lieu of umbraco members. Everything works great with the exception of the members tree which never drops down any nodes but only spins as if it's "working". other than that, members, groups searching and public access all work fine. I can live with it. I've also experimented with Blackpoint Member admin package with mixed results.
As I understand it, when the Umbraco app spins up, it refreshes the indexes. The indexes are also updated when site content or a member are saved/created (in this case, just the page being edited is being saved/updated).
The "Key not found in the Dictionary" error normally happens when you're searching on a field that's not there in the list of fields. Are you searching using the member searh in the members section, or is this a custom search that you've written? Is there any useful error information in your umbracoLog table?
Yes i am searching using the default member search in the members section.
Error msg in umbracco log is:
At /umbraco/dashboard.aspx?app=member (Referred by: http://168.246.168.41:84/umbraco/dashboard.aspx?app=member): System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary. at System.Collections.Generic.Dictionary`2.get_Item(TKey key) at umbraco.presentation.umbraco.members.MemberSearch.<ButtonSearch_Click>b__5(SearchResult x) at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext() at System.Web.UI.WebControls.Repeater.CreateControlHierarchy(Boolean useDataSource) at System.Web.UI.WebControls.Repeater.OnDataBinding(EventArgs e) at System.Web.UI.WebControls.Repeater.DataBind() at umbraco.presentation.umbraco.members.MemberSearch.ButtonSearch_Click(Object sender, EventArgs e) at System.Web.UI.WebControls.Button.OnClick(EventArgs e) at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
I am having exactly the same problem with 4.7.1 using the defaultMember Search control.
Not sure if it matters, but I am using the umbracoApprovePropertyTypeAlias to validate users' emails, tied to a boolean Member attribute called isApproved.
I just upgraded an old umbraco site up to 4.9, and now i'm getting this same error when trying to search for members using the default internal member search.
I receive this error:
[KeyNotFoundException: The given key was not present in the dictionary.] System.Collections.Generic.Dictionary`2.get_Item(TKey key) +12686831 Examine.SearchResult.get_Item(String key) +24
When i debug into it, the item throwing the error is the 'email' field, and when inspecting the search result sure enough it isn't included in the list of columns:
results = internalSearcher.Search(query, false).Select(x => new MemberSearchResult() { Id = x["id"], Name = x["nodeName"], Email = x["email"], LoginName = x["loginName"] });
I tried the suggestions of deleting the indexes, but that didn't work. I looked in the ExamineIndex.config file and email is listed there.
Any ideas why email isn't being picked up in the index?
Search is not working
My search control in the member section don't work, i receive this error
[KeyNotFoundException: The given key was not present in the dictionary.]
System.Collections.Generic.Dictionary`2.get_Item(TKey key) +9627953
umbraco.presentation.umbraco.members.MemberSearch.<ButtonSearch_Click>b__5(SearchResult x) +81
System.Linq.WhereSelectEnumerableIterator`2.MoveNext() +151
System.Web.UI.WebControls.Repeater.CreateControlHierarchy(Boolean useDataSource) +507
System.Web.UI.WebControls.Repeater.OnDataBinding(EventArgs e) +61
System.Web.UI.WebControls.Repeater.DataBind() +76
umbraco.presentation.umbraco.members.MemberSearch.ButtonSearch_Click(Object sender, EventArgs e) +525
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +118
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +112
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +5563
What's not working??
i'm running umbraco 4.7
The entire problem is that when i enter something that does'nt exist in the member area in the search box, it's all going fine, but when i enter something that exist, i got this error. Can anyone help me??
Same problem here..heard anything?
Same here - 4.7.1 - any fix for this?
Hi
I am using 4.7.1 .Every thing is working fine but the search box in memeber section (backend)is not working only for 1 member.And giving the error "key was not present in the dictionary"
tell me the reason and solution for this.
Thanks in advance.
Umbraco use Examine to do the search work, have a look at the Examine config files( in config folder) maybe help.
BTW, it works for me. Have your made any modification?
I had something similar to this when I moved a site from dev to live. I had to recreate the Lucene indexes for Examine. To do this, go into App_Data/Temp/ExamineIndexs/ and delete the folders/files in there (take a backup first in case anything goes wrong). This will force Umbraco to recreate the indexes (it might take a minute or so depending on how much content is on the site) once files are back in the folder, you'll know the indexes have rebuilt. Once that's happened, try the search again and see if that works properly.
Thanks for the rply i recreated the index .but its not working still..
suggest me some other way.
And i Have also checked my Examine cofig files .they are same.no modifications there.
Thanks for the adivse Tim. It didn't work for me either but good information nonetheless. My issue with members more than likely due to that fact that I've implemented asp.net membership in lieu of umbraco members. Everything works great with the exception of the members tree which never drops down any nodes but only spins as if it's "working". other than that, members, groups searching and public access all work fine. I can live with it. I've also experimented with Blackpoint Member admin package with mixed results.
Now as i starts the site ,i got "Requested Time out Expired" Error .
And also during publishing of the pages:(
Want to know the reason and Solution for this..
Have you check the HttpRuntime in the WebConfig, because in this child you have to set the time or download size, maybe it's because of this
Hope that help
Hi,
Can anyone tell me how the indexing is being done with lucene.net .dll.
Actuly i have every thing working but this member search is throwing error:"Key not found in the dictonary"
I tried everything but not getting any results.So want to know the root of the problem.
Thnks in advance
Priya
Hi @Priya,
As I understand it, when the Umbraco app spins up, it refreshes the indexes. The indexes are also updated when site content or a member are saved/created (in this case, just the page being edited is being saved/updated).
The "Key not found in the Dictionary" error normally happens when you're searching on a field that's not there in the list of fields. Are you searching using the member searh in the members section, or is this a custom search that you've written? Is there any useful error information in your umbracoLog table?
Tim,
Yes i am searching using the default member search in the members section.
Error msg in umbracco log is:
At /umbraco/dashboard.aspx?app=member (Referred by: http://168.246.168.41:84/umbraco/dashboard.aspx?app=member): System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary. at System.Collections.Generic.Dictionary`2.get_Item(TKey key) at umbraco.presentation.umbraco.members.MemberSearch.<ButtonSearch_Click>b__5(SearchResult x) at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext() at System.Web.UI.WebControls.Repeater.CreateControlHierarchy(Boolean useDataSource) at System.Web.UI.WebControls.Repeater.OnDataBinding(EventArgs e) at System.Web.UI.WebControls.Repeater.DataBind() at umbraco.presentation.umbraco.members.MemberSearch.ButtonSearch_Click(Object sender, EventArgs e) at System.Web.UI.WebControls.Button.OnClick(EventArgs e) at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
thanks guys it worked for me..
Priya, did you find a solution to this?
I am having exactly the same problem with 4.7.1 using the defaultMember Search control.
Not sure if it matters, but I am using the umbracoApprovePropertyTypeAlias to validate users' emails, tied to a boolean Member attribute called isApproved.
Any advice or ideas?
I just upgraded an old umbraco site up to 4.9, and now i'm getting this same error when trying to search for members using the default internal member search.
I receive this error:
[KeyNotFoundException: The given key was not present in the dictionary.] System.Collections.Generic.Dictionary`2.get_Item(TKey key) +12686831 Examine.SearchResult.get_Item(String key) +24
When i debug into it, the item throwing the error is the 'email' field, and when inspecting the search result sure enough it isn't included in the list of columns:
results = internalSearcher.Search(query, false).Select(x => new MemberSearchResult()
{
Id = x["id"],
Name = x["nodeName"],
Email = x["email"],
LoginName = x["loginName"]
});
I tried the suggestions of deleting the indexes, but that didn't work. I looked in the ExamineIndex.config file and email is listed there.
Any ideas why email isn't being picked up in the index?
is working on a reply...