EPDM development problem

the following code to get the latest version copy of the file runs normally in epdm2018, and an error occurs after upgrading to epdm2020: HResult: 0x80040245

ver.GetFileCopy(this.Handle.ToInt32(), hcPatn);