Using Azure Storage SDK outside of Azure

by Steve Spencer 19. June 2011 09:03

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.

Tags: ,

Windows Azure | Visual Studio

Comments (3) -

Steve
Steve
6/19/2011 8:20:36 PM #

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
Steve
6/22/2011 10:19:41 AM #

Thanks a lot, really worked for me.

Steve
Steve
10/22/2011 3:54:47 PM #

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

Add comment

  Country flag

biuquote
  • Comment
  • Preview
Loading