Comments

11 comments

  • Avatar
    7pace tech support

    Hi Jian,

    Several reasons can lead to that error, one of the reason can be in configuration:

    Can you please check what Service Account is configured in Configuration Tool on the machine where Timetracker is installed? That user should be in Collection Administrators group in your TFS to work properly.

     

    Maxim Lutsan

    0
    Comment actions Permalink
  • Avatar
    Jian Zhou

    Thanks for the reply, Maxim

    but I was using windows user Administrator which is in Collection of Administrators group by default, also, I tried couple of users setup as administrator as well, and none of them worked.

    for the Service Account, I setup as administrator, like SERVER_NAME\Administrator

     

    thanks

    0
    Comment actions Permalink
  • Avatar
    7pace tech support

    Am I right, that 

    SERVER_NAME\Administrator user is Collection Administrator in your TFS? 

    Can you please check? If you like, we can run short meeting where we can both go through and check everything.

     

    Maxim Lutsan

    0
    Comment actions Permalink
  • Avatar
    Jian Zhou

    you are right, SERVER_NAME\Administrator user is Collection Administrator in my TFS

     

    how do we run the meeting?

    0
    Comment actions Permalink
  • Avatar
    7pace tech support

    In the meeting identified that collection was renamed and Timetracker was calling API with wrong address. 

    Changing collection name directly in Timetracker's database solved the issue.

     

    Maxim Lutsan

    0
    Comment actions Permalink
  • Avatar
    Petr Mitrofan

    Hello,

    I have same problem on new created project collection. My account is TFS administator.

    Only "User management" sheet works correctly, all the others throw same exeption.

     

    On another project collection all works correctly!

     

    Thank you for help

    Petr

    0
    Comment actions Permalink
  • Avatar
    7pace tech support

    Hi Petr!

    Please provide more details on your issue:

    Do I understand correctly that your user has admin rights in both collections?

    And what user is used as a Service Account (in Timetracker Configuration Tool)?

    Is it your user?

    Could you please check if this Service Account user has at least Collection admin for this new collection?

    Kind regards,

    Andarth

    0
    Comment actions Permalink
  • Avatar
    Petr Mitrofan

    Hi Andarth

    Thank you for your fast response.

    Yes, in both collections is my acccount as administrator and is in collection admin group.

    As colection administrator is IIS appPool for timetracker too.

    Service account in Timetracker Configuration Tool is the same my account. 

    And one new info. When I try pair windows timetracker toll with new project collectin I get this error:

    Microsoft.AspNet.SignalR.Client.HttpClientException: StatusCode: 403, ReasonPhrase: 'Forbidden', Version: 1.1, Content: System.Net.Http.StreamContent, Headers:

    Pairing with project collection which is OK works correctly.

     

     

    Petr

     

     

    0
    Comment actions Permalink
  • Avatar
    Petr Mitrofan

    Hi Andarth.

    New info. I did not change anything but now I get another ecxeption. Pairing with win app does not work for all collections. 

    Unfortunately only one feature which works is manually adding time on sheet in work item (user story).

    All other features throws exceptions.

    For example timesheet:

    Account: Team Foundation Server
    User: MEDIARESEARCH\petr
    Version: 4.14.1.21678
    EventTime: 2018-09-07T09:45:25+02:00

    An error occurred while handling your request.
    at method: GetListOfTeamProjects
    Message: Object reference not set to an instance of an object.

    StackTrace:
    at TimetrackerOnline.JointCodebase.BusinessLayer.Providers.Implementation.VisualStudioProvider.GetListOfTeamProjects(VsoTokenModel tokenModel, Project virtualProject, String userIdForCache) in C:\build-agents\BuildAgent-git-1\_work\29\s\TimetrackerOnline\TimetrackerOnline.BusinessLayer\Providers\Implementation\VisualStudioProvider.cs:line 555
    at TimetrackerOnline.JointCodebase.BusinessLayer.Context.Services.ContextServiceBase.GetAllProjects(VsoTokenModel tokenModel, IVisualStudioProvider visualStudioProvider) in C:\build-agents\BuildAgent-git-1\_work\29\s\TimetrackerOnline\TimetrackerOnline.BusinessLayer\Context\Services\ContextServiceBase.cs:line 102
    at TimetrackerOnline.JointCodebase.BusinessLayer.Helpers.Implementation.ProcessSettingsProvider.GetProjectsWorkItemTypesStateNamesByCategory(String stateCategory, VsoTokenModel tokenModel) in C:\build-agents\BuildAgent-git-1\_work\29\s\TimetrackerOnline\TimetrackerOnline.BusinessLayer\Helpers\Implementation\ProcessSettingsProvider.cs:line 308
    at TimetrackerOnline.BusinessLayer.Context.Services.TimesheetService.FillTimesheet(DateTime startDate, DateTime endDate, Boolean byIterations, Boolean myItems, String selectedProject, VsoContext vsoContext, VsoTokenModel tokenModel) in C:\build-agents\BuildAgent-git-1\_work\29\s\TimetrackerOnline\TimetrackerOnline.BusinessLayer\Context\Services\TimesheetService.cs:line 127
    at TimetrackerOnline.BusinessLayer.Context.Services.TimesheetService.GetTimesheetData(DateTime startDate, DateTime endDate, Boolean byIterations, Boolean myItems, String selectedProject, VsoContext vsoContext, VsoTokenModel tokenModel) in C:\build-agents\BuildAgent-git-1\_work\29\s\TimetrackerOnline\TimetrackerOnline.BusinessLayer\Context\Services\TimesheetService.cs:line 83
    at TimetrackerOnline.Controllers.TimesheetController.GetData(String startDate, String endDate, Boolean byIterations, Boolean myWorkItems, String selectedProject) in C:\build-agents\BuildAgent-git-1\_work\29\s\TimetrackerOnline\TimetrackerOnline.Web\Controllers\TimesheetController.cs:line 87
    at lambda_method(Closure , ControllerBase , Object[] )
    at System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters)
    at System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters)
    at System.Web.Mvc.Async.AsyncControllerActionInvoker.<BeginInvokeSynchronousActionMethod>b__39(IAsyncResult asyncResult, ActionInvocation innerInvokeState)
    at System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult`2.CallEndDelegate(IAsyncResult asyncResult)
    at System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeActionMethod(IAsyncResult asyncResult)
    at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3d()
    at System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>c__DisplayClass46.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3f()

     

    0
    Comment actions Permalink
  • Avatar
    Petr Mitrofan

    After reinstall .NET and restart TFS server getting back error from yesterday:

    Account: Team Foundation Server
    User: MEDIARESEARCH\petr
    Version: 4.14.1.21678
    EventTime: 2018-09-07T11:22:45+02:00

    An error occurred while handling your request.
    at method: RequestData
    Message: Your user or Service Account user does not have enough permissions to perform calls to TFS API. Please check permissions.

     

    Old project collection working, new not.

     

    0
    Comment actions Permalink
  • Avatar
    7pace tech support

    Hi Petr!

    We will need additional details, so I've created a support ticket from your details.

    Our technical team will reach out to you soon.

    Kind regards,

    Andarth

    0
    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk