3

This code was working previously but on updating nuget packages something seems to have gone awry. If I add in the Microsoft.WindowsAzure.StorageClient dll that had previously been deployed then it is not recognising the Cloud classes such as CloudBlobClient which I am using WindowsAzure.Storage nuget 4.2

I need this to be able to write to azure file services so cannot simply uncomment

Jay
  • 3,012
  • 14
  • 48
  • 99
  • Can you describe the exact problem you're facing? You mentioned that you want to write to Azure File Service but at the same time you mentioned about `CloudBlobClient`. For writing to File Service, you would use something like `CloudFileClient` – Gaurav Mantri Aug 05 '14 at 15:40
  • Yes I am using CloudFileClient I just named first class I saw on the page, I am trying a using Microsoft.WindowsAzure.StorageClient but it tells me that storageclient does not exist in the namespace Microsoft.WindowsAzure which had been previously been working before nugets got changed for upgrade to MVC5 – Jay Aug 05 '14 at 15:44
  • `Microsoft.WindowsAzure.StorageClient` is the old (and I mean really-really old) version. You should be using `Microsoft.WindowsAzure.Storage`. What was the version of the storage client library before you updated to 4.2? – Gaurav Mantri Aug 05 '14 at 15:57
  • Why wouldnt this be picked up? – Jay Aug 05 '14 at 15:57
  • Then it tells me that storage is not part of Microsoft.WindowsAzure.Storage namespace, I have the 4.1.0 dll in the project I am attempting to build – Jay Aug 05 '14 at 16:00
  • Get rid of `Microsoft.WindowsAzure.StorageClient.dll` library from your project. I believe presence of both old and new (`Microsoft.WindowsAzure.Storage.dll`) is creating problem for you. – Gaurav Mantri Aug 05 '14 at 16:02
  • Microsoft.WindowsAzure.Storage.dll is in the project but when typing the using statement I do no see storage in intellisense – Jay Aug 05 '14 at 16:15
  • Microsoft.WindowsAzure.StorageClient is shipped with the 2.4 tools for visual studio so not sure what is going on here to be honest but I cannot get my storage classes to be recognised since adding it despite the reference for either or even both being in the solution – Jay Aug 06 '14 at 09:19

2 Answers2

0

Microsoft.WindowsAzure.StorageClient namespace does not exist in the new Microsoft.WindowsAzure.Storage.dll. I would strongly recommend removing all references to Microsoft.WindowsAzure.StorageClient.dll and changing the code to use the new library.

If you still cannot see Microsoft.WindowsAzure.Storage after these steps, you can try uninstalling the NuGet package and reinstalling it.

Serdar Ozler
  • 3,752
  • 17
  • 24
0

Although the Microsoft.WindowsAzure.StorageClient DLL is likely outdated, I succeeded to download it manually from https://nuget.org/packages/AzureSDK2.2DLLs/ and install it to Visual Studio 2013 Community (using the instructions from another answer).

Melebius
  • 6,183
  • 4
  • 39
  • 52