<configSections> <sectionGroup name="CustomSettings"> <section name="WebSecurity" type="System.Configuration.NameValueSectionHandler, System" /> </sectionGroup> </configSections> <CustomSettings> <WebSecurity> <add key="caseSensitive" value="false" /> <add key="explicitAllow" value="false" /> <add key="noAccessLink" value="denied.htm" /> </WebSecurity> </CustomSettings>When I try accessing it from one of my classes, using this code:
NameValueCollection config = (NameValueCollection) ConfigurationSettings.GetConfig("CustomSettings/WebSecurity");
It blows up with a "File or assembly name System, or one of its dependencies, was not found. (C:\www\Default\WebApplication1\web.config line 5)"<section name="WebSecurity" type="System.Configuration.NameValueSectionHandler, System, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />and I've even looked in the Manifest for System.DLL to make sure the version and Public Key Token are correct. Nothing has helped. Does anyone have any ideas on what might be wrong with this?