I have a worker role that I have built with Microsoft.WindowsAzure.StorageClient
v1.7. On my dev machine, and with my compute emulator, the application works fine. However, when I deploy to Azure, a table storage operation fails silently. The code is below - the BackupResult
class inherits from TableServiceEntity
:
Trace.WriteLine("Entering cloud storage method");
CloudTableClient client = storageAccount.CreateCloudTableClient();
Trace.WriteLine("Got the client..."); // Last message received.
client.CreateTableIfNotExist("LastRun");
Trace.WriteLine("Created the table (maybe)...");
TableServiceContext context = client.GetDataServiceContext();
Trace.WriteLine("Got the context...");
BackupResult lastResult = context.CreateQuery<BackupResult>("LastRun").ToList().OrderByDescending(x => x.RunTime).FirstOrDefault();
Trace.WriteLine("Returning the last result. It ran at: " + lastResult.ToString());
return lastResult;
No exception is thrown at all, but I do not see any of the trace logs below the marked message, and my application's logic does not proceed outside of this method. My local configuration is identical to my cloud configuration. What could cause such behavior?