❔ Accessing StorageConnectionString from AppSettings.json Asp.net core 6.0
Attempting to get access to my Azure Table connection string using
CloudStorageAccount storageAccount = CloudStorageAccount.Parse(
CloudConfigurationManager.GetSetting("StorageConnectionString"));
I am recieving error
"System.DllNotFoundException: 'Unable to load DLL 'fusion.dll' or one of its dependencies: The specified module could not be found."
What is going on here?
5 Replies
what is
CloudConfigurationManager
https://github.com/Azure/azure-sdk-for-net/issues/4010#issuecomment-362145356 this implies you're mixing .NET FX with .NET Core and your code is incorrect
GitHub
Unable to load DLL 'fusion.dll': The specified module could not be ...
From @Nefcanto on December 23, 2017 15:1 Environment: VS 2017 Community edition 15.5.2 dotnet --version => 2.1.2 Windows 10 Enterprise Steps to reproduce this bug: Create a simple console applic...
if you're trying to get values from
IConfiguration
, this isn't how you'd do it.
I suspect you're using CloudConfigurationManager
from FX, and you shouldn't be using it at all.Could you show me a code snip as how you would recommend I do this?
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.