2 days ago my 2000 td5 suffered same problem, key fob would not work, key got me into the car, and alarm went nuts.
Spoke to local LR dealer who ran through the reprograming of the key, which I attempted several times to no avail.
A friend of mine who runs a multifranchise workshop has had it...