Env:
-VS Beta 2005
-PPC 2003 SE Emulator
Building a device app to access data in SQL CE db, everything was working fine until I switched the start up form. Builds fine but does not deploy...get the following error.
Error Description:
Error 1 Deployment and/or registration failed with error: 0x80070020. The process cannot access the file because it is being used by another process.
File:
Conman HelpText System

Deployment Failure Error: 0x80070020
Bala Atur
I got the same error message, but I get this error message after opening the database file in the Query Analyzer tool on the Pocket PC 2003 device. After that I can't deploy my application to the smart device. So I followed the guess above my reply and it works.
But I don't like this solution, because I will not every time delete the database file when I want to deploy my application again. So my question is: is there another solution
BTW: this error message appears only when the database file was openend on the smart device. I use Visual Studio 2005 beta 2 and SQL-Server 2005 CTP.
Cesar GHALI
Jeroen Boiten
Thank you for your answer. The fact that the smart devices doesn't ever shutdown an app is new to me. So I think it isn't a bug, but it's the architecture of the smart device. Hopefully the architects have a reason for it ;-). Do you know the reason why they choose for this solution
Thanks a lot!
yanjie_li
What I would do is deploy once to ensure the file is present, then change the property so that it's not deployed.
Otherwise if shutting down all applications that may be using the file or soft resetting the device will also ensure that the file isn't in use and locked before trying to deploy.
Mario
Daniel Teixeira
my guess is your CE DB is in the target already with same name and/or some CE Application is still open and using your CE DB.
why don't you try to delete your original CE DB (backup if needed)
before you deployment.
Bharath2k5
To set the property for the file to never deploy could be a suitable solution, but you wrote 'shutting down all applications.....', I've closed all my applications and I got the same error again. This problem could be solved by soft resetting the device. But still there is a problem (or challenge ;-) ). It must be able to deploy the application whithout all these temporary solutions. Is'nt it a little bug
Henk