I am getting this error in azure log when I try to publish a console application which will create a list in SharePoint.

Also this error is coming when context.executeQuery() is done. What do I need to solve this issue.

  • It was a access related issue, Admin access is needed on sharepoint site collection where list is created using this exe which we publish to azure
    – KumarV
    Commented Apr 13, 2017 at 8:36

2 Answers 2


I know this is old, but I have recently got the same error. You can get run into this scenario, when your SharePoint policy was changed to permit only certain type of browsers. For example in my case IE was approved, while Chrome/Firefox and everything else including my .Net application, were forbidden. Easy to test, just try to open SP with other browsers.


In my case the account I was using to connect to SharePointOnline in the code had 2FA enabled. Using a different account with the same access but no 2FA worked perfectly.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.