ChustaSoft / SecureConfig

Tool to give security to the configurations of an ASPNET Core application by encrypting sensitive information and handling in a secure way
GNU General Public License v3.0
15 stars 2 forks source link

System.NullReferenceException: 'Object reference not set to an instance of an object.' #53

Closed venkatpoluri closed 1 year ago

venkatpoluri commented 1 year ago

image I'm trying to use this Nuget package in ASP.Net MVC Core TFM 6.0, it is throwing the below error. Can you please provide assistance. System.NullReferenceException HResult=0x80004003 Message=Object reference not set to an instance of an object. Source=ChustaSoft.Tools.SecureConfig StackTrace: at ChustaSoft.Tools.SecureConfig.SettingsConverter.Get[TSettings](String filePath, String sectionName) at ChustaSoft.Tools.SecureConfig.IServiceProviderExtensions.GetEncryptedConfiguration[TSettings](IServiceScope scope, IWritableSettings`1 writableSettings) at ChustaSoft.Tools.SecureConfig.IServiceProviderExtensions.PerformSettingsEncryption[TSettings](IServiceProvider services, String settingsParamName) at ChustaSoft.Tools.SecureConfig.WebHostExtensions.EncryptSettings[TSettings](WebApplication webApplication, Boolean encrypt, String settingsParamName)

venkatpoluri commented 1 year ago

AppSettings not available in Environment wise Appsettings.json