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 5908 posts 22603 karma points MVP 4x admin c-trib
    Sep 25, 2019 @ 23:15
    Alex Skrypnyk
    0

    Umbraco Cloud erros

    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 5908 posts 22603 karma points MVP 4x admin c-trib
    Sep 25, 2019 @ 23:16
    Alex Skrypnyk
    0

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

  • Dave Woestenborghs 3325 posts 11170 karma points MVP 5x admin c-trib
    Sep 26, 2019 @ 06:22
    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 5908 posts 22603 karma points MVP 4x admin c-trib
    Sep 29, 2019 @ 21:55
    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 5908 posts 22603 karma points MVP 4x admin c-trib
    Sep 26, 2019 @ 13:32
    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

  • 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.

Please Sign in or register to post replies