I’ve been following this tutorial on msdn which loads a custom configSection. http://msdn.microsoft.com/en-us/library/system.configuration.configurationcollectionattribute.aspx I’m doing this in asp.net and I keep getting an error on
System.Configuration.Configuration config =
ConfigurationManager.OpenExeConfiguration(
ConfigurationUserLevel.None) as Configuration;
so i removed that and just used
UrlsSection myUrlsSection =
ConfigurationManager.GetSection("MyUrls") as UrlsSection;
Could someone copy and past the code from msdn and make a project in asp.net and test the code and see if they get same error or see if myUrlsSection = null and if you don’t get a problem could you share what you did to make it work
This is what I tried and it works nice.
My
UrlsSectionclassAnd my config entry.