DOVER, N.H. — A 41-year-old New Hampshire man is facing charges that he carried on an affair with a teenage boy from Maine that he met online.

Scott Wilson of Somersworth is facing four counts of aggravated felonious sexual assault and one count of prostitution.

Prosecutors say Wilson approached the then 13-year-old boy through MySpace in 2005 and began a sexual relationship with him.

The indictment handed up in Strafford County Superior Court alleges the sexual relationship between Wilson and the boy lasted from September 2005 until December 2007.

The New Hampshire Union Leader says the prostitution indictment alleges Wilson offered the boy for sex to others in exchange for payment.

Wilson has been in jail since November.