Deployment error - The process cannot access the file because it is being used by another process

1
Hi all, After the modeller crashed unexpectedly, I cannot deploy my app any longer. When i choose the option Run Locally, it will give me the error "An error occurred while deploying. The process cannot access the file because it is being used by another process". I found another post on this matter but this one doesnt seem to resolve my issue as i cannot find any .lock files locally.  
asked
3 answers
1

try to kill your java process Ctrl+Shift+Esc  (taskmanager)

or the .lock file (<your project>.mpr.lock)

answered
0

Hi Wilco,

  The first thing I would check is to see if the Java process you had up before the modeler crashed is still running.  This can be found by hitting ctrl-shift-exc and going to the program manager.  Look for a Java process that may be running still.  This is the local Mendix runtime and if there was a crash it may not have shut down correctly.  Kill that process and try re-running your app.

  Alternatively, it possible that you have a file in the 'Deployment' directory open in another program?  For example, one of the theme css files open in a text editor?  That can cause the issue you see.  Sometimes I have the theme zip open in a file viewer and get the same issue.

  If you do not have local data that you need, you could also simply delete the 'Deployment' folder from your project home.  That folder is completely rebuilt every time you hit the 'run locally' button.  However, your data also lives here so you would lose that if you took this option.  

 Best,

Rob

answered
0

I guess I should have tried rebooting my machine right away. This seems to have solved the issue I ran into. Thanks for your swift responses on my thread. Much appreciated.

answered