I have been trying to retrieve SharePoint site collection inside a different ASP.NET web application using CSOM as follows.

using (var context = new ClientContext("https://sharePointSite/"))
                var credentials= new NetworkCredential("userName", "password", "domain");
                context.Credentials = credentials;
                context.Load(context.Web, w => w.Title);


Above code work as expected when I am running it locally (dev environment), but I get following error message when publish to the web server.

The remote server returned an error: (501) Not Implemented.

Web application using .NET Framework 4.5.2, Visual Studio 2015. Web server is different from SharePoint server.

Does anyone had issue like this?

  • Is your web server behind a proxy? Might need to configure the proxy settings in your web app. – James Love Feb 25 '18 at 13:12

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.