I followed the steps on the excellent blog post from Brian McKeiver https://www.mcbeev.com/how-to-configure-kentico-mvc-sites-for-azure-blob-storage-with-media-libraries on how to setup Kentico to use Azure Blog storage.
I am however facing an issue when trying to load the images on my MVC project.
I am getting 404 errors when trying to view the image using the "/getmedia/" path.
It works fine when using the same path on the admin site.
i.e. https://mysitename.mylocalserver.com/getmedia/0d2452a8-cb6a-4ca1-b94c-c169c4863909/image1.png (MVC site) does not work
but https://mysitenameadmin.mylocalserver.com/getmedia/0d2452a8-cb6a-4ca1-b94c-c169c4863909/image1.png (admin site) does work.
I have the required 2 settings inside web.config, I have confirmed that the DLL has been copied in the BIN folder, and have included AssemblyDiscoverable inside AssemblyInfo.cs as per the instructions.
I can also confirm that the image is showing correctly in azure storage.
Hopefully, I am missing something simple..
Doh! Found issue.
I was connecting to a different database on MVC that I was on admin.
The code for your custom Azure storage provider needs to be in both the CMS project and the MVC project.
Thanks for your reply Brenden. I have included the custom project in both CMS and MVC projects and confirmed that the DLLs are being copied to the BIN folder in both cases.
Please, sign in to be able to submit a new answer.