The coronal and transition region temperature structure of a solar active region