Provisioning.OneDrive solution in high-trust on-prem environment

Jul 31, 2014 at 5:52 AM
I try to run the solution Provisioning.OneDrive as a high-trust app in an on-prem environment. I get an exception when trying to load the personal site rootweb into context:
...
Web rootWeb = personalSite.RootWeb;
clientContext.Load(rootWeb);
clientContext.ExecuteQuery();
...

The message from the exception is like this:
...
The object id "site:8bd3330e-7a33-47de-a209-25a36d76b41e" is invalid.
...


Does anyone have a solution or workaround to this?