none
CloudTable CreateIfNotExists throws exception

    Question

  • Hi,

    I have the following code in a managed C++ class:

    mStorageAccount = CloudStorageAccount::Parse(connectionString);
    mTableClient = mStorageAccount->CreateCloudTableClient();
    mOutputResults = mTableClient->GetTableReference("outputResults");

    bool test = mOutputResults ->CreateIfNotExists(nullptr, nullptr);

    This code always throws the following exception:

    A first chance exception of type 'System.IO.FileNotFoundException' occurred in Microsoft.WindowsAzure.Storage.dll
    A first chance exception of type 'Microsoft.WindowsAzure.Storage.StorageException' occurred in Microsoft.WindowsAzure.Storage.dll
    Step into: Stepping over method without symbols 'Microsoft.WindowsAzure.Storage.Core.Executor.Executor.ExecuteSync<Microsoft.WindowsAzure.Storage.Table.TableResult>'

    I am at a loss as to why this is happening.  This code is almost exactly the same as for the C#, and accessing Blob storage with the storage account works fine.  

    Any help here would be greatly appreciated.

    Regards,

    Monday, July 27, 2015 2:05 PM

Answers

All replies