“/”应用程序中的服务器错误。

E:\hp1997\admin_hp1997_com\SwarchIndex\index\ not a directory

说明: 执行当前 Web 请求期间,出现未经处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。

异常详细信息: System.IO.IOException: E:\hp1997\admin_hp1997_com\SwarchIndex\index\ not a directory

源错误:


行 141:            watch.Stop();
行 142:            Hits myhit = null;
行 143:            Lucene.Net.Search.IndexSearcher mysea = new Lucene.Net.Search.IndexSearcher(INDEX_STORE_PATH);
行 144:            QueryParser q = new QueryParser("Product_Index", new StandardAnalyzer());
行 145:            Query query = q.Parse(Word);

源文件: d:\web\hp1997\www_hp1997_com\Control\product_list.ascx.cs    行: 143

堆栈跟踪:


[IOException: E:\hp1997\admin_hp1997_com\SwarchIndex\index\ not a directory]
   Lucene.Net.Store.FSDirectory.Init(FileInfo path, Boolean create) +810
   Lucene.Net.Store.FSDirectory.GetDirectory(FileInfo file, Boolean create) +481
   Lucene.Net.Store.FSDirectory.GetDirectory(String path, Boolean create) +100
   Lucene.Net.Index.IndexReader.Open(String path) +61
   Lucene.Net.Search.IndexSearcher..ctor(String path) +59
   Control_product_list.Page_Load(Object sender, EventArgs e) in d:\web\hp1997\www_hp1997_com\Control\product_list.ascx.cs:143
   System.Web.UI.Control.OnLoad(EventArgs e) +103
   System.Web.UI.Control.LoadRecursive() +68
   System.Web.UI.Control.LoadRecursive() +162
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3811


版本信息: Microsoft .NET Framework 版本:4.0.30319; ASP.NET 版本:4.7.2106.0