none
CSOMUnknownUser Project server Timesheets RRS feed

  • Question

  • I`m trying to get timesheet period collection in project server 2016 and using this code:

        using Microsoft.ProjectServer.Client; 
       
        TimeSheetPeriodCollection timeSheetPeriodCollection = projectsContext.TimeSheetPeriods;
        projectsContext.Load(timeSheetPeriodCollection);
        projectsContext.ExecuteQuery();

    Code crash on last line and I get this error:

        CSOMUnknownUser ,StackTrace   
         at Microsoft.SharePoint.Client.ClientRequest.ProcessResponseStream(Stream responseStream)    
         at Microsoft.SharePoint.Client.ClientRequest.ProcessResponse()  
    Tell me please what could be wrong?  
    Wednesday, June 17, 2020 7:30 AM