Custom module mojoPortal - reference to local path developer machine on webserver ?

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.
12/6/2012 10:49:09 AM
Gravatar
Total Posts 4

Custom module mojoPortal - reference to local path developer machine on webserver ?

Hello Joe and others,

thanks for creating such a great CMS system. But, I have a question. We have developed a custom module and added this to mojoPortal / created a build. We placed that build on our server, but now we get errors in the logging. The errors are:

System.IO.FileNotFoundException: no segments* file found: files:

at Lucene.Net.Index.SegmentInfos.FindSegmentsFile.run()

at Lucene.Net.Index.IndexReader.Open(Directory directory, Boolean closeDirectory)

at Lucene.Net.Index.IndexReader.Open(String path)

at mojoPortal.Business.WebHelpers.IndexWriterTask.ProcessQueue(DataTable q, String indexPath) in <<REFERENCE TO LOCAL DISK DEVELOPER MACHINE>>\mojoPortal.Business.WebHelpers\Search\IndexWriterTask.cs:line 166

and

   at System.Net.HttpWebRequest.GetResponse()

   at mojoPortal.Web.AppKeepAliveTask.DoKeepAlive() in <<REFERENCE TO LOCAL DISK DEVELOPER MACHINE>>\Web\Components\AppKeepAliveTask.cs:line 388

 Our question is why the local disk of the developer machine (path) is visible in the log. The path is not available on the webserver. We cannot find out why it does use the local path.. frown

Thanks for your support!


Regards,

Armand

 

12/6/2012 11:05:23 AM
Gravatar
Total Posts 18439

Re: Custom module mojoPortal - reference to local path developer machine on webserver ?

Hi,

The server isn't using files from that location. The code is compiled into dll files in the bin folder, but there are also .pdb files (debugger files) and these may indicate the original location of the source code .cs file that existed on the developer machine. So the stack trace shows where in the source code the error is happening and it knows where the source file was located from the pdb file, but the source code is not deployed to production, only the compiled dlls and pdb files are deployed. (deploying the pdb files is optional)

The location of the original source file is not really relevant to the error and is not the cause of the error. The error is about missing file or folder at /Data/Sites/[SiteID]/index ie the location where the files for the lucene.net search index are built. So if for example the folder does not exist at /Data/Sites/1/index you should create that folder to solve the error.

Hope that helps,

Joe

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