Search not works

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
7/12/2005 12:05:40 AM
Gravatar
Total Posts 23

Search not works

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)

7/12/2005 12:39:03 AM
Gravatar
Total Posts 23

Re: Search not works

Also the file manager module doesn't allow to create a directory: it seems that I can't use absolute path (d:\inetpub\wwwroot....).

It's a limitation of my hosting site?


7/12/2005 2:22:45 AM
Gravatar
Total Posts 18439

Re: Search not works

Both problems sound like file system permission issues to me. I would confirm with your hosting company whether new folders can be created below the Data folder for the folder creation problem and make sure the index folder is writable for the search problem.
7/13/2005 5:36:39 AM
Gravatar
Total Posts 23

Re: Search not works

It's all right. Thank's.

You must sign in to post in the forums. This thread is closed to new posts.