0

I have an ASP.Net Web Forms application that has some code that gets values from a SharePoint site. It was working fine until we migrated the app to use Azure AD authentication. I'm guessing it's due to the fact that the identity from Azure AD is different from what SharePoint expects? The error is:

Exception of type 'System.ArgumentException' was thrown. Parameter name: encodedValue

... it's being thrown by this:

SPSecurity.RunWithElevatedPrivileges(delegate()
{
    ...
});

Our application pools currently are running on accounts that are on a different domain than what the Azure AD is using. Since RunWithElevatedPrivileges gets the application pool account, is it possible that that is the cause of the issue?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.