none
Unable to access files uploaded into File Share thru internet URL

    Question

  • Hi, When i try to access my files thru internal URL given for my 'file share' storage, i get the following error message. Can someone throw light on this error message. I am new to Azure, and i am not sure if something else i need to configure to access these files in my File share.  

    Thanks in advance.

    This XML file does not appear to have any style information associated with it. The document tree is shown below.
    <Error>
    <Code>InvalidHeaderValue</Code>
    <Message>
    The value for one of the HTTP headers is not in the correct format. RequestId:e14dd13c-001a-0099-21d4-de490f000000 Time:2016-07-15T20:04:23.4825815Z
    </Message>
    <HeaderName>x-ms-version</HeaderName>
    <HeaderValue/>
    </Error>


    Monday, July 18, 2016 6:54 AM

All replies

  • It looks like you're trying to access the file share storage by the URL, is this correct?

    To access the files, you need to map the network drive. See below.

    Mount the file share
    https://azure.microsoft.com/en-us/documentation/articles/storage-dotnet-how-to-use-files/


    Nick | https://brotechcm2012.wordpress.com/

    Monday, July 18, 2016 8:53 AM
  • Hi Nick, 

    Thanks for your reply.

    In fact, i am not trying to access this share from my VM. I understand that if i need this share, i will have to map this network drive. But i am trying to access these files thru URL given in the properties of the file. For example, in the below URL format, shouldn't i be able to access the 'Log1.txt' by just pointing my browser to the URL of "http://samples.file.core.windows.net/logs/CustomLogs/Log1.txt" 

    URL format: Files are addressable using the following URL format:
    https://<storage account>.file.core.windows.net/<share>/<directory/directories>/<file>

    The following example URL could be used to address one of the files in the diagram above:
    http://samples.file.core.windows.net/logs/CustomLogs/Log1.txt

    Monday, July 18, 2016 12:02 PM
  • You can't access the URL's through a browser. Please see http://stackoverflow.com/questions/35203205/azure-file-storage-url-in-browser-showing-invalidheadervalue


    Nick | https://brotechcm2012.wordpress.com/

    Monday, July 18, 2016 11:17 PM
  • Azure Files is not the same as blob storage; it does not allow public access to the files. However, you should be able to create a Shared Access Signature for that file and append that to the URL to the file, and it should give you access (as defined by the SAS).

    For more information about shared access signatures, please check out this article:

    https://azure.microsoft.com/en-us/documentation/articles/storage-dotnet-shared-access-signature-part-1/

    Robin


    Sr. Content Developer at Microsoft

    Tuesday, August 2, 2016 6:36 AM