Tuesday, November 24, 2015

"Source control provider could not be initialized" in Dexterity

In Dexterity I open Options > Source Control > and change the Provider = Team Foundation Server 2010. I point the RootDirectory to the local folder I pulled down from TFS. Then i click Projects and get the error "Source control provider could not be initialized"

1. Windows 10
2. Visual Studio 2015
3. GP2015R2
4. Dex 14.00.84

1. Made sure security was set to Everyone on the RootDirectory
2. Turned off Firewall
3. Ran as administrator
4. Double-checked that Team Explorer 2010 was installed

After double-checking all of this stuff I still had the error. Eventually I ran Process Monitor on a computer where it was working and the new computer where it wasn't working, filtered for Process Name = Dex.exe, then got Dex to a point where I could just click on "Projects" in source control and clicked it. 

The first line in Process Monitor where it differentiates is when it tries to load this file:
C:\Users\<USER>\AppData\Local\Microsoft\Team Foundation\3.0\Cache\7553ef4f-f18b-4db8-b064-7a31ae2040f9\LocationServiceData.config

I looked on the new computer that's not working and checked folder C:\Users\<USER>\AppData\Local\Microsoft\Team Foundation\3.0\Cache\
and noticed that it was empty. 

So I tried copying the data from the working computer to the new computer. The two computers have the same folder structure, and they're using the same source control, so I figured why not? Well, IT WORKED!

Subsequent error
After copying the Cache folder from a working environment, it made Dex's source control work. However, when trying to do a lock/checkout on a file it's crashing Dex with a vague error that says
Faulting application name: Dex.exe, version:, time stamp: 0x55510397
Faulting module name: KERNELBASE.dll, version: 10.0.10240.16384, time stamp:

1. Install VS2010
2. Install VS2010 SP1
3. Cut&Paste files from C:\Users\<USER>\AppData\Local\Microsoft\Team Foundation\3.0\Cache\ into a folder, just in case
4. Open VS2010
5. Connect to TFS
6. Pull down the Dex root folder. This populates the Cache folder with valid files.
7. Open Dexterity, set the source control, do a Lock on a file to make sure it's working

No comments:

Post a Comment

There was an error in this gadget