404 error

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.
12/18/2014 2:41:41 AM
Gravatar
Total Posts 122

404 error

Hi, running 2.4.0.7 i got a problem with page not found

if I type some page that not exists than mojo does not edirect to pagenotfound but displays the:

<<We're sorry but a server error has occurred while trying to process your request.The error has been logged and will be reviewed by our staff as soon as possible. It is possible that the error was just a momentary hiccup and you may wish to use the back button and try again or go back to the home page.>>

and writes to log

<<2014-12-18 00:25:42,483 ERROR 151.99.251.158 - it-IT - /hom1e.aspx - mojoPortal.Web.Global - 151.99.251.158 /hom1e.aspx Referrer(none) useragent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:34.0) Gecko/20100101 Firefox/34.0
System.Web.HttpException (0x80004005): The file '/hom1e.aspx' does not exist.
   at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
   at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
   at System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound)
   at System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp)
   at System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath)
   at System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)>>

What can be happened ? in user.config I do have no instructions about custom 404 page

In other site (vers.2.4.0.3) it works fine

in mojo.demo site it not only works fine, it gives the search bar too (and I can not  figure out how to have the same...)

can you give me some tips ?

best

Michele (from rome)

 

12/19/2014 8:15:34 AM
Gravatar
Total Posts 122

Re: 404 error

Hi Joe, just some more informations...

on my site1 with PageNotFound not working I got this first lines on registry:

2014-12-19 05:50:05,122 ERROR 151.99.251.158 - it-IT - /homqe.aspx - mojoPortal.Web.Global - 151.99.251.158 /homqe.aspx Referrer(none) useragent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:34.0) Gecko/20100101 Firefox/34.0
System.Web.HttpException (0x80004005): The file '/homqe.aspx' does not exist.

This site is hosted on Arwixe and has 2.4.0.8 version of mojo

 

On other site (where it is working) I got:

2014-12-19 14:51:39,672 ERROR 10.0.0.59 - it-IT - /hosme.aspx - mojoPortal.Web.PageNotFoundHttpModule - Referrer(none)  PageNotFoundHttpModule handled error.
System.Web.HttpException (0x80004005): Il file '/hosme.aspx' non esiste.

So defintly it seems that site 1 do not activate PAgeNotFound..

I hope it helps you to give me some tips to solve it.... maybe an IIS setting on Arwixe on error handling ? (I've tried but with no results)

Bests

Michele (from Rome)

 

12/19/2014 11:29:31 AM
Gravatar
Total Posts 1991

Re: 404 error

Hi Michele,

Make sure this line is not commented out in your web.config (approximately line 1015):

<add name="PageNotFoundHandler" type="mojoPortal.Web.PageNotFoundHttpModule, mojoPortal.Web" preCondition="" />

That should get everything working properly.

Hope this helps,
Joe D.

12/20/2014 8:15:28 AM
Gravatar
Total Posts 122

Re: 404 error

works perfect...

thank you so much...

I just wonder why this is comment out in standard web.config

thank you Joe D.

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