Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Khalid Aziz 6 posts 96 karma points
    Jul 18, 2017 @ 14:51
    Khalid Aziz
    0

    The container name https://xxxxx.blob.core.windows.net/ is not valid ... UmbracoFileSystemProviders.Azure Error

    Hi all,

    I'm getting the following error trying to use UmbracoFileSystemProviders.Azure:

    [ArgumentException: The container name https://xxx.blob.core.windows.net/ is not valid, see https://msdn.microsoft.com/en-us/library/azure/dd135715.aspx for the restrtictions for container names.]
    Our.Umbraco.FileSystemProviders.Azure.AzureFileSystem.CreateContainer(CloudBlobClient cloudBlobClient, String containerName, BlobContainerPublicAccessType accessType) +250
       Our.Umbraco.FileSystemProviders.Azure.AzureFileSystem..ctor(String containerName, String rootUrl, String connectionString, Int32 maxDays, Boolean useDefaultRoute, BlobContainerPublicAccessType accessType) +233
       Our.Umbraco.FileSystemProviders.Azure.AzureFileSystem.GetInstance(String containerName, String rootUrl, String connectionString, String maxDays, String useDefaultRoute, String usePrivateContainer) +280
       Our.Umbraco.FileSystemProviders.Azure.AzureBlobFileSystem..ctor(String containerName, String rootUrl, String connectionString, String maxDays, String useDefaultRoute, String usePrivateContainer) +28
    

    Here is my package version:

      <package id="UmbracoFileSystemProviders.Azure" version="0.5.8-beta" targetFramework="net462" />
    

    And the FileSystemProviders.config I am using:

    <?xml version="1.0"?>
    <FileSystemProviders>
    
      <!-- Media -->
      <Provider alias="media" type="Our.Umbraco.FileSystemProviders.Azure.AzureBlobFileSystem, Our.Umbraco.FileSystemProviders.Azure">
        <Parameters>
          <add key="rootUrl" value="https://xxx.blob.core.windows.net/" />
          <add key="containerName" value="media"/>
          <add key="connectionString"
            value="DefaultEndpointsProtocol=https;AccountName=xxx;AccountKey=MY_KEY;EndpointSuffix=core.windows.net"/>
          <add key="maxDays" value="365"/>
          <add key="useDefaultRoute" value="true"/>
          <add key="usePrivateContainer" value="false"/>
        </Parameters>
      </Provider>
    
    </FileSystemProviders>
    

    Does anyone know how I can resolve this error? I find it strange that the error is thinking that the containerName is actually the root URL.

Please Sign in or register to post replies

Write your reply to:

Draft