Steve Spencer's Blog

Blogging on Azure Stuff

Using Azure Storage SDK outside of Azure

When trying to access the Azure Storage SDK in a non-Azure application I kept getting the following error:

 

“The type or namespace name 'WindowsAzure' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)    “

 

References to Microsoft.WindowsAzure.ServiceRuntime and Microsoft.WindowsAzure.StorageClient were both already included as references to the assembly that was trying to store data in a table. After a bit of investigation the reason for the error was that the assembly was set to have the target framework of “.Net Framework 4 Client Profile”. Changing to “.Net Framework 4” solved the problem.

Comments (3) -

  • Steve

    6/19/2011 8:20:36 PM | Reply

    I have seen this on a few different projects of late, seems a good few of the newer VS2010 templates default to client profile. so a goo tip to watch out for

  • Steve

    6/22/2011 10:19:41 AM | Reply

    Thanks a lot, really worked for me.

  • Steve

    10/22/2011 3:54:47 PM | Reply

    Thanks Richard.  You prevented my laptop from leaving the room through a window.  My laptop also thanks you.

Loading