Try our conversational search powered by Generative AI!

Episerver login prompt for files within virtual directory

Vote:
 

Hi, 

We have a Virtual Directory set up within IIS to point to a directory full of images.

When browsing to one of the images within this folder, Episerver throws a prompt to log in.

If the log in is successful, the image is shown but we'd like this to be available to anonymous users.

Would anyone know what permissionconfig needs to change to allow this?

thanks,

Jon

#121081
Apr 30, 2015 17:28
Vote:
 

try to set allow "*" under authorization section using location element for your virtual directory.

#121082
Apr 30, 2015 20:01
Vote:
 

Hi,

If Valdis solution doesn't work, check these settings also
<add name="StaticFileHandler" path="*" verb="*" modules="StaticFileModule,DefaultDocumentModule,DirectoryListingModule" resourceType="Either" requireAccess="Read" />

Regards
/K

#121088
May 01, 2015 13:41
Vote:
 

Thanks both for the responses, it helped me narrow down the cause.

It turns out that while "Anonymous Authentication" was enabled for that virtual directory in IIS7, when I edited that property, the "Anonymous user identity" was set to "Specific user:" rather than the "Application pool identity" which obviously had permissions.

Changed it over and it's working correctly now.

#121092
May 01, 2015 15:18
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.