static string GetAssemblyLocation(Assembly a) { string loc; try { loc = a.Location; } catch (Exception) { loc = "<dynamic>"+a.FullName; } return loc; }