Deployment Failure Error: 0x80070020
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
Hey
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.
In the content file isn't changing, you can update the properties for the file to never deploy.
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
Hey,
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
I had the same problem with a very small Pocket PC emulator app and I'm not using CE DB. So to solve the problem I had to reset the emulator device by pressing the off (x) button to reset it. Then my newer application showed up correctly. Basically CE doesn't ever shutdown an app, it leaves it resident unless you specifically kill it with the memory (Settings>System>Memory>Running Programs) app or reset the device. That's probably where the problem is, and whether it's a bug I guess is a matter of opinion. From a developers standpoint developing for the desktop it's a bug, from a development tools standpoint the device is the issue.
Hey,
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!