Sharepoint sync error

GTEK IT DEV Team asked on December 6, 2019 04:09

I have set a sharepoint connection success in SharePoint connections application. And then i created a SharePoint library. But when i upload an excel file to this library. The system logged an error bellow.

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

Exception type: System.Net.WebException
Stack trace:
at System.Net.HttpWebRequest.GetResponse()
at Microsoft.SharePoint.Client.SPWebRequestExecutor.Execute()
at Microsoft.SharePoint.Client.File.SaveBinary(ClientContext context, String serverRelativeUrl, Stream stream, String etag, Boolean overwriteIfExists, SaveBinaryCheckMode checkMode)
at CMS.SharePoint.SharePointAbstractFileService.UploadFile(String serverRelativeUrl, Stream stream, Boolean overwriteExisting)
at CMS.SharePoint.SharePointLibraryHelper.UploadFileInternal(SharePointLibraryInfo sharePointLibrary, Stream contentStream, String libraryRelativeUrl)
at CMS.SharePoint.SharePointFileInfoProvider.UploadFileInternal(SharePointLibraryInfo libraryInfo, Stream contentStream, String libraryRelativeUrl)
at CMS.SharePoint.Web.UI.SharePointMultiFileUploader.AddUploadedFileToLibrary()
at CMS.SharePoint.Web.UI.SharePointMultiFileUploader.ProcessFile()

What's the problem in this issue?

Recent Answers


David te Kloese answered on December 6, 2019 10:57

the fact you get the Unauthorized error makes it look like the connection is attempted. So I would check and make sure the credentials you are using are correct on SharePoint side.

Check with admin on SharePoint side if the account your using is allowed and has the correct privileges. Perhaps they can even see what's causing your error.

If account and permission seem correct try checking for domain related permissions.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.