When playing as Dumbledore fighting against Voldemort, do not try casting Levicorpus or Petrificus Totalus as they do not work against him. When Voldemort is on the platform the first time, you can only hurt him when he unleashes his stored power at you. Use Protego to deflect his magical blast.