当前位置:编程学习 > C#/ASP.NET >>

luncene.net索引路径在服务器上应该怎么写?

luncene.net索引路径在服务器上应该怎么写?本地直接string indexPath = @"d:\index",我用string indexPath = System.Web.HttpContext.Current.Server.MapPath("/cmsindex").ToString();的方法好像报错,提示找不到目录下的文件,但是我在本地测试都是正常的。跪求解答,谢谢! luncene.net --------------------编程问答-------------------- MapPath("~\cmsindex") --------------------编程问答-------------------- 提示:  未将对象引用设置到对象的实例。
补充:.NET技术 ,  ASP.NET
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,