Azure Table Storage Gotcha

Date Published: 11 February 2009

Azure Table Storage Gotcha

Steve Marx gave a great talk on getting started with Azure at PDC. You can watch the whole thing here and download his samples. Once you download the Azure SDK (I’m using the January CTP) and ASP.NET MVC (I’m using the RC), you can get his stuff up and running without *too* much trouble. However, one thing that took me a little while to figure out is that for some reason even when Azure Storage was running, the blog would error out saying that it couldn’t find the table it was looking for. Of course, it was a little more cryptic than that – what it actually said was:

Resource not found for the segment ‘BlogEntryTable’.

I tried making sure the table existed and even added some rows to it manually and everything checked out fine. I doublechecked my storage connection settings and that storage was running. I read and reread the readme. And then finally I looked at the Development Storage UI a little bit closer:

I had naturally run it using the SDK’s rundevstore.cmd script, and it was using its own database, not the one that I had set up for the Blog sample. Clicking on Tools – Table Service Properties allowed me to quickly change over to the blog tables (note – this only worked after running devtablegen Blog_WebRole.dll as described in the readme) let me update the Table storage provider to work against the correct instance.

With that out of the way, I was good to go until the next problem presented itself (see next post).

Steve Smith

About Ardalis

Software Architect

Steve is an experienced software architect and trainer, focusing on code quality and Domain-Driven Design with .NET.