• Login
  • Register

DNN Forums

A community discussion page. We're starting from scratch, so...let's get the party started!

Could DnnImageHandler.ashx be missing

You are not authorized to post a reply.
Sort:
Page 1 of 212 > >>


New Member


Posts:13
New Member

    Hi,

    When I load the Home page of this site (www.flying15.org.uk) I see in the the console 404 errors associated with this module.

    The site has been upgraded from 7.4.2 to 9.3.2. Might this asset have been omitted from the upgrade?

    What do I do about this?



    Basic Member


    Posts:95
    Basic Member

      Pls add to appsettings in web.config

      add key="DnnImageHandler" value="EnableServerCache=false;"

      see my post http://www.dnnsoftware.com/forums/t...ge-handler

      DNN Technology Team | Area Lead Testing | Read the manual https://dnndocs.com/index.html


      New Member


      Posts:13
      New Member

        Hi Mariette,

        That is already there. I also have;

        add name="DnnImageHandler" path="DnnImageHandler.ashx" verb="*" type="DotNetNuke.Services.GeneratedImage.DnnImageHandler, DotNetNuke" preCondition="integratedMode" 

        Does this make a difference?



        New Member


        Posts:13
        New Member

          The console shows DnnImage Handler asking for;

          https://flying15.org.uk/DnnImageHandler.ashx?mode=profilepic&userId=1&h=32&w=32

          So, do I assume DnnImageHandler is not what is missing, but the profile picture at the location expected?

          And where would that be?



          New Member


          Posts:13
          New Member

            OK, so the 404 error was resolved by placing the line

             add name="DnnImageHandler" path="DnnImageHandler.ashx" verb="*" type="DotNetNuke.Services.GeneratedImage.DnnImageHandler, DotNetNuke" preCondition="integratedMode" /

            in the correct section.

            I now get an Error 500. The image being called for is /DesktopModules/~/Icons/Sigma/Users_32x32_Standard.png

            However the Icon files were not at that location but at /Icons/Sigma

            I copied them to the exxpected location but that is when I get the 500 error.

            Any suggestions?



            Veteran Member


            Posts:381
            Veteran Member

              See Mariettes post - the "add key" entry is necessary (in the appSettings section, where you find the other "add key" configurations).

              Happy DNNing!
              Michael

              Michael Tobisch
              DNN★MVP

              dnnWerk Austria
              DNN Usergroup für den deutschsprachigen Raum
              DNN Connect


              New Member


              Posts:13
              New Member

                es and I did that. As my last post mentioned, I am now in Error 500 territory for the icon files for profiles.



                Veteran Member


                Posts:381
                Veteran Member

                  Simon,

                  this is strange. It works fine here with me, but this is not helpful...

                  Here are the lines from my web.config:

                     <_ configuration _>
                        [...]
                        <_ appSettings _>
                           [...]
                           <_ add key="DnnImageHandler" value="EnableServerCache=false;" / _>
                           [...]
                        <_ /appSettings _>
                        [...]
                        <_ system.webServer _>
                           [...]
                           <_ handlers _>
                              [...]
                              <_ add name="DnnImageHandler" path="DnnImageHandler.ashx" verb="*" type="DotNetNuke.Services.GeneratedImage.DnnImageHandler, DotNetNuke" preCondition="integratedMode" / _>
                              [...]
                           <_ /handlers _>
                           [...]
                        <_ /system.webServer _>
                        [...]
                     <_ /configuration _>
                  

                  When there is no avatar available, the handler should show some gray head without a face as the default image for profile pictures.

                  Hope that helps.

                  Happy DNNing!
                  Michael

                  Michael Tobisch
                  DNN★MVP

                  dnnWerk Austria
                  DNN Usergroup für den deutschsprachigen Raum
                  DNN Connect


                  New Member


                  Posts:13
                  New Member

                    Hi Michael, and thanks fo the response.

                    I finally got those lines in the correct place in the config file and all works as you say.

                    As I went on the say, the standard icons now fail to load with Error 500. I think these are called by the skin and it asks for them from the DNN7 location and not the DNN9 location. I have duplicated the icon folder and contents where the skin is asking for them from. See my post prior to yours for the URLs.

                    Regards



                    Veteran Member


                    Posts:381
                    Veteran Member

                      Posted By Simon Thompson on 03 Dec 2019 07:09 AM

                      [...]

                      I now get an Error 500. The image being called for is /DesktopModules/~/Icons/Sigma/Users_32x32_Standard.png

                      [...]

                      Simon,

                      first, I am glad we solved the configuration problems from the web.config file.

                      The path (that I quoted) is really strange, and I have no idea where it comes from.

                      "~/Icons/Sigma/Users_32x32_Standard.png" is some syntax in ASP.Net that it should start in the root of the application (which is normally "/Icons/Sigma/..."). The "/DesktopModules/" in front of it does not make any sense, where is the origin of that? What module are we talking about? Or could that be an issue of the skin, or a skin object?

                      Happy DNNing!
                      Michael

                       

                       

                      Michael Tobisch
                      DNN★MVP

                      dnnWerk Austria
                      DNN Usergroup für den deutschsprachigen Raum
                      DNN Connect
                      You are not authorized to post a reply.
                      Page 1 of 212 > >>

                      These Forums are dedicated to 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. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
                      2. 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.
                      3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
                      4. No Flaming or Trolling.
                      5. No Profanity, Racism, or Prejudice.
                      6. Site Moderators have the final word on approving / removing a thread or post or comment.
                      7. 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