locked
Azure storage table no response! RRS feed

  • Question

  • It's a very very strange problem!

    In project A, I test Azure storage service(blob, table, queue). All is ok.

    In project B, I using the Azure storge table service, but it is no response! Then I test blob and queue, they are right!

    Here is the code:

                storageAccount = CloudStorageAccount.Parse(CloudConfigurationManager.GetSetting("CaptSampleStorage"));

                audioBlob = storageAccount.CreateCloudBlobClient().GetContainerReference("mycontainer");
                bool y = audioBlob.Exists();

                CloudQueue qq = storageAccount.CreateCloudQueueClient().GetQueueReference("cao");
                qq.Exists();

                CloudTableClient tableClient = storageAccount.CreateCloudTableClient();
                submitInfoTable = tableClient.GetTableReference("people");
                bool x = submitInfoTable.Exists();   // I debug, when it go to here, I waiting long time and it is no response

    The *.Cloud/Local.cscfg file:

    <?xml version="1.0" encoding="utf-8"?>
    <ServiceConfiguration serviceName="WindowsAzure2" xmlns="http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration" osFamily="3" osVersion="*" schemaVersion="2013-03.2.0">
      <Role name="WCFServiceWebRole1">
        <Instances count="1" />
        <ConfigurationSettings>
          <Setting name="Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString" value="UseDevelopmentStorage=true" />
          <Setting name="CaptSampleStorage" value="DefaultEndpointsProtocol=https;AccountName=[account];AccountKey=[key]" />
        </ConfigurationSettings>
      </Role>
    </ServiceConfiguration>

    I think may be project B hava some error configure. But I can't find it. Please help me.

    Monday, August 19, 2013 3:19 AM

Answers

  • Hi fcjy,

    Thanks a lot for your feedback.

        >>  boolx = submitInfoTable.Exists();   // I debug, when it go to here, I waiting long time and it is no response

    I try a test and this issue reproduced. After long time wait I get an error message. Here is the screenshot.

    when I remove (Microsoft.Data.OData, Version=5.0.0.0)(Microsoft.Data.Edm, Version=5.0.0.0)(System.Spatial, Version=5.0.0.0)) and refer the (Microsoft.Data.OData, Version=5.2.0.0)(Microsoft.Data.Edm, Version=5.2.0.0)(System.Spatial, Version=5.2.0.0)) Then the issue was resolved.

    Hope this helps


    <THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
    Thanks
    MSDN Community Support

    Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

    • Marked as answer by fcjy Thursday, August 22, 2013 6:37 AM
    Wednesday, August 21, 2013 8:01 AM

All replies

  • make sure that your account settings on both project A and B are same, there is nothing else i can think of that will block it.

    --------------------------------------------

    Please mark as answered if it helped


    Please mark as answered if it helped Vishal Narayan Saxena http://twitter.com/vishalishere http://www.ogleogle.com/vishal/

    Monday, August 19, 2013 5:31 AM
  • Hi fcjy,

    I recommend you to use the NuGet package manager to reinstall Microsoft.WindowsAzure.Storage. The following link describes how to find, install, remove, and update NuGet packages using the Manage NuGet Packages dialog box.

    http://docs.nuget.org/docs/start-here/managing-nuget-packages-using-the-dialog

    If that couldn’t help you, You can try to put the following addition configuration in your respective config files (web.config for the MVC and app.config for the worker role):

    <runtime>
        <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
          <dependentAssembly>
            <assemblyIdentity name="Microsoft.Data.OData" publicKeyToken="31bf3856ad364e35" culture="neutral" />
            <bindingRedirect oldVersion="0.0.0.0-5.5.0.0" newVersion="5.5.0.0" />
          </dependentAssembly>
          <dependentAssembly>
            <assemblyIdentity name="Microsoft.Data.Edm" publicKeyToken="31bf3856ad364e35" culture="neutral" />
            <bindingRedirect oldVersion="0.0.0.0-5.5.0.0" newVersion="5.5.0.0" />
          </dependentAssembly>
        </assemblyBinding>
    </runtime>
    

    Best Regards


    <THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
    Thanks
    MSDN Community Support

    Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

    Tuesday, August 20, 2013 5:56 AM
  • I try it like you said. But the problem is not solved. Sad - -
    Tuesday, August 20, 2013 8:02 AM
  • check account settings for local and cloud configs.. 

    Please mark as answered if it helped Vishal Narayan Saxena http://twitter.com/vishalishere http://www.ogleogle.com/vishal/

    Tuesday, August 20, 2013 6:20 PM
  • Hi fcjy,

    Thanks a lot for your feedback.

        >>  boolx = submitInfoTable.Exists();   // I debug, when it go to here, I waiting long time and it is no response

    I try a test and this issue reproduced. After long time wait I get an error message. Here is the screenshot.

    when I remove (Microsoft.Data.OData, Version=5.0.0.0)(Microsoft.Data.Edm, Version=5.0.0.0)(System.Spatial, Version=5.0.0.0)) and refer the (Microsoft.Data.OData, Version=5.2.0.0)(Microsoft.Data.Edm, Version=5.2.0.0)(System.Spatial, Version=5.2.0.0)) Then the issue was resolved.

    Hope this helps


    <THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
    Thanks
    MSDN Community Support

    Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

    • Marked as answer by fcjy Thursday, August 22, 2013 6:37 AM
    Wednesday, August 21, 2013 8:01 AM
  • Thank you very much ! 

    I solved it!

    Thursday, August 22, 2013 6:37 AM