Solved

TFS - Downloaded file is corrupt error

Posted on 2013-12-19
8
1,221 Views
Last Modified: 2014-03-27
Other developers can't get the latest version of files I've committed to TFS.  They get an error that says the file is corrupt.  

Anyone run into this before or have any suggestions?

Thank you.
0
Comment
Question by:greddin
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
8 Comments
 
LVL 44

Expert Comment

by:AndyAinscow
ID: 39731180
Can you get them back in their correct format or are the files also corrupt for you after downloading?
0
 

Author Comment

by:greddin
ID: 39731751
Yes, it looks like I have no trouble getting the latest version of a file that I've previously committed to TFS.
0
 
LVL 1

Expert Comment

by:David Davidson
ID: 39944056
I just ran into this problem.  The FipsAlgorithmPolicy was set to 1 on my workstation, but set to 0 on other developer workstations (I had changed it to test some settings in a more production-like environment).  Visual Studio 2012 and newer store a hash of checked-in files and use a different hash algorithm when FipsAlgorithmPolicy is set to 1.  I changed it back to 0, rebooted, made a small change to the affected file and checked it in.  Everyone else could then get the latest version.
0
Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

 

Author Comment

by:greddin
ID: 39946123
Thank you. Is the FlipsAlgorithmPolicy something changed in the registry or some where in Visual Studio?
0
 
LVL 1

Expert Comment

by:David Davidson
ID: 39946315
The FipsAlgorithmPolicy setting is stored in the Registry.  There are a few ways to change it.

In Windows Server 2003 and Windows XP the registry key is HKLM\System\CurrentControlSet\Control\Lsa.  Add a DWORD (32-bit) value named "FIPSAlgorithmPolicy" and set it to 1 for Enabled or 0 for Disabled.

In Windows Server 2008 (and newer) and Windows Vista (and newer) the registry key is HKLM\System\CurrentControlSet\Control\Lsa\FIPSAlgorithmPolicy.  Add a DWORD (32-bit) value named "Enabled" and set it to 1 to enable FIPS compliance or 0 to disable FIPS compliance.

You can also use the Local Security Policy console app in Administrative Tools to turn this setting on or off.  Navigate to Local Policies, Security Options, and either enable or disable the "System cryptography: Use FIPS compliant algorithms for encryption, hashing, and signing" policy.
0
 

Author Comment

by:greddin
ID: 39946454
Ok, On my workstation I already have a FipsAlgorithmPolicy. It's got an Enabled and it's set to a value of 1.

So just to confirm... Does them suggest I need to try setting to value of 0, reboot and try committing again?

Thanks. This seems promising for a nagging problem I've had for a long time now.
0
 
LVL 1

Accepted Solution

by:
David Davidson earned 500 total points
ID: 39946535
If you want other people to be able to get the files you commit, you have two choices.

1) Other developers enable their FIPS Algorithm Policy.  They can even do this temporarily - they can enable FIPS compliance, get your files, and then disable FIPS compliance before working and checking anything back in.  This works as a good stop-gap measure while your entire development network works towards a standard workstation setup.

2) You disable your FIPS Algorithm Policy, check out the file you want your fellow developers to get, and check it back in (thus creating a new entry for it in TFS with a hash value your fellow developers can process).

Since the other developers on my network aren't ready to make the jump to FIPS compliance just yet, I set the Enabled value on my workstation back to 0 for now and re-checked in the files they needed.  Because of customer requirements, though, we are in the planning stages for moving the entire development network towards FIPS compliance.
0
 

Author Closing Comment

by:greddin
ID: 39958777
Thank you David. I wish I could give you more points! This problem is plagued me for a long time now.  Setting the FipsAlgorithmPolicy to 0 fixed our problem.  The other developers all had theirs set to 0.  I don't know how mine was 1.

Thanks again,
-Greg
0

Featured Post

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Access 2013: API code to put hidden database icon in taskbar? 8 101
Excel To Access Database Transfer 14 80
Question to Pivot table 1 67
Windows 10, Hotmail and AdChoices 7 42
This very simple solution applies to a narrow cross-section of the "needs to close" variety. In this case, the full message in Event Viewer was in applog, Event ID 1000: Faulting application iexplore.exe, version 8.0.6001.18702, faulting module …
User Beware!  This is a rather permanent solution to removing your email from an exchange server.  The only way to truly go back is to have your exchange administrator restore your mailbox from backups.  This is usually the option of last resort.  A…
The viewer will learn how to simulate a series of sales calls dependent on a single skill level and learn how to simulate a series of sales calls dependent on two skill levels. Simulating Independent Sales Calls: Enter .75 into cell C2 – “skill leve…
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question