[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

TFS - Downloaded file is corrupt error

Posted on 2013-12-19
8
Medium Priority
?
1,319 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
  • 4
  • 3
8 Comments
 
LVL 45

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
Veeam Disaster Recovery in Microsoft Azure

Veeam PN for Microsoft Azure is a FREE solution designed to simplify and automate the setup of a DR site in Microsoft Azure using lightweight software-defined networking. It reduces the complexity of VPN deployments and is designed for businesses of ALL sizes.

 

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 2000 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

Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

Question has a verified solution.

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

The new Microsoft OS looks great, is easier than ever to upgrade to, it is even free.  So what's the catch?  If you don't change the privacy settings, Microsoft will, in accordance with the (EULA) you clicked okay to without reading, collect all the…
Microsoft's Excel has many features that most people will never need nor take advantage of.  Conditional formatting is one feature that you may find a necessity once you start using it.
The viewer will learn how to simulate a series of coin tosses with the rand() function and learn how to make these “tosses” depend on a predetermined probability. Flipping Coins in Excel: Enter =RAND() into cell A2: Recalculate the random variable…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

872 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