# ERROR Failed to query history of version control repository : Method not found: Int32 System.Environment.get\_CurrentManagedThreadId()

**URL:** https://www.finalbuilder.com/forums/t/error-failed-to-query-history-of-version-control-repository-method-not-found-int32-system-environment-get-currentmanagedthreadid/6083
**Category:** Bugs
**Created:** [March 15, 2017, 11:19am UTC](https://www.finalbuilder.com/forums/t/error-failed-to-query-history-of-version-control-repository-method-not-found-int32-system-environment-get-currentmanagedthreadid/6083 "2017-03-15T11:19:39Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![pvdveen](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/p/e480ec/32.png) [@pvdveen](https://www.finalbuilder.com/forums/u/pvdveen)
#### Post date: [March 15, 2017, 11:19am UTC](https://www.finalbuilder.com/forums/t/error-failed-to-query-history-of-version-control-repository-method-not-found-int32-system-environment-get-currentmanagedthreadid/6083/1 "2017-03-15T11:19:39Z")

</div>

Hi&nbsp;  
  
After importing project from finalbuilder server and adjusting the different fileds i got the following error  
  
[DEBUG] Getting branch list for TFS repository '$/VB6\_GetalConversie’  
DEBUG] Time taken to get branch list for TFS repository ‘$/VB6\_GetalConversie’ is 186ms  
[DEBUG] Getting latest changesets for TFS repository ‘$/VB6\_GetalConversie’ using query path ‘$/VB6\_GetalConversie/Dev/Dev’ and comparison changeset id -1  
[DEBUG] Querying TFS history for the latest changeset on branch path ‘$/VB6\_GetalConversie/Dev/Dev’  
[ERROR] Failed to query history of version control repository : Method not found: Int32 System.Environment.get\_CurrentManagedThreadId().  
  
I checked the configuration repository and the TFS settings. I got a green light when is press the validate button there, so there is a conenction to TFS.  
  
What else can be wrong or i need to check?  
  
Peter

---

<div class="post-metadata">

### Author: ![pvdveen](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/p/e480ec/32.png) [@pvdveen](https://www.finalbuilder.com/forums/u/pvdveen)
#### Post date: [March 15, 2017, 1:30am UTC](https://www.finalbuilder.com/forums/t/error-failed-to-query-history-of-version-control-repository-method-not-found-int32-system-environment-get-currentmanagedthreadid/6083/2 "2017-03-15T01:30:32Z")

</div>

Found it myself. I needs Visual Studio to be installed, after that the connection was ok
