After I migrated my site from AzureWebsites to a Azure Cloud Service, i'm having some issues with the migration and I think are related to IIS (and my lack of expertise of it).
The issue is some times i can't display a image that works just fine. One test method to get that is to refresh many times the image's url and sometimes I'm forward to PageNotFound.
I've an url path for images
/Clients/{id}/Images
to get the avatar, which is the same relative path for the folders.
I already gave full permissions, ignored this route to no avail. Any suggestions?
Are you by chance letting your clients upload images directly to your IIS machines? If so, do remember that Azure Cloud Service Roles run on distributed machines... so, if one of the web servers gotten the image to its local store, the others did not.
Thus, you want to make sure you store your uploaded content on shared resource, in Azure's case the best place is Blob storage.
HTH