Question Does CopyFile change Access metabase .mdi during deployment?

acidedge2004

New member
Joined
Dec 11, 2008
Messages
2
Programming Experience
1-3
I am replacing an Access DB (mdb) file during deployment and am running into an interesting problem.

The file is copied without any errors being returned by the installer, but when trying to open the file using an executable I am getting an error message, stating a SQL error and a non-matching password. However, when I copy the same file, from the same disc, by dragging and dropping in the GUI, the problem is corrected.

It would seem that when the file is copied using My.Computer.FileSystem.CopyFile it is causing some kind of change to the file.

Can anyone shed some light on this? I am wondering if there is some setting I need to add or change, or use a different method for this one case? The copy is made as part of a function which is used repeatedly with .dll, .ini and .bak files without problem.

I am using VB.NET, developed in visual studio 2008 and the machine has 2.0, 3.0 and 3.5 of .NET framework,

Cheers, Mike
 
Back
Top