Bug Report T295038
Visible to All Users

ASPxImageZoomNavigator - Thumbnail folder is rendered incorrectly when ASPxImageZoomNavigator is located in UserControl

created 9 years ago

I have an ASPxImageZoomControl that is showing behavior that I do not understand.

In my codebehind, I set the Image Source Folder and Image Cache Folder dynamically:

zoomNavigator.ImageSourceFolder = "~/Site/Images/item-detail/HB2P";
zoomNavigator.SettingsAutoGeneratedImages.ImageCacheFolder = "~/Site/Images/Thumbnails";

However, when it renders out, the thumbnail is correct, but the main image is broken. Upon further inspection, it has a url of "…/…/…/Site/Images/Thumbnails/5fdf4d2e25b9f2ed10961fdd2b19bfd9/400x250.0/HB2P.png?130880136836921464"

If I remove one of the ellipsis, the URL is correct and the image successfully renders.

Any idea why this is happening?

Answers approved by DevExpress Support

created 9 years ago

We have fixed the issue described in this ticket and will include the fix in our next maintenance update. To apply this solution before the official update, request a hotfix by clicking the corresponding link for product versions you require.

Note: Hotfixes may be unavailable for beta versions and updates that are about to be released.

    created 9 years ago (modified 9 years ago)

    Hi,

    I have created a small sample project that covers your scenario and operates correctly as shown in the attached screencast. I hope reviewing it will help you find a solution to this problem. If this does not help, please update my sample to illustrate the problem. Then, I will see what is going wrong and do my best to find a solution.

    Update:

    As workaround, I suggest you use a site-root relative path, which is resolved against the site root:

    ASPx
    ImageSourceFolder="\site\A101\" SettingsAutoGeneratedImages-ImageCacheFolder="\site\thumbs\"

    Thanks,
    Alessandro.

      Show previous comments (1)
      Vova (DevExpress Support) 9 years ago

        Hello Michael
        Yes, you are absolutely right. I've forwarded this issue to our R&D team for research.
        As workaround, I suggest you use a site-root relative path, which is resolved against the site root:

        ASPx
        ImageSourceFolder="\site\A101\" SettingsAutoGeneratedImages-ImageCacheFolder="\site\thumbs\"

        I've attached your project modified according to your conditions. It works correctly. See the attached video.
        Let me know if you have additional questions.
        Best regards,
        Vova

        DI DI
        Dovetail Internet 9 years ago

          In my production environment, the folder "Site" is a virtual directory under the Application, but the physical folder is not under the Application folder.
          In that particular instance, I do not believe this workaround works. It attempts to create the folder "Site" underneath my Application folder, not use the virtual directory "Site".
          Due to permissions, I get the following error:
          The 'zoomNavigator' ASPxImageZoomNavigator cannot create folder '\site\images\thumbnails'.

          Vova (DevExpress Support) 9 years ago

            Yes, you are right, the workaround won't work in such conditions. Unfortunately, I do not have any other one. Let's wait for our developers' results. We will inform you as soon as we have  news.

            Best regards,
            Vova

            Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

            Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.