Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7918779
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T15:37:21+00:00 2026-06-03T15:37:21+00:00

I’m trying to connect to a Sharepoint instance to publish some content via a

  • 0

I’m trying to connect to a Sharepoint instance to publish some content via a 3rd party tool.

I don’t have control of the Sharepoint instance, but am assured my account has full permissions.

        ClientContext ctx = new ClientContext("https://thesharepointsite.com");
        ctx.Credentials = new System.Net.NetworkCredential(@"username", "password", "domain");
        Web w = ctx.Web;
        ctx.Load(w);
        ctx.ExecuteQuery();

On the ExecuteQuery line, I get the exception:

The remote server returned an error: (401) Unauthorized.

(There is no inner exception.)

I can confirm the url & credentials work when I login via a browser.

Based on this question, my assumption is that it is a permissions issue.

If that’s the case, then what permission do I need to ask for?

Other questions’ I’ve tried without success:

401 Error – Sharepoint 2007

SharePoint Server Authentication Error

401 unauthorized exception while reading data from the document library SharePoint 2010

Update

I’ve tried a variety of other queries with the same response. We have an Sharepoint, Office 365 instance and that works (using Remote Authentication). This is also why I believe its some sort of permission or access related.

This is on a customer’s instance. I have only the one account. I believe if I asked for a 2nd one, it would have the same issue.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T15:37:23+00:00Added an answer on June 3, 2026 at 3:37 pm

    Ask your SharePoint server administrator. They should be able to help you troubleshoot as well. There’s not much we will be able to help you with if you don’t have access to SharePoint, as the issue is most likely on the server side.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have just tried to save a simple *.rtf file with some websites and
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I am trying to loop through a bunch of documents I have to put
I have some data like this: 1 2 3 4 5 9 2 6
I am trying to understand how to use SyndicationItem to display feed which is
Basically, what I'm trying to create is a page of div tags, each has
link Im having trouble converting the html entites into html characters, (&# 8217;) i
For some reason, after submitting a string like this Jack’s Spindle from a text
this is what i have right now Drawing an RSS feed into the php,
I am trying to render a haml file in a javascript response like so:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.