Copied to clipboard

Flag this post as spam?

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


  • Kap 19 posts 169 karma points
    Sep 20, 2024 @ 15:00
    Kap
    0

    Maintanance Mode Dashboard not showing on IIS

    Hi All,

    Im seeing something strange when deploying my website to IIS.

    Im running Umbraco 13.4.1, and under Visual studio, I used NUGet to install the Our.Umbraco.MaintenanceMode package. This works fine under Visual Studio, however when I publish the website to IIS, the Dashboard does not show, and I see this in the browser console:

    umbraco-backoffice-js.js.vc6e8bc0959901a75d8026fd6454b7729c35d534b:147  Error: [$controller:ctrlreg] http://errors.angularjs.org/1.8.3/$controller/ctrlreg?p0=maintenanceModeDashboardController
    at umbraco-backoffice-js.js.vc6e8bc0959901a75d8026fd6454b7729c35d534b:25:168
    at umbraco-backoffice-js.js.vc6e8bc0959901a75d8026fd6454b7729c35d534b:117:19
    at ea (umbraco-backoffice-js.js.vc6e8bc0959901a75d8026fd6454b7729c35d534b:99:20)
    at p (umbraco-backoffice-js.js.vc6e8bc0959901a75d8026fd6454b7729c35d534b:90:355)
    at g (umbraco-backoffice-js.js.vc6e8bc0959901a75d8026fd6454b7729c35d534b:84:186)
    at umbraco-backoffice-js.js.vc6e8bc0959901a75d8026fd6454b7729c35d534b:83:311
    at Object.link (umbraco-backoffice-js.js.vc6e8bc0959901a75d8026fd6454b7729c35d534b:321:432)
    at umbraco-backoffice-js.js.vc6e8bc0959901a75d8026fd6454b7729c35d534b:35:134
    at Ca (umbraco-backoffice-js.js.vc6e8bc0959901a75d8026fd6454b7729c35d534b:108:361)
    at p (umbraco-backoffice-js.js.vc6e8bc0959901a75d8026fd6454b7729c35d534b:92:340) '<div ng-include="property.view">'
    

    Some other Dashboards (such as the Cultiv.Hangfire one ) show up fine.

    Any ideas what might be causing this. I tried deleting the Smidge Cache folder, but it did not make a difference.

    Thanks in advance,

    Kap.

  • Kap 19 posts 169 karma points
    Sep 20, 2024 @ 15:42
    Kap
    0

    Setting the Debug :true flag in the appsettings.json file allowed the Dashboard to work. Unfortunately it is not a solution as I cannot leave Debug on for Production. Has anyone else come across this?

    Thanks

    Kap.

  • Kevin Jump 2342 posts 14889 karma points MVP 8x c-trib
    Sep 20, 2024 @ 16:20
    Kevin Jump
    100

    Hi,

    What other packages do you have installed? when in production mode, Umbraco squishes all the JavaScript for all the packages together, it can often be something conflicting between two packages.

    if you have a full list of installed 3rd party things we might be able to work out where the clash is.

  • Kap 19 posts 169 karma points
    Sep 25, 2024 @ 10:39
    Kap
    0

    Hi Kevin,

    Thanks for the info. I will see if I can identify the misbehaving package. I think it might be an internal dashboard which is causing the issue.

    Thanks

    Kap.

  • Kap 19 posts 169 karma points
    6 days ago
    Kap
    0

    Just found this post - which appears to solve the issue:

    Effectively just added

          "RuntimeMinification": {
        "useInMemoryCache": true,
        "CacheBuster": "AppDomain"
      },
    

    to the Umbraco section of the appsettings.json file, and the dashboards work.

Please Sign in or register to post replies

Write your reply to:

Draft