Value was either too large or too small for a UInt32: TFS Checkin Error

When I'm trying to check in some code TFS and below error message is coming.

Value was either too large or too small for a UInt32.

What is causing this issue and how can I fix this issue?


Solution 1:

I have found the solution for this issue.

Solution:

Save your files before check-in and then initiate check in. This issue will not come.

Root Cause:

It seems to be a bug in the dialog (Not sure), but certainly error message is confusing to user.

Hope this solution will resolve your issue.

Solution 2:

As Geeky Ninja mentions, the problem is that not all files are saved. Luckily VS has a handy button for this (ctrl + shift + s):

File > Save All 

Helps me every time