There were two different Visual Studio dll libraries after all 10.0 and 12.0 some tfs dlls were from 10.0 while other were from 12.0 . As a solution i picked all of them from 12.0 and it worked .
VersionControlServer vsStore = tfs.GetService<versioncontrolserver>();
</versioncontrolserver>
line is not null anymore