Panos_gr

Hey all,

i have written an application for the ipaq and when i am trying to deploy it i get this error :

Error 2 Deployment and/or registration failed with error: 0x8973190e. Error writing file '%CSIDL_PROGRAM_FILES%\myFirstExperiment\myFirstExperiment.exe'. Error 0x80070020: The process cannot access the file because it is being used by another process.
Device Connectivity Component

I searched the forum and a number of people had this problem but none of the sollutions suits my case.

The thing is that i run the application it threw an exception and from then the file in the ipaq is been used. When i try to delete it i get an "There has been a sharing violation. The source or destination file may be in use" and if i try to deploy it from the VS i get the error above probably for the same reason.... what can i do

thx a lot!


Re: .NET Compact Framework deployment failed with error!

Ilya Tumanov

That likely means your application is still running. Make sure to terminate it before redeploying.

Note normally Windows Mobile applications are not closed but minimized.

You can add a button or menu to close them for your convenience.

You can also terminate the process via remote process manager or you can restart the device.






Re: .NET Compact Framework deployment failed with error!

ougka

hey Ilya many thanks for the answer, but

- yes the application seems to be still running but since it threw an exception the main form (at least) disappeared and thus i cannot close it
- i cannot add any button now because i cannot redeploy the sollution since the VS cannot overwrite the exe file
- i do not want to do a hard restart to the device and a soft one (holding down the power button for some seconds) does not solve the problem Sad
- why can i terminate the process via the remote process manager where can i find that

any other ideas
many thanks!




Re: .NET Compact Framework deployment failed with error!

Ilya Tumanov

Soft reset will solve this problem. Holding power button is probably just putting your device to sleep, not soft resetting it. See your device manual on how to do a soft reset. Usually there¡¯s a special tiny hole with a hidden button which you suppose to push with your stylus. If you¡¯d like to use remote process manager look in VS 2005 remote tools folder in start menu.






Re: .NET Compact Framework deployment failed with error!

ougka

many thanks for your help! yes i found the soft reset tiny hole which was covered by the cradle!!!!

i am using vs2005 but i cannot find any remote tools folder..where is start menu

thx again!




Re: .NET Compact Framework deployment failed with error!

Ilya Tumanov

Start menu is usually on the bottom left part of the screen, it normally pops up if you push a button saying ¡°Start¡±. Exact location depends on your OS version and settings.






Re: .NET Compact Framework deployment failed with error!

Panos_gr

ohhh you meant the start menu of windows not a start menu that VS may had! i found it of course! many thanks!

ps. a lot of hours working and i ve run out of coffee :/




Re: .NET Compact Framework deployment failed with error!

clinic

I usually use this little piece of code on my mobile .NET dev :

public mainForm()
{
...
#if DEBUG
// evite de laisser l'appli en arriere plan
this.MinimizeBox = false;
#endif
...
}

it prevent your code is still running on the device or emulator while you close it.