I was getting the above error while trying to create a SharePointDocumentLocation programmatically. However I was able to create an incident record without any issue.
As it turned out, this is what I was missing
OrganizationServiceProxy orgService = new
OrganizationServiceProxy(organizationUri, homeRealmUri, credentials, null);
orgService.EnableProxyTypes();
Hope it helps!
Could you help me?
I had that problem, so I used the orgService.EnableProxyTypes(); method
but now I’ve got the “Access Denied” exception.
LikeLike