Skip to main content

Hi


I've recently migrated a K2 process from our dev environment into our test environment. Although the code below has not changed between each version it is now generating an error in K2:


 if(spsList.UploadDocumentFromUrl(strWorkSpaceName, FileURL, oByte, true, ref errMess))
 {
    Console.WriteLine("Trying to upload document from url...");
    //do more stuff
 }


The error that is thrown is: The request failed with HTTP status 401: Unauthorized. What is the cause of this error? Why has it begun to occur even though this code has not changed?


Best Regards
Tim

Hi Tim,


I suspect that the service account for the K2.net 2003 Service is diffeent on the test environment and that the service account used does not have permissions on the SharePoint site.


 


Reply