DNN Forums

Ask questions about your website to get help learning DNN and help resolve issues.

File references 404 unless uploaded through Site Assets

Sort:
You are not authorized to post a reply.
Page 5 of 5 << < 12345





Growing Member





    Site Assets = ONLY looks at files under /Portals/{ID} - where {ID} is the id of the current portal 0 for single-portal sites

    Module Installs = Resource component types will unzip to the location specified in the "BasePath" Typically /DesktopModules/{ModuleName}

    When you install a module, the log will show you every single file extracted and the destination of the file.
    Mitchel Sellers
    Technology Advisory Group Leader
    CEO @ IowaComputerGurus, Inc. a DNN & .NET Solutions Provider
    Technical Blog: MitchelSellers.com





    Growing Member





      Site Assets is working as expected. The issue there is that in the past we could FTP in files into /Portals/0/SomeAssetFolder and that would work fine, but now it doesn't. Inconvenient, but not critical unless it's an indicator of files being uploaded via FTP elsewhere being ignored - especially unpacking the upgrade zip into the website. The site's been around five years and we've only seem this behavior since this August.

      I did a re-install of the latest module we deployed, the one that is working thanks to workarounds but doesn't appear in DesktopModules. The Package Installation Report is identical to installing the module on my localhost test instance, which does unpack it into DesktopModules.

      It has an entry under Installed Extensions with all relevant information, and there is nothing new in the admin log. Is there a log elsewhere I can check for those destinations? Portals/_default/Logs wasn't helpful either.






      Growing Member





        What does the log show for the processing of the resource file?
        Mitchel Sellers
        Technology Advisory Group Leader
        CEO @ IowaComputerGurus, Inc. a DNN & .NET Solutions Provider
        Technical Blog: MitchelSellers.com





        Growing Member





          I'm assuming you mean the Package Installation Report. Here's the dump - I can't bold anything but I've spaced it out:

          StartJob Starting Installation
          Info Starting Installation - DPDashModule
          Info Starting Installation - Script
          Info Begin Sql execution
          Info Creating backup of previous version - Providers\DataProviders\SqlDataProvider\Uninstall.SqlDataProvider
          Info Created - Providers\DataProviders\SqlDataProvider\Uninstall.SqlDataProvider
          Info Finished Sql execution
          Info Component installed successfully - Script


          Info Starting Installation - ResourceFile
          Info Expanding Resource file


          Info Creating backup of previous version - Documentation\Documentation.css
          Info Created - Documentation/Documentation.css
          Info Creating backup of previous version - Documentation\Documentation.html
          Info Created - Documentation/Documentation.html
          Info Creating backup of previous version - Controls\PASADPDash.ascx
          Info Created - Controls/PASADPDash.ascx
          Info Creating backup of previous version - Scripts\DPDash.js
          Info Created - Scripts/DPDash.js
          Info Creating backup of previous version - App_LocalResources\Edit.ascx.resx
          Info Created - App_LocalResources/Edit.ascx.resx
          Info Creating backup of previous version - App_LocalResources\Settings.ascx.resx
          Info Created - App_LocalResources/Settings.ascx.resx
          Info Creating backup of previous version - App_LocalResources\View.ascx.resx
          Info Created - App_LocalResources/View.ascx.resx
          Info Creating backup of previous version - Edit.ascx
          Info Created - Edit.ascx
          Info Creating backup of previous version - License.txt
          Info Created - License.txt
          Info Creating backup of previous version - module.css
          Info Created - module.css
          Info Creating backup of previous version - ReleaseNotes.txt
          Info Created - ReleaseNotes.txt
          Info Creating backup of previous version - Settings.ascx
          Info Created - Settings.ascx
          Info Creating backup of previous version - View.ascx
          Info Created - View.ascx


          Info Resource Files created
          Info Component installed successfully - ResourceFile


          Info Starting Installation - Module
          Info Module registered successfully - DPDashModule
          Info Component installed successfully - Module
          Info Starting Installation - Assembly
          Info Assembly already registered - bin\DPDashModule.dll
          Info Creating backup of previous version - bin\DPDashModule.dll
          Info Created - bin\DPDashModule.dll
          Info Component installed successfully - Assembly
          Info Installation committed
          Info Installation successful. - DPDashModule
          Info Deleted temporary install folder
          EndJob Installation successful.






          Growing Member





            Posted By hbilbrey on 30 Dec 2020 09:46 AM

            I'm assuming you mean the Package Installation Report. Here's the dump - I can't bold anything but I've spaced it out:


            Info Starting Installation - ResourceFile
            Info Expanding Resource file


            Info Creating backup of previous version - Documentation\Documentation.css
            Info Created - Documentation/Documentation.css
            Info Creating backup of previous version - Documentation\Documentation.html
            Info Created - Documentation/Documentation.html
            Info Creating backup of previous version - Controls\PASADPDash.ascx
            Info Created - Controls/PASADPDash.ascx
            Info Creating backup of previous version - Scripts\DPDash.js
            Info Created - Scripts/DPDash.js
            Info Creating backup of previous version - App_LocalResources\Edit.ascx.resx
            Info Created - App_LocalResources/Edit.ascx.resx
            Info Creating backup of previous version - App_LocalResources\Settings.ascx.resx
            Info Created - App_LocalResources/Settings.ascx.resx
            Info Creating backup of previous version - App_LocalResources\View.ascx.resx
            Info Created - App_LocalResources/View.ascx.resx
            Info Creating backup of previous version - Edit.ascx
            Info Created - Edit.ascx
            Info Creating backup of previous version - License.txt
            Info Created - License.txt
            Info Creating backup of previous version - module.css
            Info Created - module.css
            Info Creating backup of previous version - ReleaseNotes.txt
            Info Created - ReleaseNotes.txt
            Info Creating backup of previous version - Settings.ascx
            Info Created - Settings.ascx
            Info Creating backup of previous version - View.ascx
            Info Created - View.ascx
            Info Resource Files created
            Info Component installed successfully - ResourceFile

            Ok, this helps, as it shows what is going on, as I suspected your installation file was processed successfully, but look at the smaller snippet that I left above in your quoted reply.

            The only .HTML file in the resource zip file is the documentation.html file.

            You must make sure that the build process puts everything needed into the resources.zip file inside of your module package, otherwise, it will not be included.

            My guess is that you have other files/folders that don't match the packaging requirements in the Build targets.

            Mitchel Sellers
            Technology Advisory Group Leader
            CEO @ IowaComputerGurus, Inc. a DNN & .NET Solutions Provider
            Technical Blog: MitchelSellers.com





            Growing Member





              Is only one .HTML file an indicator of something incorrect? The .ASCX file is my view - and I can install this module correctly to other DNN instances with identical installation reports and it works fine and unpacks to DesktopModules.

              This issue of it not unpacking to DesktopModules only occurs on this one problem DNN install. Elsewhere the module works perfectly fine.

              Even if things were missing I would expect something from Resources.zip to make it into the DesktopModules/ModuleName folder.






              Growing Member





                What file is missing?
                Mitchel Sellers
                Technology Advisory Group Leader
                CEO @ IowaComputerGurus, Inc. a DNN & .NET Solutions Provider
                Technical Blog: MitchelSellers.com





                Growing Member





                  Everything is missing - There is no "ModuleName" directory under DesktopModules at all. Or in wwwroot/ for that matter. 

                  The module view - that .ascx file - still works though as it's made it into the Files table. 

                  You are not authorized to post a reply.
                  Page 5 of 5 << < 12345

                  These Forums are dedicated to the discussion of DNN Platform.

                  For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

                  1. If you have (suspected) security issues, please DO NOT post them in the forums but instead follow the official DNN security policy
                  2. No Advertising. This includes the promotion of commercial and non-commercial products or services which are not directly related to DNN.
                  3. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
                  4. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
                  5. No Flaming or Trolling.
                  6. No Profanity, Racism, or Prejudice.
                  7. Site Moderators have the final word on approving / removing a thread or post or comment.
                  8. English language posting only, please.

                  Would you like to help us?

                  Awesome! Simply post in the forums using the link below and we'll get you started.

                  Get Involved