1
Vote

Getting a variable in the config throws the exeption {"The key 'ConfigStoreCacheDependencyFile' does not exist in the appSettings configuration section."}

description

When i try to use the solution, by getting a value from the configuration list, i get the following exeption:
{"The key 'ConfigStoreCacheDependencyFile' does not exist in the appSettings configuration section."}
 
I have the web.config altered to this:
<add key="ConfigSiteUrl" value="http://myserver" />
<add key="ConfigWebName" value="" />
<add key="ConfigListName" value="Config" />
<add key="ConfigStoreCacheDependencyFile" value="c:\ConfigStoreCacheDependency.txt" />

comments

jonny666 wrote Nov 3, 2009 at 5:03 PM

It throws the exeption here, in the ConfigStore.cs
public static readonly string CacheDependencyFilePath = (string)m_Reader.GetValue(m_CacheFilePathKey, typeof(string));

heguangm wrote Apr 6, 2010 at 5:55 PM

make sure run iisreset; make sure you have the configuration changes in the right web.config: if you run your code in a timer job, the web.config may be the one for the central admin rather than your regular sharepoint web application.

wrote Feb 14, 2013 at 2:26 AM