Exception Could not load file or assembly Microsoft.WindowsAzure.Configuration Edit

Murugan Andezuthu Dharmaratnam | 19 January 2021 | 347

asp .mvc exception Could not load file or assembly 'Microsoft.WindowsAzure.Configuration' writing code to upload file to blob stroage.

Exception Detail

Could not load file or assembly 'Microsoft.WindowsAzure.Configuration, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

Solution

The solution Was to add a reference using NuGet package manager.

  1. Right click on references in the project
  2. Click on Manage NuGet packages
  3. On the browse tag search for Microsoft.WindowsAzure.Configuration
  4. Select Microsoft Azure Configuration Manager by Microsoft
  5. Select the latest version and click on install