Windows azure storage DevelopmentStorageAccount CloudTable.CreateIfNotExists() always get 400 http error

environment:
windows 8.1,  Visual Studio 2013,  Windows Azure SDK2.2 ,  Microsoft.WindowsAzure.Storage V3.0.0.0,  Windows Azure Storage Emulator 2.2
Code snippet:
CloudStorageAccount account = CloudStorageAccount.DevelopmentStorageAccount;
CloudTableClient tableClient = account.CreateCloudTableClient();
CloudTable table = tableClient.GetTableReference(tableName);
table.CreateIfNotExists();  // this line cause error
Error Message:
System.Net.HttpWebRequest.GetResponse() +6594148
Microsoft.WindowsAzure.Storage.Core.Executor.Executor.ExecuteSync(RESTCommand`1 cmd, IRetryPolicy policy, OperationContext operationContext) +1948
[StorageException: remote server return error: (400) bad request]Microsoft.WindowsAzure.Storage.Core.Executor.Executor.ExecuteSync(RESTCommand`1 cmd, IRetryPolicy policy, OperationContext operationContext) +7389
Microsoft.WindowsAzure.Storage.Table.TableOperation.Execute(CloudTableClient client, CloudTable table, TableRequestOptions requestOptions, OperationContext operationContext) +206
Microsoft.WindowsAzure.Storage.Table.CloudTable.Exists(Boolean primaryOnly, TableRequestOptions requestOptions, OperationContext operationContext) +394
I have search many threads on internet.  And I cannot get any solution.  Who can help? Thanks a lot.

Hi,
I didn’t find any issue in the code that you provided, I also try it and in my PC it created a new table in my storage, my system is windows 8, Visual Studio 2012, Windows Azure SDK2.2, Microsfot.WindowsAzure.Storage V2.0.0.0. From my experience, there is
something wrong in you Windows Azure SDK, I recommended you to reinstall, and then try the code again. If you have any further issue, please feel free to let me know.
Best Regards
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.

