Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TFS 2015 SDK Missing Microsoft.WITDataStore64.dll

I am attempting to switch to the TFS 2015 SDK dlls (Version 14) for a few reasons. First, they are in nuget and second, the 2013 SDK dlls (Version 12) require the 32-bit flag flipped in IIS.

I pulled down nutget package and the namespaces all line up with the existing version 12 namespaces.

Everything compiles fine and there was no error on local deployment.

However, when I attempt to load projects using the WorkItemStore service.

TfsTeamProjectCollection collection = new TfsTeamProjectCollection(URL);
var service = collection.GetService<WorkItemStore>();

I get:

Additional information: Unable to load DLL 'Microsoft.WITDataStore64.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)

When I switch back on the 32 bt flag in IIS I get:

Additional information: Unable to load DLL 'Microsoft.WITDataStore32.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)

Note: this was all working code, all I did was remove the references to the GAC assemblies and add the NUGET package.

According to Microsoft, the nuget package should work with TFS 2013 and work for users for the 2013 SDK

Existing Windows apps leveraging an older version of the TFS Client OM.

like image 364
Sam Sussman Avatar asked Aug 20 '15 21:08

Sam Sussman


People also ask

Where can I find the witdatastore64 DLL?

The Microsoft.WITDataStore64.dll its present in the folder C:\Program Files\Microsoft Team Foundation Server 14.0\Application Tier\Web Services\bin\ Sorry, something went wrong.

What's new in TFS 2015 update 42?

This is a full upgrade, so you can upgrade directly to TFS 2015 Update 4.2. Please see the blog post for more information. This update fixes potential cross site scripting (XSS) and other security vulnerabilities in Team Foundation Server 2015 Update 4. See the blog post for more information.

What is a TFS client library?

Client libraries integrate with work item tracking, version control, build, and other services. These packages replace the traditional TFS Client OM installer and make it easy to acquire and redistribute the libraries needed by your app or service. For more information, see the Azure DevOps REST API Reference.

Do I need to install the Visual Studio 2015 SDK first?

Before this SDK can be installed, the Visual Studio 2015 SDK (VSSDK) must be installed first. To find out what's new in Visual Studio 2015, see the Visual Studio 2015 Release Notes.


2 Answers

None of the above worked for me. I had to copy that file to my C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE folder (found this out by using procmon to see where my app was looking for it).

like image 104
Tom Avatar answered Oct 18 '22 00:10

Tom


I had to add the dll to the startup-project of my solution to get this to work. example:

MyTFSApp (windows client) nuget package Microsoft.TeamFoundationServer.ExtendedClient installed or Microsoft.WITDataStore32.dll added to the bin folder

MyTfsLibrary (class library with code accessing WorkItemStore) nuget package Microsoft.TeamFoundationServer.ExtendedClient installed

like image 44
Jaan Marks Avatar answered Oct 18 '22 02:10

Jaan Marks