I have a configuration file such as:
Your call to ToDictionary needs a key and value selector. Starting with that you have, it can be
ToDictionary
var dictionary = yourQuery.ToDictionary(item => item.Name, item => item.Value);