Server Error in '/' Application.

Index was outside the bounds of the array.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.IndexOutOfRangeException: Index was outside the bounds of the array.

Source Error:


Line 695:           //  Response.Write(query.ToString());
Line 696:			Hits hits;
Line 697:	    	hits = searcher.Search(query,Tri);
Line 698:			
Line 699:			//Si le'internaute a fait une recherche fulltext mais qu'il n'y a pas de resultat alors

Source File: d:\Web321\V4_TEST\Occasion\Annonces-auto\Result.aspx.cs    Line: 697

Stack Trace:


[IndexOutOfRangeException: Index was outside the bounds of the array.]
   Lucene.Net.Search.AnonymousClassScoreDocComparator2.Compare(ScoreDoc i, ScoreDoc j) +65
   Lucene.Net.Search.FieldSortedHitQueue.LessThan(Object a, Object b) +151
   Lucene.Net.Util.PriorityQueue.UpHeap() +112
   Lucene.Net.Util.PriorityQueue.Insert(Object element) +36
   Lucene.Net.Search.FieldSortedHitQueue.Insert(FieldDoc fdoc) +28
   Lucene.Net.Search.AnonymousClassHitCollector1.Collect(Int32 doc, Single score) +751
   Lucene.Net.Search.BooleanScorer2.Score(HitCollector hc) +102
   Lucene.Net.Search.IndexSearcher.Search(Weight weight, Filter filter, Int32 nDocs, Sort sort) +231
   Lucene.Net.Search.Hits.GetMoreDocs(Int32 min) +62
   Lucene.Net.Search.Hits..ctor(Searcher s, Query q, Filter f, Sort o) +121
   Lucene.Net.Search.Searcher.Search(Query query, Sort sort) +35
   recherche.SearchLucene() in d:\Web321\V4_TEST\Occasion\Annonces-auto\Result.aspx.cs:697
   recherche.Page_Load(Object sender, EventArgs e) in d:\Web321\V4_TEST\Occasion\Annonces-auto\Result.aspx.cs:117
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +15
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +34
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +47
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1061


Version Information: Microsoft .NET Framework Version:2.0.50727.832; ASP.NET Version:2.0.50727.832