Posted on: 12/2/2013 10:07:33 PM | Views : 782

We are running into issues(errors) from time to time and when it happens it fails on this method..
public static string GetAppSetting(string setting) { if (!appSetting.ContainsKey(setting)) { if (HttpContext.Current != null) { appSetting[setting] = WebConfigurationManager.AppSettings[setting]; } else { appSetting[setting] = System.Configuration.ConfigurationManager.AppSettings[setting]; } } return appSetting[setting]; } There has to be a better way to write this to handle the exceptions and not cause the page to break.
Within our pages we have this within the title tag
<title> <%= Core.Util.GetAppSetting("websitename") %> </title> The ex ...

Go to the complete details ...