Although the example is right, the comment about the parameter exePath is wrong. This parameter IS NOT the 'path of the configuration file', as said, but the path of the executable, or assembly. If you pass a configuration file, this function does not throw a error, but you will not be able to read any configuration. Please correct this.