Issue: No config item was found for category


I am simply trying to retrieve a value from the Config store and randomly a config item can not be found .
The environment is a production server with MOSS 2007. It was working fine for a few months.
Please help or provide any insights.
Stack Trace:
COB.SharePoint.Utilities.InvalidConfigurationException: No config item was found for category 'Human Resources' and key 'Holidays'.
at COB.SharePoint.Utilities.ConfigStore.<>c__DisplayClass1.<GetValue>b__0()
at Microsoft.SharePoint.SPSecurity.CodeToRunElevatedWrapper(Object state)
at Microsoft.SharePoint.SPSecurity.<>c__DisplayClass4.<RunWithElevatedPrivileges>b__2()
at Microsoft.SharePoint.Utilities.SecurityContext.RunAsProcess(CodeToRunElevated secureCode)
at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(WaitCallback secureCode, Object param)
at Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(CodeToRunElevated secureCode)
at COB.SharePoint.Utilities.ConfigStore.GetValue(String Category, String Key)
at Questrade.QTown.Common.QConfig.GetConfigValue(String configCatetory, String configKey)


nmccready wrote May 13, 2010 at 2:50 PM

I am having similar issues. The code always bombs at line 137 on ConfigStore.cs on function SPSecurity.RunWithElevatedPrivileges(delegate() . Is this a better possible solution than calling that function? http://solutionizing.net/2009/01/06/elegant-spsite-elevation/

wrote Feb 14, 2013 at 2:26 AM