RAPI CopyFileFromDevice Error

Feb 9, 2010 at 9:52 PM

"Could not open the remote file" happens intermittently.  I was also connecting via Sql Server 2005 Studio and thought that might have something to do with it. 

But all I wanted to do is copy a file from the device to the desktop via ActiveSync.  Using OpenNETCF.Desktop.Communication 2.9.2853.13335

I'm developing in VS2005 so the if there's a later version I need one that works in VS2005.

Anyone else experience this error?

TIA

Harry

Feb 9, 2010 at 10:14 PM

I get that error if the file is in use. Physically make sure it isn't in use prior to copying it.

Also, take a look at this link: http://msdn.microsoft.com/en-us/library/ms839349.aspx

It really helped me.

Mar 16, 2010 at 1:45 PM

It hasn't raised its ugly head again thank goodness.  I think it actually was related to connecting from SQL Management studio to the device and then running the app against it at the same time.  Though I swear i saw it when the SQL Manangement studio wasn't running.....