Message: Error when getting container. The request failed with the following status: '400 Bad Reques

Liya Han asked on April 12, 2019 11:14

I followed this link to configure the Azure storage for media libraries. But when i create a media library, i would get below error. Does there someone have the same issue before? Thanks for your time in advance!

EventDescription: Message: Error when getting container. The request failed with the following status: '400 Bad Request'.

Exception type: System.IO.IOException Stack trace: at CMS.AzureStorage.ContainerInfoProvider.InitContainerInfo(ContainerInfo containerInfo, Boolean referenceOnly) at CMS.AzureStorage.ContainerInfo..ctor(AccountInfo accountInfo, String containerName, Boolean referenceOnly, Nullable1 publicContainer) at CMS.AzureStorage.ContainerInfoProvider.GetRootContainerInfo(String path) at CMS.AzureStorage.Directory.GetCaseValidPath(String path, Nullable1 caseSensitive) at CMS.AzureStorage.Directory.GetValidPath(String path, Nullable`1 caseSensitive) at CMS.AzureStorage.Directory.ThrowOnTooLongDirecotoryPath(String path) at CMS.AzureStorage.Directory.CreateDirectory(String path) at CMS.IO.Directory.CreateDirectory(String path) at CMS.MediaLibrary.MediaLibraryInfoProvider.CreateMediaLibraryFolderInternal(String siteName, Int32 libraryID, String newFolderPath, Boolean synchronization, Boolean logSynchronization) at CMS.MediaLibrary.MediaLibraryInfoProvider.SetInfo(MediaLibraryInfo info) at CMS.MediaLibrary.MediaLibraryInfo.SetObject() at CMS.PortalEngine.Web.UI.UIForm.SaveDataInternal()

Message: The remote server returned an error: (400) Bad Request.

Recent Answers


David te Kloese answered on April 12, 2019 12:49

Seems like a permission thing on Azure side. What config did you do on azure side?

0 votesVote for this answer Mark as a Correct answer

Liya Han answered on April 16, 2019 10:23

Hi David, Thanks for your attention. Do you mean the Blob container's configuration on azure? The access level for this container is Private(no anonymous access).

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.