you may need to call "manage-bde -off" before attempting -on again.
This error can happen if the file C:\Windows\System32\Recovery\ReAgent.xml is corrupt or cannot be read in any way.
When I tried to open it with a text editor I got the same error. Renaming (deleting) the file solves the problem. The file will be recreated on the next restart or when enabling bitlocker.