|
Rank: Advanced Member
Groups: Registered
Joined: 9/1/2010 Posts: 136
|
I am using Keyoti Search for ASP.NET 2010 and a VB.NET program to generate my index. Looping through the records in my SQL Server table, I use the following statement to insert data for a record in the index:
ProdIndex.AddDocument(New Documents.PreloadedDocument(New Uri(NavigateUrl), TitleStr, TextStr, SummaryStr, Nothing, Nothing, CustomData, ProdConfig))
For the record that is causing an error, the values are:
NavigateUrl = "http://mydomain.com/gospel-tract-pecado/pd7451" TitleStr = "Pecado" TextStr = "Pecado" SummaryStr = "Pecado" CustomData = ""
I am getting the following KeyotiFatalException: "Specified argument was out of the range of valid values. Parameter name: index."
I don't know what it's objecting to or how to debug it. Thanks for your help!
|
|
Rank: Advanced Member
Groups: Administrators, Registered
Joined: 8/13/2004 Posts: 2,669 Location: Canada
|
Can you post more of the stack trace please? -your feedback is helpful to other users, thank you!-your feedback is helpful to other users, thank you!
|
|
Rank: Advanced Member
Groups: Registered
Joined: 9/1/2010 Posts: 136
|
Hopefully this is what you're looking for:
Keyoti.SearchEngine.KeyotiFatalException was unhandled CausedByThresholdDBPassed=False CausedByThresholdReaderPassed=False HResult=-2146232832 Message=A fatal exception has prevented the search engine from continuing. The exception message was: Specified argument was out of the range of valid values. Parameter name: index Source=Keyoti4.SearchEngine.Core StackTrace: at Keyoti.SearchEngine.Index.DocumentIndex.a(Document A_0, a A_1) at Falcon.SiteBuilder.SbProducts.GenerateKeyotiIndex() in C:\MacyApps\Falcon Software\SiteBuilder\Products\SbProducts.vb:line 116 at Falcon.SiteBuilder.SbMainForm.mnuProdGenKeyotiIndex_Click(Object sender, EventArgs e) in C:\MacyApps\Falcon Software\SiteBuilder\Forms\SbMainForm.vb:line 3047 at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e) at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e) at System.Windows.Forms.ToolStripMenuItem.ProcessCmdKey(Message& m, Keys keyData) at System.Windows.Forms.ToolStripManager.ProcessShortcut(Message& m, Keys shortcut) at System.Windows.Forms.Form.ProcessCmdKey(Message& msg, Keys keyData) at System.Windows.Forms.Control.PreProcessMessage(Message& msg) at System.Windows.Forms.Control.PreProcessControlMessageInternal(Control target, Message& msg) at System.Windows.Forms.Application.ThreadContext.PreTranslateMessage(MSG& msg) at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData) at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context) at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context) at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun() at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel() at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[] commandLine) at Falcon.SiteBuilder.My.MyApplication.Main(String[] Args) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 81 at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args) at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly() at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart() InnerException: System.ArgumentOutOfRangeException HResult=-2146233086 Message=Specified argument was out of the range of valid values. Parameter name: index ParamName=index Source=mscorlib StackTrace: at System.Char.IsLetterOrDigit(String s, Int32 index) at Keyoti.SearchEngine.Documents.g.a() at Keyoti.SearchEngine.Documents.Parser.ParseWords(String rawBody, ArrayList allIgnoreRegions, WordCollection readDocumentWords, StringBuilder description, ArrayList wordsInUri) at Keyoti.SearchEngine.Documents.TxtDocumentParser.ReadText(String rawBody, Uri uri) at Keyoti.SearchEngine.Documents.PreloadedDocument.ReadText() at Keyoti.SearchEngine.Index.o.a(Document A_0, a A_1, Boolean A_2) at Keyoti.SearchEngine.Index.o.a(Document A_0, Boolean A_1, a A_2, Boolean A_3) at Keyoti.SearchEngine.Index.DocumentIndex.a(Document A_0, a A_1) InnerException:
Sincerely, Dan
|
|
Rank: Advanced Member
Groups: Administrators, Registered
Joined: 8/13/2004 Posts: 2,669 Location: Canada
|
Dan, thank you. Seems this bug was fixed in v2012. I can apply it back to 2010 and give you new DLLs. Will post shortly. Jim -your feedback is helpful to other users, thank you!-your feedback is helpful to other users, thank you!
|
|
Rank: Advanced Member
Groups: Administrators, Registered
Joined: 8/13/2004 Posts: 2,669 Location: Canada
|
Here's the patched build. https://www.dropbox.com/...ument-TitleFix.zip?dl=0
I cannot give you an MSI for 2010 which means that, you should be careful that this newer version is referenced in your project and not the version in the GAC. Hope it resolves everything. Jim -your feedback is helpful to other users, thank you!-your feedback is helpful to other users, thank you!
|
|
Rank: Advanced Member
Groups: Registered
Joined: 9/1/2010 Posts: 136
|
In another post, it sounds like I should upgrade to the 2012 version. Should I do that rather than try this patch for the 2010 version?
|
|
Rank: Advanced Member
Groups: Administrators, Registered
Joined: 8/13/2004 Posts: 2,669 Location: Canada
|
I would upgrade, 2012 is much better. http://keyoti.com/produc...gradelicensing_Pro.html
Jim -your feedback is helpful to other users, thank you!-your feedback is helpful to other users, thank you!
|
|
Rank: Advanced Member
Groups: Registered
Joined: 9/1/2010 Posts: 136
|
Jim,
I have upgraded to the 2012 version and it is working well. Several of the problems I wrote about earlier have been resolved. I am able to test the results of my program that generates an index from our SQL DB, and the results look good.
When I try to test our website on my localhost, it tells me that I need a valid key. I have tried to get it from the activation key and link provided in my purchase email, but whenever I click on "Copy to Clipboard," it doesn't do anything. Any suggestions? Thanks!
Dan
|
|
Rank: Advanced Member
Groups: Administrators, Registered
Joined: 8/13/2004 Posts: 2,669 Location: Canada
|
Sorry the copy to clipboard is browser sensitive, just do an old fashioned drag and ctrl-c to copy it. -your feedback is helpful to other users, thank you!-your feedback is helpful to other users, thank you!
|
|
Rank: Advanced Member
Groups: Registered
Joined: 9/1/2010 Posts: 136
|
|
|