nauna says:
Value was either too large or too small for an Int32.
The error means you are passing bigger than 2147483647.
Int32.MaxValue is 2,147,483,647.
Use Int64 instead of Int32 or better to use long .
int.MaxValue: 2,147,483,647
int.MinValue: -2,147,483,648
long.MaxValue: 9,223,372,036,854,775,807
long.MinValue: -9,223,372,036,854,775,808