What am I doing wrong
Here's my code.
internal class AppSettingProvider : SettingsProvider { private string pApplicationName = "Evolution"; public AppSettingProvider() : base() { Console.WriteLine(base.Name); } public override string ApplicationName { get { return pApplicationName; } set { pApplicationName = value; } } public override SettingsPropertyValueCollection GetPropertyValues(SettingsContext context, SettingsPropertyCollection collection) { throw new Exception("The method or operation is not implemented."); } public override void SetPropertyValues(SettingsContext context, SettingsPropertyValueCollection collection) { //Get the instance flag from the .config file. string Instance = System.Configuration.ConfigurationManager.AppSettings["Instance"]; throw new Exception("The method or operation is not implemented."); } } |

SettingsProvider base.Name always null, thows error on instantiation
TRW_Mike
- Pat