I have this error: I put the log in the end of the message.
It seems that I haven't the permission to write the index file. My hosting is windows and I use the identity impersonate because the asp.net account don't possess the rights to write on the disk. Other functions that write on disk (like gallery images, upload file) work correctly.
Do you have any idea?
log:
at System.Reflection.RuntimeMethodInfo.InternalInvoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean isBinderDefault, Assembly caller, Boolean verifyAccess)
at System.Reflection.RuntimeMethodInfo.InternalInvoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean verifyAccess)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at mojoPortal.Business.IndexHelper.RebuildSiteIndex(SiteSettings siteSettings)
2005-07-11 23:45:16,701 [1524] ERROR mojoPortal.Business.IndexHelper [(null)] - RebuildSiteIndex
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.UnauthorizedAccessException: Access to the path "D:\Inetpub\webs\rastiit\Data\Sites\1\index\segments.new" is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String str)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean useAsync, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
at Lucene.Net.Store.FSOutputStream..ctor(FileInfo path)
at Lucene.Net.Store.FSDirectory.CreateFile(String name)
at Lucene.Net.Index.SegmentInfos.Write(Directory directory)
at Lucene.Net.Index.AnonymousClassWith.DoBody()
at Lucene.Net.Store.With.Run()
at Lucene.Net.Index.IndexWriter..ctor(Directory d, Analyzer a, Boolean create, Boolean closeDir)
at Lucene.Net.Index.IndexWriter..ctor(String path, Analyzer a, Boolean create)
at mojoPortal.Business.IndexHelper.ReIndex(IndexItem Item, String IndexPath)
at mojoPortal.Business.SharedFile.mojoPortalRebuildIndex(PageSettings pageSettings, String IndexPath)