Copied to clipboard

Flag this post as spam?

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


  • Sebastian Budka 12 posts 94 karma points
    Jul 06, 2020 @ 09:49
    Sebastian Budka
    0

    Can not get Current.Config during composition

    Hello, I have encountered another strange error hwhile porting Umbrato7 to v8.

    Can not get Current.Config during composition. Use composition.Config

    What is the most curious about this error is that we don't explicitly use Current.Config in our code, and the error is thrown while registering routes in IUserComposer:

    public static void RegisterRoutes(RouteCollection routes)
    {
        routes.IgnoreRoute("{resource}.svc");
        routes.IgnoreRoute("{resource}.svc/{*pathInfo}");
        routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
    
        MvcHealthCheckŠ”onfigurator.GetInstance().ConfigureEndpoint(routes, "probe");
    
        routes.MapMvcAttributeRoutes(); //error is thrown here
    }
    
Please Sign in or register to post replies

Write your reply to:

Draft