Sharepoint access issue

Venkata Pavan Kumar Kolusu 1 Reputation point
2020-08-04T00:06:02.33+00:00

I am able to access the Sharepoint online site in web browser but i am getting error "The remote server returned an error 407 Proxy Authentication Required" in ExecuteQuery method in visualstudio. Code is working for on premise sites. I am using Sharepoint2013.

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,143 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Amos Wu-MSFT 4,051 Reputation points
    2020-08-04T07:20:01.213+00:00

    CSOM connect SharePoint Online demo(need add Microsoft.SharePointOnline.CSOM reference):
    15410-code.txt

    More reference:
    https://www.c-sharpcorner.com/article/connect-to-sharepoint-2013-online-using-csom-with-console-ap/

    -----------------------
    Updated-------------------------
    You could try the way in this blog:https://www.spguides.com/the-remote-server-returned-an-error-407-proxy-authentication-required/
    After you run the code, you can restore these settings.


  2. Trevor Seward 11,696 Reputation points
    2020-08-05T20:32:06.973+00:00

    Since you're using on-prem, it sounds like you have a pre-authentication proxy in front of SharePoint. You may need to bypass that proxy server if you're going to use credential-based authentication.