Oil prices rose after Iran signaled it had no intention of holding direct talks with the United States.