Copied to clipboard

Flag this post as spam?

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


  • Tito 314 posts 623 karma points
    Dec 01, 2021 @ 18:43
    Tito
    0

    Umbraco 9 cant register controller for a custom dashboard that works locally but fails when deploy

    I am having problems when deploying to my Azure web app (on windows) and i think it is due to Smidge minification in backoffice. I am using Umbraco 9.1.1 and was having an issue reported here: https://our.umbraco.com/forum/umbraco-9/107731-umbraco-9-cant-find-controller-for-my-block-list-editor-custom-view-after-deploy

    Now i am trying to register a custom dashboard and am having issues with the manifest. First i was referencing "appplugins" folder when it is actually named "AppPlugins" and Smidge was throwing an error becouse it didnt find the path due to a lower case issue (it is hosted in windows, not linux). After correct it now it cant register the controller of the dashboard, but no error is thrown. In console i can see this:

    Error: $controller:ctrlreg A controller with this name is not registered.
    

    This is my manifest:

    {
      "dashboards": [
        {
          "alias": "NextJsWelcomeDashboard",
          "view": "/App_Plugins/NextJsWelcomeDashboard/control.html",
          "sections": [ "content" ],
          "weight": -10001
        }
      ],
      "javascript": [
        "/App_Plugins/NextJsWelcomeDashboard/controller.js"
      ],
      "css": [
        "/App_Plugins/NextJsWelcomeDashboard/estilos.css"
      ]
    }
    
  • Tito 314 posts 623 karma points
    Dec 02, 2021 @ 09:25
    Tito
    103

    I guess its a smidge issue as i have set this in my appsettings.Production.json:

    "RuntimeMinification": {
        "useInMemoryCache": true,
        "cacheBuster": "Timestamp"
      }
    

    And the issue is gone, i will report this to https://github.com/Shazwazza/Smidge

  • Vincent V 1 post 23 karma points
    Jun 17, 2022 @ 08:40
    Vincent V
    2

    Thanks a lot, I had the same issue!

    Just want to add that this section should be added in Umbraco > CMS section of appsettings like so:

      "Umbraco": {
        "CMS": {
          "RuntimeMinification": {
            "useInMemoryCache": true,
            "cacheBuster": "Timestamp"
          }
        }
      }
    
  • Divya Jonnalagadda 1 post 71 karma points
    Feb 14, 2024 @ 11:52
    Divya Jonnalagadda
    0

    Hi, but after adding them the Umbraco backoffice is now painfully slow. Can you please suggest a solution for this.

  • 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