A 53-year-old man was taken into custody in San Marcos after allegedly attempting to solicit sexual services from a minor, while also being involved in an ongoing narcotics investigation.