jump to navigation

SharedKey Authorization Header in VB.NET October 26, 2010

Posted by Toby77006 in Azure TableStorage.
trackback

I couldn’t understand why my VB program was getting 403 Forbidden when the Azure Management Console could access my table just fine. Stupid coding problem, I was following C# examples that all include statements like this:

string messagetoSign = String.Format(“{0}\n/{1}/{2}”, gmtDate, accountName, tableName);

The VB equivalent is

Dim messagetoSign = String.Format(“{0}{3}/{1}/{2}”, gmtDate, accountName, tableName, Chr(10))

You would think it wanted Environment.NewLine but no, it just wants a line-feed.

Advertisement

Comments»

No comments yet — be the first.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.