AzureStorageTypeProvider icon indicating copy to clipboard operation
AzureStorageTypeProvider copied to clipboard

System.Configuration.ConfigurationManager is not being resolved

Open xperiandri opened this issue 6 years ago • 2 comments

Description

Error FS3033 The type provider 'ProviderImplementation.AzureTypeProvider' reported an error: Could not load file or assembly 'System.Configuration.ConfigurationManager, Version=4.0.1.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The system cannot find the file specified.

Repro steps

<PackageReference Include="FSharp.Azure.StorageTypeProvider" Version="2.0.1" />
<PackageReference Include="FSharp.Control.FusionTasks" Version="2.0.2" />
<PackageReference Include="System.Configuration.ConfigurationManager" Version="4.5.0" />
<PackageReference Include="WindowsAzure.Storage" Version="9.3.3" />
type Azure = AzureTypeProvider<tableSchema = "Tables.json",
                               configFileName = "Storage.config",
                               connectionStringName = "Emulator">

config is the same as in sample

Expected behavior

System.Configuration.ConfigurationManager is resolved

Actual behavior

System.Configuration.ConfigurationManager is not resolved

Related information

  • Windows 10 Pro x64
  • 2.0.1
  • .NET Standard 2.0 library

xperiandri avatar Mar 07 '19 00:03 xperiandri

This does appear to be a binding redirect issue - can you try pinning Configuration Manager to 4.0.1?

isaacabraham avatar Mar 07 '19 15:03 isaacabraham

The versnion of dll is 4.0.1 in that package

xperiandri avatar Mar 07 '19 15:03 xperiandri