To my second question I found a solution:
-
Add a reference to System.Configuration to your code file.
using System.Configuration;
-
The setting may now be referenced correctly…
ConfigurationManager.AppSettings["UrlToPing"].ToString();
To my second question I found a solution:
Add a reference to System.Configuration to your code file.
using System.Configuration;
The setting may now be referenced correctly…
ConfigurationManager.AppSettings["UrlToPing"].ToString();