The remote server returned an error: (401) Unauthorized RRS feed

  • Question

  • hello all,

    i have a DM library, from visual studio project i do upload documents but, in recent days im receiving error as "The remote server returned an error: (401) Unauthorized" when it hit the line GetListItems . as well im not able to view the documents already uploaded.

    myservice.Url = Application.GetAppSetting(SharedObjects.SharedEnums.AppSettings.SharepointWebserviceUrl)
                myservice.PreAuthenticate = True
                myservice.UseDefaultCredentials = False
                myservice.Credentials = DefaultCredentials()
                Dim xmlDoc As New System.Xml.XmlDocument()
    Dim nodeListItems As System.Xml.XmlNode = myservice.GetListItems(listName, viewName, query, viewFields, rowLimit, queryOptions,

    when it hit GetListItems method then start raise error as "The remote server returned an error: (401) Unauthorized".

    i did change below statement but, no luck

                myservice.UseDefaultCredentials = True

    experts please tell me how to resolve this error?

    Thanks In Advance, Jeyaseelan

    Tuesday, October 6, 2020 12:44 PM

All replies

  • hello experts

    please suggest some ideas, even I logged (chrome UI) in as service account im not able to see any documents



    Thanks In Advance, Jeyaseelan

    Wednesday, October 7, 2020 11:01 AM
  • Hi, Jey-YoYo,

    Non-SPMT(SharePoint Migration Tool) has transitioned to Microsoft Q&A for support, please visit the "Microsoft 365 on Q&A" site within Microsoft Q&A to post all non-SPMT questions regarding SharePoint.

    All SPMT(SharePoint Migration Tool) questions can continue to be asked in this TechNet forum.

    Best Regards


    "SharePoint" forums will be migrating to a new home on Microsoft Q&A !
    We invite you to post new questions in the "SharePoint" forums' new home on Microsoft Q&A !

    Friday, October 23, 2020 8:33 AM