locked
System.Net.WebException: The remote server returned an error: (401) Unauthorized RRS feed

  • Question

  • I can't find the solution to this problem anywhere else, so here is my exact scenario:

    I have an exe running on a server that basically goes in an edits a sharepoint form. The exe runs just fine if I click it while on the server, everything does what it's supposed to. I made a button on the form so that when I click it, the program on the server runs. Problem is, when I try to run the method in this way, I get the following error:

    The remote server returned an error: (401) Unauthorized. at
    System.Net.HttpWebRequest.GetResponse() at
    Microsoft.SharePoint.Client.SPWebRequestExecutor.Execute() at
    Microsoft.SharePoint.Client.ClientContext.EnsureFormDigest() at
    Microsoft.SharePoint.Client.ClientContext.ExecuteQuery()

    Is there any way to pass credentials along with this function so that I can be authorized? I have to use the client side API, I don't have direct access to the server

    Friday, January 17, 2014 2:50 PM

All replies