Use AppSettings.GetList() API to get an array of items, the Get API is for a complex type in a single string value, e.g containing a comma delimited list
An error occurred while starting the application.
Internal Server Error
An error occurred while starting the application.
ConfigurationErrorsException:
NullReferenceException: Object reference not set to an instance of an object.
ServiceStack.Text.TranslateListWithElements.TranslateToConvertibleGenericICollectionCache(object from, Type toInstanceOfType, Type fromElementType)
The oauth.facebook.Permissions setting had an invalid format. The value “email,user_friends” could not be cast to type System.String[]
ServiceStack.NetCoreAppSettings.Bind(IConfigurationSection config)
NullReferenceException: Object reference not set to an instance of an object.
ServiceStack.Text.TranslateListWithElements.TranslateToConvertibleGenericICollectionCache(object from, Type toInstanceOfType, Type fromElementType)
ServiceStack.AutoMappingUtils.ConvertTo(object from)
ServiceStack.NetCoreAppSettings.Bind(IConfigurationSection config)
Show raw exception details
System.NullReferenceException: Object reference not set to an instance of an object.
at ServiceStack.Text.TranslateListWithElements.TranslateToConvertibleGenericICollectionCache(Object from, Type toInstanceOfType, Type fromElementType)
at ServiceStack.AutoMappingUtils.ConvertTo[T](Object from)
at ServiceStack.NetCoreAppSettings.Bind[T](IConfigurationSection config)
ConfigurationErrorsException: The oauth.facebook.Permissions setting had an invalid format. The value “email,user_friends” could not be cast to type System.String[]
ServiceStack.NetCoreAppSettings.Bind(IConfigurationSection config)
NullReferenceException: Object reference not set to an instance of an object.
ServiceStack.Text.TranslateListWithElements.TranslateToConvertibleGenericICollectionCache(object from, Type toInstanceOfType, Type fromElementType)
ServiceStack.AutoMappingUtils.ConvertTo(object from)
ServiceStack.NetCoreAppSettings.Bind(IConfigurationSection config)
Was meant to handle a comma delimited list in a single string value, but there was an issue with the ConvertTo API fallback in deserializing string values which was also resolved on MyGet.