Share via

SharePoint WebClient Returning 401 unauthorized

Anonymous
2019-03-20T04:33:31+00:00

Hi

I have a SharePoint web part solution that use web client

but I am getting 401 unauthorized error .

I have put the setdefaultcrediential to be true 

And still getting errors

Can anyone please help me to see what I can to do get this resolved?

Microsoft 365 and Office | SharePoint | For business | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Anonymous
2019-03-20T06:49:51+00:00

Hi Hunty,

Thanks for posting on our forum.

I could understand your feeling. I know the issue caused some question for you.

According to the error message, the question is more related to custom code.

Since our forum is focus on SharePoint online, I’ll suggest you post a new thread in our MSDN forum for proper assistance.

To better help you, I have searched the error message for you on network, some users provide some suggestion for the same issue with you, you can refer to them:

SharePoint: Https WebClient Request occurred “The remote server returned an error: (401) Unauthorized”

Get Error 401 when trying to download a document from a library programatically

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

Thanks for your understanding.

Qing

Was this answer helpful?

0 comments No comments

0 additional answers

Sort by: Most helpful