13

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.

8
  • 1
    Renaming the WITDataStore.dll from the 64bit GAC to WITDataStore64.dll and copying it to the bin works. Aug 20, 2015 at 21:33
  • You might want to check if the Copy Local property of the referenced assembly is set to: False, if it is, set it to Always. This way it will be copied to the output directory when the project builds.
    – Stefan
    Aug 20, 2015 at 21:34
  • It isn't a referenced assembly and it wasn't before. I get an error when I try to reference it directly. Aug 20, 2015 at 21:40
  • 1
    I will keep this question for reference. A bug has been submitted and a MS forum mod was able to recreate the error here Aug 21, 2015 at 15:06
  • Is it possible that a COM component isn't registered? The error message and HR result tend to point that direction.
    – Stefan
    Aug 21, 2015 at 20:29

4 Answers 4

5

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).

2
  • I copied the dll from IDE\ReferenceAssemblies\v2.0 to IDE, the issue is gone.
    – TCG
    Jul 7, 2017 at 8:04
  • This solved my issue. Does anybody know if there any way to point this to look in the bin directory of the project so that it can run from a machine without the visual studio directory structure?
    – Reed
    Mar 21, 2018 at 15:40
2

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

1
  • I added a post-build event to copy the 2 unmanaged DLLs to the startup bin folder: copy Microsoft.WITDataStore*.dll $(SolutionDir)[StartupProject]\bin
    – GarDavis
    Aug 14, 2018 at 20:16
0

Copy file Microsoft.WITDataStore64.dll in folder C:\Windows\System32

-1

Try copying those Dlls from the GAC into your local bin. Nuget packages are usually create references to the bin, so if your program is looking there instead of the GAC that could be why it is throwing the error.

1
  • 1
    Those DLLs are native DLLs and cannot be placed into the GAC. So there is no such DLLs in the GAC.
    – Mike Eshva
    Dec 10, 2015 at 2:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.