Similar Messages

  • Can't install windows azure storage sdk on windows phone 8

    From Visual studio 2013 ultimate, I opened Nuget package manager console and typed following command for my windows phone 8 solution:
    install-package windowsazure.storage
    And I got the following error:
    install-package : Could not install package 'Microsoft.WindowsAzure.ConfigurationManager 1.8.0.0'. You are trying to install this package into a project that targets 'WindowsPhone,Version=v8.0', but the package does not contain any assembly references or
    content files that
    are compatible with that framework. For more information, contact the package author.
    At line:1 char:1
    I get the same problem using UI version of package manager as well.
    Did something change with the newer version of windows azure storage?

    The package you are trying to install does not include the Windows Phone library. Please use the following command instead:
    Install-Package WindowsAzure.Storage-Preview -Pre
    Thanks for this. It worked for me. Can I just add, for those that don't know how to run this command. You go to tools > Library package manager > package manager console then paste in the command and hit enter.
    Thanks again!

  • Windows Azure Tools: Failed to initialize Windows Azure storage emulator. Unable to start the storage emulator.

    Hi,
    I created a cloud service using Visual Studio 2013. When I tried to run the service, it fails with
    Windows Azure Tools: Failed to initialize Windows Azure storage emulator. Unable to start the storage emulator.
    Is there a way to debug this error? At a bare minimum, it would be great to get an error message on why it could not start.
    Thanks

    I ran Windows Azure Storage Emulator -v3.1 to launch the command line tool. I wanted to see if I could get some debug information, but that failed with the following exception.
    C:\Program Files (x86)\Microsoft SDKs\Windows Azure\Storage Emulator>WAStorageEmulator.exe start
    Windows Azure Storage Emulator 3.1.0.0 command line tool
    Unhandled Exception: System.TimeoutException: Unable to open wait handle.
       at Microsoft.WindowsAzure.Storage.Emulator.Controller.EmulatorProcessController.InternalWaitForStorageEmulator(Int32 timeoutInMilliseconds)
       at Microsoft.WindowsAzure.Storage.Emulator.Controller.EmulatorProcessController.EnsureRunning(Int32 timeoutInMilliseconds)
       at Microsoft.WindowsAzure.Storage.Emulator.StartCommand.RunCommand()
       at Microsoft.WindowsAzure.Storage.Emulator.Program.Main(String[] args)

  • Cannot install Windows Azure Storage Emulator - 3.0 Error: No available SQL Instance was found

    When trying to install Windows Azure SDK for .NET (VS 2013) - 2.3 from Web Platform Installer 4.6, the install fails because  Windows Azure Storage Emulator - 3.0 (Dependency) does not install successfully.  
    Possibly relevant lines from the install log are:
    CAQuietExec:  Entering CAQuietExec in C:\WINDOWS\Installer\MSI1223.tmp, version 3.6.3303.0
    CAQuietExec:  "C:\Program Files (x86)\Microsoft SDKs\Windows Azure\Storage Emulator\WAStorageEmulator.exe" init -forcecreate -autodetect
    CAQuietExec:  Windows Azure Storage Emulator 3.0.0.0 command line tool
    CAQuietExec:  Error: No available SQL Instance was found.
    CAQuietExec:  Error 0xfffffff6: Command line returned an error.
    CAQuietExec:  Error 0xfffffff6: CAQuietExec Failed
    CustomAction RunInitialize returned actual error code 1603 (note this may not be 100% accurate if translation happened inside sandbox)
    Action ended 11:50:13: InstallFinalize. Return value 3.
    Action ended 11:50:13: INSTALL. Return value 3.
    In terms of SQL Instance, SQL LocalDB is installed and working properly.  SQL Server 2012 is also installed and working properly.

    Hi,
    It is a SDK version issue. I suggest you could remove all azure sdk form your PC and use WPI to install the latest version again.
    If you have any questions, please let me know.
    Regards,
    Will 
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Windows Azure Storage Account Location change

    Hi Experts,
    I have deployed my Web site on Windows azure. I have created Windows Azure Storage Account. By mistakely i have set the location wrong. How can we change the location of Windows storage account? 
    Thanks!

    Hello CRM Inn,
    I am sorry to know that you have chosen an incorrect location and would like to change the location for your storage account. Unfortunately, there is no option available to change the storage location for an existing storage account.
    Your only option would be to create a new storage account, migrate data to the new storage account and delete the existing one. You can refer to this article that will give you information on migrating data from one account to another:
    http://blogs.msdn.com/b/windowsazurestorage/archive/2012/06/12/introducing-asynchronous-cross-account-copy-blob.aspx
    I also suggest that you create affinity groups. By creating affinity groups you can be sure that all your related services are under the same data center. You can refer to this article to learn about Affinity groups:
    http://msdn.microsoft.com/en-us/library/azure/jj156209.aspx
    Syed irfan Hussain

  • How to reinstall Elements 11 when you always get the message: error sharedtechnolgies failed.

    I wanted editing a photo from lightroom to elements but lightroom did not open elements. Your site said first to reinstall Elements before to try more comlicated things. It is the worst thing I ever done. Now i have lost Elements at all. It does not want to reinstall. Very funny. I tried all Adobe (!!!) suggestions: change OOBE for OOBE.bak; copy file from the dvd to computer before autorun executable,etc etc NOTHING WORKS !
    Adobe suggested to download ASA program but only to tell us that it does more exist !!! After that they suggested to try to find MANUALLY the dailies failure reports !!! It is impossible to understand those reports
    Thank for your help!!

    HI,
    Win7-64, Lightroom 4.4 Photoshop Elements 11 GPU Nvidia Quadro K600, 4g RAM, Dell U2713H , all servicepack updated.
    After several hours searching on the web Finally found that in c\programfiles(x86)\commonfiles\adobe\OOBE
    Rename in OLDOOBE
    Stop antivirus
    Restart windows
    Copy directory of the DVD Adobe PSE 11 to c\ ord\:nameit ADOBE\
    Open file
    Click right to setup.exe
    Buzinga.
    It is the worst software I ever had to deal whit.
    FargateOne
    De : Mylenium 
    Envoyé : 7 mai 2014 10:26
    À : Pascal Renauld
    Objet :  How to reinstall Elements 11 when you always get the message: error sharedtechnolgies failed.
    How to reinstall Elements 11 when you always get the message: error sharedtechnolgies failed.
    created by Mylenium <https://forums.adobe.com/people/Mylenium>  in Photoshop General Discussion - View the full discussion <https://forums.adobe.com/message/6361905#6361905>

  • HT1338 What's going on with iCloud (MobileMe)?  I'm able to sign in here, but I can't access mail on my Macbook Pro, iPhone, or work computer.  I always get an authorization error (user-id or passwork wrong).  This has been going on for almost a week now.

    What's going on with iCloud (MobileMe)?  I'm able to sign in here, but I can't access mail on my Macbook Pro, iPhone, or work computer.  I always get an authorization error (user-id or passwork wrong).  This has been going on for almost a week now.

    The single download means that you won't be able to redownload it from the store without paying, either on a computer's iTunes or an iOS device - it doesn't stop you from copying the audiobook to your other computers or syncing it to your iOS devices, you just can't redownload it. (I believe that they are all supplied to Apple by audible.com, so I assume that it's them requiring the one-time download.)
    You can download audiobooks on your computer's iTunes and sync them to iOS devices, you do not have to buy them directly on the device (if you do then you can copy them back to your computer's iTunes library by connecting the device and using the File > Devices > Transfer Purchases menu option on your computer's iTunes).
    What you are doing to sync them should work i.e.
    - connecting the iPad to your Mac
    - selecting the iPad on your Mac's iTunes
    - selecting its Books tab and selecting the audiobooks that you want to sync to the iPad and syncing/applying that selection.
    You should then get an audiobooks option in the Music app on your iPad. If they aren't appearing there  then do they show in Settings > General > Usage > Music on the device - if you have audiobooks on the iPad then they should be listed there under an 'audiobooks' heading.
    By 'restart the iPad' do you mean a soft-reset : press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider), after which the Apple logo should appear - you won't lose any content, it's the iPad equivalent of a reboot.
    You could also try closing its Music app via the iPad's taskbar : Force an app to close in iOS.
    And do a soft-reset and retry syncing.
    I assume that music and other items sync ok ?

  • I have an older Macbook with OS/X. Tried to download iTunes 10 a few times now, but when installing I always get the same error message: Run Preinstall Script for Apple Mobile Device Support. What can I do to finalise the installation?

    I have an older Macbook with OS/X. Tried to download iTunes 10 a few times now, but when installing I always get the same error message: Run Preinstall Script for Apple Mobile Device Support. What can I do to finalise the installation?

    Thanks. Short of the sort of "generic" suggestions of restaring your system, if you haven't, and repairing disk permissions and verifying the disk, I don't have any advice right now. I'll do some research and see if I can come across anything. Meanwhile, someone else may have an idea.
    Regards.

  • Always getting a server error when trying to download the products

    I' always getting a server error when trying to download the products since yesterday, what can I do ?

    Try using a different browser

  • [iPhone 2.1 beta2] gethostbyname always get Unknown host error

    gethostbyname always get "Unknown host" error.
    any thoughts?
    following is the code how to get local iphone ip:
    char buffer[256];
    if(gethostname(buffer, sizeof(buffer)) == 0)
    struct hostent* host = gethostbyname(buffer);
    if (host == NULL) {
    herror("gethostbyname");
    return NULL;
    in_addr in;
    memcpy(&in.s_addr, host->h_addr, host->h_length);
    char* addr = inet_ntoa(in);
    if(addr)
    strcpy(local_ip, addr);
    }

    I'm having a similar problem, but the emergency call/airplane mode trick didn't fix mine. I just get call failed with no option to turn off airplane mode. Anyone else have another solution?
    I'm on an original iPhone with a Mac PowerBook G4
    After trying the update to 2.1 I just get the "unknown error occurred (-3256)" in iTunes. And the connect to iTunes screen on my iPhone. I've tried resetting with no success. I cannot restore because it can't access the iPhone in iTunes (it shows up as a devise by that's it). I can't get to any settings.
    Any help will be greatly appreciated...I'm desperate.

  • When trying to download Acrobat Pro XI Student I only get this " http error: 404/support/downloads/dlm/main.jsp " warning.

    Hi!
    When trying to download Acrobat Pro XI Student I only get this " http error: 404/support/downloads/dlm/main.jsp " warning. This happens with Akamai and the altervative method too. I've paid it, is this because Adobe hasn't progressed my payment yet?
    Kind regards, xpooler.

    Luckily the problem seems to have vanished. I am not sure what happened but I think the reason was one of the browser extensions, thanks for the advice anyway!

  • How to store ISO file at Windows azure Storage

    Hello,
    I wants to know How various way store ISO file at Windows Azure (or by Content Management)so that i will be get available cross different location for use.
    Thanks
    Richa Km

    Hi  Richa,
    If you want to store a ISO image file in Azure Storage ,I  suggest that you can try to use Azure Blob storage.
    For Azure Blob storage is a service for storing large amounts of unstructured data, such as text or binary data, that can be accessed from anywhere in the world via
    HTTP or HTTPS.
    So that you can store a common ISO file use the Azure Blob storage, and you can get it anytime or anywhere .
    For more information about how to use Azure Blob storage ,please refer to the link below:
    http://azure.microsoft.com/en-us/documentation/articles/storage-dotnet-how-to-use-blobs/
    Then you can use Azure storage Explorer to store ISO image file ,please refer to the link below:
    https://azurestorageexplorer.codeplex.com/
    You also can try the CloudBerry to store the ISO  image file, please refer to the link below:
    http://www.cloudberrylab.com/free-microsoft-azure-explorer.aspx
    Best Regards,
    Kevin Shen.

  • Clientaccesspolicy.xml on Windows Azure Storage BLOB $root not work

    question is listed below:-

    Hi eric,
    How did your code the $root container and upload clientaccesspolicy.xml file?  You could refer to this code sample form Smarx (http://blog.smarx.com/posts/uploading-windows-azure-blobs-from-silverlight-part-2-enabling-cross-domain-access-to-blobs
    private void CreateSilverlightPolicy(CloudBlobClient blobs)
    blobs.GetContainerReference("$root").CreateIfNotExist();
    blobs.GetContainerReference("$root").SetPermissions(
    new BlobContainerPermissions() {
    PublicAccess = BlobContainerPublicAccessType.Blob
    var blob = blobs.GetBlobReference("clientaccesspolicy.xml");
    blob.Properties.ContentType = "text/xml";
    blob.UploadText(@"<?xml version=""1.0"" encoding=""utf-8""?>
    <access-policy>
    <cross-domain-access>
    <policy>
    <allow-from http-methods=""*"" http-request-headers=""*"">
    <domain uri=""*"" />
    <domain uri=""http://*"" />
    </allow-from>
    <grant-to>
    <resource path=""/"" include-subpaths=""true"" />
    </grant-to>
    </policy>
    </cross-domain-access>
    </access-policy>");
    And about the error info, I suggest you could install the latest Silverlight (http://social.msdn.microsoft.com/Forums/silverlight/en-US/77c14c7d-dd5e-4281-84d4-345e7439a895/agenetworkerror-4001?forum=silverlightjavascript
    Regards,
    Will
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Uploading Stream (Images/Audio/Video files/Doc files) to Windows Azure Storage Blob by using SharePoint Online 2013 Library

    Dear All,
    How I can store the Images/Audio/Video/documents files in blob storage by help of SharePoint document library and keep a reference to them in SharePoint by putting metadata in a SharePoint Library.
    I searched a lot, but not finding suitable source.
    Thanks,
    Sharad
    sharadpatil

    hi,
    Base on my experience, you could use azure storage reference sharepoint app. I suggest you could recommend this blog via (http://sachintana.blogspot.com/2012/08/azure-blob-storage-for-sharepoint.html ).
    Regards,
    Will
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • CS6 on Windows 7 - when I try and send my project to Adobe Link, then to Encore I repeatedly get the error message "Encore has stopped working, windows will close the program".  I get the same error message when I try and open Encore on its own.  Help wou

    Both when I open Encore as a standalone program, and when I try and export my work via Adobe Link to Send to Encore, I get the same error message - "Adobe Encore has stopped working.  Windows will close the program.  Help would really be appreciated.  Thanks.

    Now that is impressive Stan, thankyou!  So simple ...  I don't suppose you know why the "build" button is greyed out do you?  Don't worry if you don't have more "magic dust" at your fingertips, I'll re-check my settings again, and again ...  Thanks for your help.  Doreen.

Maybe you are looking for