string codeBase = Assembly.GetExecutingAssembly().CodeBase;
string assemblyPath = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);