Why can't I write this sentence? When have you visited Paris? Should it be when did you visit Paris? and why?
Both are fine, with different meanings.
When have you visited Paris? This suggest the speaker thinks you may have visited Paris more than once in the period up to the present time, and that these visits have some importance to the present sit