Custom 404

If you have questions about using mojoPortal, you can post them here.

You may want to first review our site administration documentation to see if your question is answered there.

This thread is closed to new posts. You must sign in to post in the forums.
3/1/2009 7:04:00 AM
Gravatar
Total Posts 118

Custom 404

Is there something I need to do to get the custom 404 handler working - or have I broken something. I am just moving the site to its real address www.bhpc.org.uk and wonder if I have confused something.

 

Neil

3/1/2009 7:29:09 AM
Gravatar
Total Posts 18439

Re: Custom 404

Hi Neil,

Is this on Win 2008/IIS 7?

Are you sure you have the newest version of Web.config shipped with mojoPortal? It sounds like you are probably missing this:

<system.webServer>
<modules>...
<add name="PageNotFoundHandler" type="mojoPortal.Web.PageNotFoundHttpModule, mojoPortal.Web" /> 

Also make sure the file /PageNotFound.aspx exists.

Hope it helps,

Joe

3/1/2009 7:36:31 AM
Gravatar
Total Posts 118

Re: Custom 404

Yep - running on win2008, its the latest web.config, the entry is there - and the file exists.

Since moving it to the correct subdomain and making it live - it also has also started to recycle the application on a frequent basis. I have cleared the event log to try and get closer to whats happening.

 

Neil

3/1/2009 7:42:36 AM
Gravatar
Total Posts 18439

Re: Custom 404

Do you know if its running in Integrated Pipeline Mode or Classic? Integrated uses the system.Webserver section but Classic uses the  settings from system.web httpHandlers section.

Best,

Joe

3/1/2009 7:46:16 AM
Gravatar
Total Posts 118

Re: Custom 404

its running in integrated

3/1/2009 7:56:26 AM
Gravatar
Total Posts 118

Re: Custom 404

This is the error I am getting :-

An unhandled exception occurred and the process was terminated.

Application ID: /LM/W3SVC/2/ROOT

Process ID: 8068

Exception: System.SystemException

Message: docs out of order (0 < 3 )

StackTrace: at Lucene.Net.Index.SegmentMerger.AppendPostings(SegmentMergeInfo[] smis, Int32 n)
at Lucene.Net.Index.SegmentMerger.MergeTermInfo(SegmentMergeInfo[] smis, Int32 n)
at Lucene.Net.Index.SegmentMerger.MergeTermInfos()
at Lucene.Net.Index.SegmentMerger.MergeTerms()
at Lucene.Net.Index.SegmentMerger.Merge()
at Lucene.Net.Index.IndexWriter.MergeSegments(Int32 minSegment, Int32 end)
at Lucene.Net.Index.IndexWriter.Optimize()
at mojoPortal.Business.WebHelpers.IndexWriterTask.ProcessQueue(DataTable q, String indexPath)
at mojoPortal.Business.WebHelpers.IndexWriterTask.ProcessIndexingQueue()
at mojoPortal.Business.WebHelpers.IndexWriterTask.RunTask()
at mojoPortal.Business.WebHelpers.IndexWriterTask.RunTaskOnNewThread(Object oTask)
at System.Threading._ThreadPoolWaitCallback.WaitCallback_Context(Object state)
at System.Threading.ExecutionContext.runTryCode(Object userData)
at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallbackInternal(_ThreadPoolWaitCallback tpWaitCallBack)
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback(Object state)

 

Any ideas ?

3/1/2009 7:59:35 AM
Gravatar
Total Posts 18439

Re: Custom 404

IIS will recycle whenever it reaches the memory limit specified for the app pool, maybe there is a low limit and it causes frequent recycling. There are other configuration settings in IIS that can also affect recycling, it can be configured to recycle after x requests, and/or x amount of time, and/or when memory usage reaches x amount.

Hope it helps,

Joe

3/1/2009 8:01:23 AM
Gravatar
Total Posts 18439

Re: Custom 404

I would rebuild the search index, first delete all rows from mp_IndexingQueue, then from mp_TaskQueue, then delete all index files and then do a search to rebuild it.

Hope it helps,

Joe 

3/1/2009 8:03:17 AM
Gravatar
Total Posts 118

Re: Custom 404

Where do I find theindex files

3/1/2009 8:04:22 AM
Gravatar
Total Posts 118

Re: Custom 404

found them

3/1/2009 8:08:19 AM
Gravatar
Total Posts 18439

Re: Custom 404

There is also a secret button you can make visible for rebuilding the index if you put this in user.config:

<add key="ShowRebuildSearchIndexButtonToAdmins" value="true" />

I hide it by default because its not something that people should click often and I'm afraid making it visible will make people think its no big deal to click it. Uses it when you have a good reason like fixing a problem but leave it alone in general.

Best,

Joe

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