Connect to TFS via DOM in a web service
In a project I'm working, I happened to have access to TFS 2010/2008 using the DOM available to the Team Explorer. Wednesday, December 15, 2010
Sore Knee From Tredmill
We are dealing with a web service that lets you manage calls from a non-Microsoft platforms by analyzing the traffic and doing some work on the data but at the end della fiera, scrive dei workitem all’interno di TFS e non abbiamo scelto di utilizzare la integration platform di TFS.
Lato client, il Team Explore utilizza una serie di cartelle di cache per “cachare” i dati in modo da ottimizzare l’accesso alla piattaforma TFS.
La cartella solitamente utilizzata รจ nel seguente percorso:
C:\Documents and Settings\Default User\Local Settings\Application Data\Microsoft\Team Foundation\3.0\Cache
In particolare, questa cartella viene creata dal Team Explorer nel momento in cui un utente si connette.
Il problema nasce dal fatto che un servizio web “gira” con un utente che never connects, and therefore will never find that folder. To avoid this problem, all objects derived from class TfsConnection (eg TfsConfigurationServer or TfsTeamProjectCollection
) you can set the ClientSettingsDirectory
that allows you to set the folder to use for the cache.
Obviously the folder should have the appropriate privileges so that the web service can write into it.
The same property can be used by a Windows client or a standard window.
Technorati tags:
tfs, tfs dom ,
team foundation server,
team explorer,
tfsconnection, tfsprojectcollection , clientsettingsdirectory , tfsconfigurationserver
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment