Receiving Arithmetic operation resulted in an overflow when trying to copy file to PPC
description
I'm able to copy from the device, delete from the device, but when I try to copy to the device I get the above message. Below is the code and the stack trace, any help you can offer would be greatly apprecaited. I'm using windows 7, windows mobile 6.5 classic, CE OS 5.2.2.21840 and the latest VS project off codeplex (dated 3/27/2008) comiled to create the dll.
Dim syncObj As New OpenNETCF.Desktop.Communication.RAPI
Try
If syncObj.DevicePresent Then
syncObj.Disconnect()
syncObj.Connect()
syncObj.CopyFileToDevice("C:\sync-FPMS.db3", "\Program Files\MoheganT-FPMS\MoheganT-FPMS.db3", True)
syncObj.Disconnect()
Else
lblActivesyncStatus.Text = "Device not connected"
End If
Catch ex As Exception
lblActivesyncStatus.Text = "Error: Remote file most likely locked."
End Try
StackTrace " at System.IntPtr.op_Explicit(IntPtr value) at OpenNETCF.Desktop.Communication.RAPI.CopyFileToDevice(String LocalFileName, String RemoteFileName, Boolean Overwrite) in C:\Users\mspellman\Documents\Visual Studio 2008\Projects\OpenNETCF.Desktop.Communication\RAPI.cs:line 476 at Fire_PMS_Docked.Form1.Button1_Click(Object sender, EventArgs e) in C:\Users\mspellman\Documents\Visual Studio 2008\Projects\Fire PMS Docked\Fire PMS Docked\Form1.vb:line 66" String