Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
AI OnAI Off
Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
Is the virtual directory for the image gallery thumbnails properly set up in IIS?
Are you using EPiServer supplied templates or created your own? Maybe you need to set access permissions for images explicitly? See CommunitySecurityModule from Relate Sample Site source code.
ImageGalleryHandler.Instance.ImageAdded += new EPiServerCommonEventHandler(ImageGalleryHandler_ImageAdded);
And then:
void ImageGalleryHandler_ImageAdded(string sender, EPiServerCommonEventArgs e) { SetAccessRightsForEntity((Image)e.Object, ((Image)e.Object).ImageGallery); }
Which actually turns into:
if (user != null) EntitySecurityHandler.Instance.SetAccessRights(entity, user, accessRights); else EntitySecurityHandler.Instance.SetAccessRights(entity, group, accessRights);
Hi,
I'm using the image gallery and on the test environment everything works fine, but in production the image gallery images is not displayed for anonymous users, instead they are redirected to the login page. I have checked all the location tags related to the images in web.config and they allow anonymous users.
Any idea what I could've missed?