none
Synchronization failed between TFS 2013 and Project Server 2013 RRS feed

  • Question

  • Hi all,

    I am actually trying to integrate Team Foundation Server 2013 and Project Server 2013 on premises. But I am facing some issues and I have no idea how to solve it. I do not find many help on Internet.

    So far, I have already created a enterprise plan in MS Project and a team site in TFS. Also, as you can see here, I have successfully mapped enterprise and team project.

    C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE>TfsAdmin Project
    Server  /MapPlanToTeamProject /collection:"http://tfs.nalysa.corp/tfs/Nalysa Pro
    jects/" /enterpriseproject:"Project Sample" /teamproject:"Project Sample" /worki
    temtypes:"Feature, User Story, Bug, Task"
    
    Mapping enterprise project Project Sample to team project Project Sample.
    
    ...................
    You have successfully mapped enterprise project Project Sample to team project P
    roject Sample.


    After the mapping, I have created some tasks on project and unfortunately the tasks are not synchronized with TFS. 

    FYI, I am using SharePoint permission mode:

    Url: PS C:\Users\spfarm2013> Get-SPProjectPermissionMode http://bali/project
    SharePoint
    PS C:\Users\spfarm2013>

    Please find here some interesting information that I can find in the logs:

    01/02/2015 18:43:50.69	w3wp.exe (0x1104)	0x3670	Project Server	Security	aibp8	High	Impersonation is not supported  in SharePoint permission mode	24cadb9c-6d78-f002-9b41-871b58f49fdf
    01/02/2015 18:43:50.69	w3wp.exe (0x1104)	0x3670	Project Server	General	ab3be	Monitorable	Unhandled exception in the process of routing the request to the app server: Target=http://bali.nalysa.corp/project/_vti_bin/PSI/Security.asmx, exception=[InvalidOperationException] Operation is not valid due to the current state of the object., StackTrace=   at Microsoft.Office.Project.Server.WcfTrustedFacadeHelperMethods.TryGetImpersonationContextInfo(String originalTargetUrl, OperationContext context, ImpersonationHeader& impersonationHeader)     at Microsoft.Office.Project.PWA.WCFContext.GetContext(MessageHeaders messageHeadersCollection, ServiceSecurityContext serviceSecurityContext, Uri originalTargetUri)     at Microsoft.Office.Project.Server.WcfPsiRequestRouterImplementation.ProcessMessage(Message message)	24cadb9c-6d78-f002-9b41-871b58f49fdf
    01/02/2015 18:43:50.69	w3wp.exe (0x1104)	0x3670	Project Server	General	8118	Critical	Connectivity exception [InvalidOperationException] Operation is not valid due to the current state of the object. when forwarding request to app server http://bali.nalysa.corp/project/_vti_bin/PSI/Security.asmx	24cadb9c-6d78-f002-9b41-871b58f49fdf

    These logs appears every 30 seconds, I guess everytime the job used to synchronise TFS and Project Server is called. As this job failed, the synchronization cannot be processed

    And also the IIS logs of the web services used to communicate (on SharePoint site)

    2015-01-02 11:45:19 fe80::add5:81bb:9261:10cd%12 POST /project/_vti_bin/PSI/Security.asmx - 80 - fe80::add5:81bb:9261:10cd%12 Mozilla/4.0+(compatible;+MSIE+6.0;+MS+Web+Services+Client+Protocol+4.0.30319.33440) - 401 1 2148074254 0
    2015-01-02 11:45:19 fe80::add5:81bb:9261:10cd%12 POST /_vti_bin/PSI/Security.asmx - 80 0#.w|nalysa\sppool2013 fe80::add5:81bb:9261:10cd%12 Mozilla/4.0+(compatible;+MSIE+6.0;+MS+Web+Services+Client+Protocol+4.0.30319.33440) - 500 0 0 46

    It looks like there are an error when the web service Security.asmx is called (error code 500). Looking in the log, the error is "Impersonation is not supported  in SharePoint permission mode". 

    Why my services is trying to make impersonation knowing that we are using SharePoint permission mode

    Here are some information about the configuration:

    • TFS Foundation Server 2013
    • Project Server 2013
    • SharePoint Server 2013

    I will really appreciate any help or advise about this issue 

    Thank you very much

    Vannick



    • Edited by Vannick05 Friday, January 2, 2015 12:20 PM Title clarification
    Friday, January 2, 2015 12:14 PM

Answers

  • Hi all,

    I would like to inform everybody that the error message visible above is not part of the synchronization issue.

    The synchronization issue was coming obviously from the custom fields of each tasks "Publish to Team Project" that was not set to Yes .... 

    You can find more information here:

    http://msdn.microsoft.com/en-us/library/gg593279.aspx

    I do not delete this topic in case someone new in project server ( with tfs integration)  is having the same error message than me.

    I hope it helps.

    • Marked as answer by Vannick05 Friday, January 2, 2015 1:08 PM
    Friday, January 2, 2015 1:08 PM

All replies

  • Hi all,

    I would like to inform everybody that the error message visible above is not part of the synchronization issue.

    The synchronization issue was coming obviously from the custom fields of each tasks "Publish to Team Project" that was not set to Yes .... 

    You can find more information here:

    http://msdn.microsoft.com/en-us/library/gg593279.aspx

    I do not delete this topic in case someone new in project server ( with tfs integration)  is having the same error message than me.

    I hope it helps.

    • Marked as answer by Vannick05 Friday, January 2, 2015 1:08 PM
    Friday, January 2, 2015 1:08 PM
  • Dear all,

    We are having the same issue with TFS 2015 and Project Server 2013.  We are also using SharePoint permission mode.  The Sharepoint ULS logs contain the following error messages:

    Request (POST:http://<project server 2013 URL>:80/ProjectServer/_vti_bin/PSI/ProjectServer.svc:CheckUserGlobalPermission")
    
    Impersonation is not supported in SharePoint permission mode
    
    Unhandled exception in the process of routing the request to the app server: Target=http://<project server 2013 URL>/ProjectServer/_vti_bin/PSI/Security.asmx, exception=[InvalidOperationException] Operation is not valid due to the current state of the object., StackTrace=  
     at Microsoft.Office.Project.Server.WcfTrustedFacadeHelperMethods.TryGetImpersonationContextInfo(String originalTargetUrl, OperationContext context, ImpersonationHeader& impersonationHeader)    
     at Microsoft.Office.Project.PWA.WCFContext.GetContext(MessageHeaders messageHeadersCollection, ServiceSecurityContext serviceSecurityContext, Uri originalTargetUri)    
     at Microsoft.Office.Project.Server.WcfPsiRequestRouterImplementation.ProcessMessage(Message message)
    
    Connectivity exception [InvalidOperationException] Operation is not valid due to the current state of the object. when forwarding request to app server http://<project server 2013 URL>/ProjectServer/_vti_bin/PSI/Security.asmx 

    Is this the expected behavior of the TryGetImpersonationContextInfo method, or does this point to a bug or a configuration error that only occurs in SharePoint permission mode?

    Peter


    Wednesday, February 17, 2016 10:03 AM
  • Did you solved your problem?
    Monday, October 31, 2016 12:33 PM
  • No and we have disabled the synchronisation for now.  We may have another go if there's a genuine demand for it from our DEV team.

    Wednesday, November 2, 2016 2:17 PM