<PackageReference Include="System.Configuration.ConfigurationManager" Version="4.6.0-preview5.19224.8" />

IConfigErrorInfo

public interface IConfigErrorInfo
Defines an interface used by the .NET Framework to support creating error configuration records.
string Filename { get; }

Gets a string specifying the file name related to the configuration details.

int LineNumber { get; }

Gets an integer specifying the line number related to the configuration details.