private void Serialize() { string path = ConfigurationManager.AppSettings["connectionstring"]; if (ConfigurationManager.AppSettings["repository"] != "Database") { path = browse.GetFolderPath(); } assembly.Save(path); }