 Soon after Henry 's coronation Gerard was appointed to the recently vacant see of York , and became embroiled in the long @-@ running dispute between York and the see of Canterbury concerning which archbishopric had primacy over England . Gerard managed to secure papal recognition of York 's claim to jurisdiction over the church in Scotland , but he was forced to agree to a compromise with his counterpart at Canterbury , Anselm , over Canterbury 's claims to authority over York , although it was not binding on his successors . In the Investiture Controversy between the king and the papacy over the right to appoint bishops , Gerard worked on <unk> the claims of the two parties ; the controversy was finally resolved in 1107 . 
