Can't upload file to Azure Storage with Mobile Service

I have success upload last mount.

but now it fail and i got exception like this.

Exception:Thrown: "<?xml version="1.0" encoding="utf-16"?>
<!--An exception has occurred. For more information please deserialize this message via RequestResult.TranslateFromExceptionMessage.-->
<RequestResult>
  <HTTPStatusCode>403</HTTPStatusCode>
  <HttpStatusMessage>Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature.</HttpStatusMessage>
  <TargetLocation>Primary</TargetLocation>
  <ServiceRequestID>23c0bc30-0001-0043-63f3-6e8201000000</ServiceRequestID>
  <ContentMd5 />
  <Etag />
  <RequestDate>Fri, 16 Jan 2015 17:01:31 GMT</RequestDate>
  <StartTime>Fri, 16 Jan 2015 10:01:31 GMT</StartTime>
  <EndTime>Fri, 16 Jan 2015 10:01:31 GMT</EndTime>
  <Error>
    <Code>AuthenticationFailed</Code>
    <Message>Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature.
RequestId:23c0bc30-0001-0043-63f3-6e8201000000
Time:2015-01-16T10:01:45.2420186Z</Message>
    " (Microsoft.WindowsAzure.Storage.WrappedStorageException)
A Microsoft.WindowsAzure.Storage.WrappedStorageException was thrown: "<?xml version="1.0" encoding="utf-16"?>
<!--An exception has occurred. For more information please deserialize this message via RequestResult.TranslateFromExceptionMessage.-->
<RequestResult>
  <HTTPStatusCode>403</HTTPStatusCode>
  <HttpStatusMessage>Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature.</HttpStatusMessage>
  <TargetLocation>Primary</TargetLocation>
  <ServiceRequestID>23c0bc30-0001-0043-63f3-6e8201000000</ServiceRequestID>
  <ContentMd5 />
  <Etag />
  <RequestDate>Fri, 16 Jan 2015 17:01:31 GMT</RequestDate>
  <StartTime>Fri, 16 Jan 2015 10:01:31 GMT</StartTime>
  <EndTime>Fri, 16 Jan 2015 10:01:31 GMT</EndTime>
  <Error>
    <Code>AuthenticationFailed</Code>
    <Message>Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature.
RequestId:23c0bc30-0001-0043-63f3-6e8201000000
Time:2015-01-16T10:01:45.2420186Z</Message>
    "

Sorry for my languege.

January 16th, 2015 1:02pm

It looks like an authn/authz failure. How are you trying to access the service - is it using a SAS token? Is it possible that it has expired, or the start date is incorrect, or you haven't granted appropriate permissions. Here is a good overview document on SAS tokens.

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

Free Windows Admin Tool Kit Click here and download it now
January 17th, 2015 6:56am

I already use SAS token.
January 17th, 2015 10:52am

Hi Sumet,

Thanks for your posting!

It seems that this issue is related to authentication problem. Do you try to regenerate the SAS and set the expire data as Jason-Hogg said. Please try it. And you can use the Filddler to get the error message details.

Any results, pleas feel free to let me know.

Regards,

Will

Free Windows Admin Tool Kit Click here and download it now
January 25th, 2015 4:07pm

thank but i have set my container access permission to public and i work.
February 3rd, 2015 9:27am

I'm also having a 403 failure and I notice that this question also has the same problem that I am seeing:

  <RequestDate>Fri, 16 Jan 2015 17:01:31 GMT</RequestDate>
  <StartTime>Fri, 16 Jan 2015 10:01:31 GMT</StartTime>
  <EndTime>Fri, 16 Jan 2015 10:01:31 GMT</EndTime>

Notice that it appears that the library is sending over local time as UTC.

Free Windows Admin Tool Kit Click here and download it now
February 26th, 2015 9:34pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics