We have some strange errors in the log of Umbraco Cloud project,
Message:
An unhandled exception occurred
Exception:
System.NullReferenceException: There is no current PublishedContentRequest, it must be initialized before the RenderRouteHandler executes
at Umbraco.Web.Mvc.RenderRouteHandler.GetHttpHandler(RequestContext requestContext)
at System.Web.Routing.UrlRoutingModule.PostResolveRequestCache(HttpContextBase context)
at System.Web.Routing.UrlRoutingModule.OnApplicationPostResolveRequestCache(Object sender, EventArgs e)
at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
Umbraco Cloud erros
Hello
We have some strange errors in the log of Umbraco Cloud project,
Thanks,
Alex
Not sure how to find the reason, I see this error only on the live site.
Hi Alex,
It seems umbraco doesn't have a published content request set :
https://github.com/umbraco/Umbraco-CMS/blob/v7/dev/src/Umbraco.Web/Mvc/RenderRouteHandler.cs#L67
Are you doing something with route hijacking, content finders or virtual routes ?
Dave
Hi Dave
I found url that caused this issue - https://site.com/index.php/Home/AppUpload/commentUpload
locally and on dev it shows 404 page
on live exception -
There is no current PublishedContentRequest, it must be initialized before the RenderRouteHandler executes
Thanks,
Alex
Hi Dave,
I think you are right, but I'm not able to find neither something with route hijacking, content finders or virtual routes in the project.
I just inherited this Cloud project so I'm a little bit confused :)
Thanks,
Alex
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.