Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Alex Skrypnyk 5346 posts 19750 karma points MVP 3x admin c-trib
    19 days ago
    Alex Skrypnyk
    0

    Hello

    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)
    

    Thanks,

    Alex

  • Alex Skrypnyk 5346 posts 19750 karma points MVP 3x admin c-trib
    19 days ago
    Alex Skrypnyk
    0

    Not sure how to find the reason, I see this error only on the live site.

  • Dave Woestenborghs 3213 posts 10797 karma points MVP 4x admin c-trib
    19 days ago
    Dave Woestenborghs
    100

    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

  • Alex Skrypnyk 5346 posts 19750 karma points MVP 3x admin c-trib
    15 days ago
    Alex Skrypnyk
    0

    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

  • Alex Skrypnyk 5346 posts 19750 karma points MVP 3x admin c-trib
    19 days ago
    Alex Skrypnyk
    0

    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

Please Sign in or register to post replies

Write your reply to:

Draft