I'm having the same problem after I've just upgraded Examine to the latest version off codeplex. (Version 1.3 - Examine.dll assembly Version=0.1.3.2922)
It seems the root of the problem is in Examine.DictionaryExtensions.ReadFromDisk(this Dictionary d, FileInfo fi)
public static void ReadFromDisk(this Dictionary d, FileInfo fi)
{
d.Clear();
using (FileStream fileStream = new FileStream(fi.FullName, FileMode.Open))
{
using (StreamReader streamReader = new StreamReader(fileStream, DictionaryExtensions.DefaultFileEncoding))
{
XDocument xDocument = XDocument.Load(streamReader);
if (xDocument.Root != null)
{
foreach (XElement current in xDocument.Root.Elements())
{
d.Add((string)current.Attribute("key"), current.Nodes().OfType().Single().Value);
}
}
}
}
}
The call to Single<XCData>() doesn't have any elements so is throwing an exception
I'm rolling back to my previous version of Examine for now
I figured out the issue. When you upgrade Examine, you have to delete the Examine collections, folders and all. The format is just different enough that Examine is not smart enough to deal with it. Odd thing, is I thought I did that and things worked fine, then the next day, error. Deleted the collections and all is good.
Sequence contains no elements
What is this error? I started yesterday, went away and is back again today.
[InvalidOperationException: Sequence contains no elements]
System.Linq.Enumerable.Single(IEnumerable`1 source) +379
Examine.DictionaryExtensions.ReadFromDisk(Dictionary`2 d, FileInfo fi) +399
Examine.LuceneEngine.IndexerExecutive.GetLCK() +50
Examine.LuceneEngine.IndexerExecutive.TimestampLck() +103
Examine.LuceneEngine.IndexerExecutive.get_IsExecutiveMachine() +79
Examine.LuceneEngine.Providers.LuceneIndexer.SafelyProcessQueueItems() +23
Examine.LuceneEngine.Providers.LuceneIndexer.AddNodesToIndex(IEnumerable`1 nodes, String type) +520
Examine.LuceneEngine.Providers.LuceneIndexer.ReIndexNode(XElement node, String type) +188
Examine.ExamineManager._ReIndexNode(XElement node, String type, IEnumerable`1 providers) +93
UmbracoExamine.UmbracoEventManager.Document_AfterSave(Document sender, SaveEventArgs e) +373
umbraco.cms.businesslogic.web.SaveEventHandler.Invoke(Document sender, SaveEventArgs e) +0
umbraco.cms.businesslogic.web.Document.Save() +336
umbraco.cms.businesslogic.web.Document.MakeNew(String Name, DocumentType dct, User u, Int32 ParentId) +1480
umbraco.contentTasks.Save() +76
umbraco.presentation.create.dialogHandler_temp.Create(String NodeType, Int32 TypeId, Int32 NodeId, String Text) +755
umbraco.cms.presentation.create.controls.content.doCreation() +225
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +154
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3691
I'm having the same problem after I've just upgraded Examine to the latest version off codeplex. (Version 1.3 - Examine.dll assembly Version=0.1.3.2922)
It seems the root of the problem is in Examine.DictionaryExtensions.ReadFromDisk(this Dictionary d, FileInfo fi)
public static void ReadFromDisk(this Dictionary d, FileInfo fi) { d.Clear(); using (FileStream fileStream = new FileStream(fi.FullName, FileMode.Open)) { using (StreamReader streamReader = new StreamReader(fileStream, DictionaryExtensions.DefaultFileEncoding)) { XDocument xDocument = XDocument.Load(streamReader); if (xDocument.Root != null) { foreach (XElement current in xDocument.Root.Elements()) { d.Add((string)current.Attribute("key"), current.Nodes().OfType().Single().Value); } } } } }The call to Single<XCData>() doesn't have any elements so is throwing an exception
I'm rolling back to my previous version of Examine for now
I figured out the issue. When you upgrade Examine, you have to delete the Examine collections, folders and all. The format is just different enough that Examine is not smart enough to deal with it. Odd thing, is I thought I did that and things worked fine, then the next day, error. Deleted the collections and all is good.
/appdata/examineindexes/
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.