Could not find file.....

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
4/10/2008 7:55:19 AM
Gravatar
Total Posts 7

Could not find file.....

At the time of blog contain update i got following error.....every time i update the containin blog then get this error...........

 

Server Error in '/' Application.
--------------------------------------------------------------------------------

Could not find file 'D:\hshome\discomaniac\cabmos.com\Data\Sites\1\index\_anl.fnm'.
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.IO.FileNotFoundException: Could not find file 'D:\hshome\discomaniac\cabmos.com\Data\Sites\1\index\_anl.fnm'.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[FileNotFoundException: Could not find file 'D:\hshome\discomaniac\cabmos.com\Data\Sites\1\index\_anl.fnm'.]
System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +328
System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy) +1038
System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share) +114
Lucene.Net.Store.FSIndexInput..ctor(FileInfo path) +70
Lucene.Net.Store.FSDirectory.OpenInput(String name) +66
Lucene.Net.Index.FieldInfos..ctor(Directory d, String name) +99
Lucene.Net.Index.SegmentReader.Initialize(SegmentInfo si) +169
Lucene.Net.Index.SegmentReader.Get(Directory dir, SegmentInfo si, SegmentInfos sis, Boolean closeDir, Boolean ownDir) +151
Lucene.Net.Index.AnonymousClassWith.DoBody() +191
Lucene.Net.Store.With.Run() +56
Lucene.Net.Index.IndexReader.Open(Directory directory, Boolean closeDirectory) +102
Lucene.Net.Index.IndexReader.Open(String path) +62
mojoPortal.Business.WebHelpers.IndexHelper.ReIndex(IndexItem indexItem, String indexPath) +1655
mojoPortal.Business.WebHelpers.IndexHelper.ReIndex(IndexItem indexItem) +82
mojoPortal.Business.WebHelpers.BlogIndexBuilderProvider.IndexItem(Blog blog) +784
mojoPortal.Business.WebHelpers.BlogIndexBuilderProvider.ContentChangedHandler(Object sender, ContentChangedEventArgs e) +179
mojoPortal.Business.Blog.OnContentChanged(ContentChangedEventArgs e) +22
mojoPortal.Business.Blog.Update() +79
mojoPortal.Business.Blog.Save() +11
mojoPortal.Web.BlogUI.BlogEdit.btnUpdate_Click(Object sender, EventArgs e) +532
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +105
System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +107
System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +7
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1746

 


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433

 

What is this error ? plz solve

4/10/2008 8:21:12 AM
Gravatar
Total Posts 18439

Re: Could not find file.....

Delete all the files in the /Data/Sites/1/index folder

Then do a search and it will rebuild the search index.

Most likely cause of this problem is more than one site (ie dev and production) using the same db so the index gets out of sync when content is update on a different server.

Or if you change the db connection string to a different db after index was created.

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