none
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

    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,
                    Nothing)
    

    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?

    thank you


    Thanks In Advance, Jeyaseelan

    Tuesday, October 6, 2020 12:37 PM