Duncan Chell, 53, from Cheshire, and 32-year-old Dean Lynch, from Manchester, were on a petition alleging a charge under the Misuse of Drugs Act and each appeared separately before Sheriff William Anderson at Dumfries.
No plea or declaration was made and each was allowed bail.