C
C#2y ago
danno8524

❔ 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
Patrick
Patrick2y ago
what is CloudConfigurationManager
Patrick
Patrick2y ago
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...
Patrick
Patrick2y ago
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.
danno8524
danno8524OP2y ago
Could you show me a code snip as how you would recommend I do this?
Accord
Accord2y ago
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.
Want results from more Discord servers?
Add your server