private static string GetApplicationPath() { Assembly entryAssembly = Assembly.GetEntryAssembly(); if (entryAssembly != null) { return Path.GetDirectoryName(entryAssembly.Location); } return ""; } }