Read Web.Config settings while using Delay Activity in SharePoint Visual Studio Workflow
Be careful if you ever have to read a web.config setting from a SharePoint visual studio workflow when you are also using Delay activities. When a workflow wakes up from a Delay activity, it’s no longer running in an ASP.Net Worker Process. Instead it’s running in the process for SharePoint Workflow Timer service. So, the method to read the setting would be different in that case. Your method to read the web.config app settings should be somethink like below: private string GetWebConfigSetting(string settingKey) { string webconfigSettingValue = String.Empty; if (ConfigurationManager.AppSettings[settingKey] != null) //reading app setting from web configuration file { webconfigSettingValue = ConfigurationManager.AppSettings[settingKey]; } ...