473,396 Members | 1,995 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

How Kill Running Application Process

I think a user exited my local application incorrectly and now I can't
compile a new version of the application to the public network without
getting a "in use" error message. Also, can't rename or delete the exe
file/directory without "access denied"

How do I find out who/what is using the exe on my local network?
How can I kill the exe process because I don't see it on my machine?
How can I prevent this application error from occuring in the future?

I have a local IDE application written in Visual Studio in which I compile a
Release version of the application to the public network drive for users.

When I try to Release compile I get a the following error: Could not copy
temporary files to the output directory. The file 'assembly name' cannot be
copied to the run directory. The process cannot access the file because it is
being used by another process.

Copy Local = false is not the problem as described in
http://support.microsoft.com/default...b;en-us;313512

Steve

Nov 17 '05 #1
4 6515
> I think a user exited my local application incorrectly and now I can't
compile a new version of the application to the public network without
getting a "in use" error message. Also, can't rename or delete the exe
file/directory without "access denied"

Use the "net file" command to see if a remote user has the file opened.
You can close the file with the same command, using the /CLOSE switch.

If that doesn't help, download
http://www.sysinternals.com/Utilities/Handle.html to check which process
has the file locked. Kill the process.

If even that doesn't help, change the security settings for the file so
that nobody has access to it, and reboot the machine. Give yourself
rights to delete the file then delete it.

Greetings,
Wessel
Nov 17 '05 #2
The net file command says "There are no entries in the list" and the handle
utility says it needs admin rights (I'm checking with IT now). In your third
point I assume you mean the server (machine)?

"Wessel Troost" wrote:
I think a user exited my local application incorrectly and now I can't
compile a new version of the application to the public network without
getting a "in use" error message. Also, can't rename or delete the exe
file/directory without "access denied"

Use the "net file" command to see if a remote user has the file opened.
You can close the file with the same command, using the /CLOSE switch.

If that doesn't help, download
http://www.sysinternals.com/Utilities/Handle.html to check which process
has the file locked. Kill the process.

If even that doesn't help, change the security settings for the file so
that nobody has access to it, and reboot the machine. Give yourself
rights to delete the file then delete it.

Greetings,
Wessel

Nov 17 '05 #3
> The net file command says "There are no entries in the list" and the
handle
utility says it needs admin rights (I'm checking with IT now). In your
third
point I assume you mean the server (machine)?

Yeah, all commands are for the server. The third option is really a "last
ressort" option tho. It's only required when some driver you can't stop
is locking the file.

The empty "net file" result suggests that the file is locked by a local
process, which is surprising for an executable on a file server. Perhaps
double-check from Administrative Tools -> Computer Management -> System
Tools -> Shared Folders -> Open Files.

Greetings,
Wessel
Nov 17 '05 #4
The shared folders/Opens files says "there are no items to show in this
view". I'm looking at Handle now not sure if I have permissions for usage.
Anything else?

"Wessel Troost" wrote:
The net file command says "There are no entries in the list" and the
handle
utility says it needs admin rights (I'm checking with IT now). In your
third
point I assume you mean the server (machine)?

Yeah, all commands are for the server. The third option is really a "last
ressort" option tho. It's only required when some driver you can't stop
is locking the file.

The empty "net file" result suggests that the file is locked by a local
process, which is surprising for an executable on a file server. Perhaps
double-check from Administrative Tools -> Computer Management -> System
Tools -> Shared Folders -> Open Files.

Greetings,
Wessel

Nov 17 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Bob Swerdlow | last post by:
My application starts up a number of processes for various purposes using: self.popen = popen2.Popen3("/usr/local/bin/python -O "myscript.py") and then shuts them down when appropriate with...
3
by: Alex Hunsley | last post by:
I'm running a monitoring script under linux written in python. It's nohup'ed so that I can log out and it will continue running happily and so on, but sometimes I need to kill the script before...
6
by: Matthew Wieder | last post by:
What permissions must a user have to be able to succesffuly execute a Process.Kill? I can run it with Admin privleges but not with regular user priveleges - I get an "Access is Denied." The...
16
by: bie2 | last post by:
Hi, Here's what I want to do: 1. Start the application. 2. A SplashScreen running in its own thread is started. 3. I'm checking if the application needs an update. 4. If an update is needed...
7
by: Joe | last post by:
If I'm using process.kill, I can only kill processes, which are created in the same login session. (I'm using win2000, I'm in the local admin group) Processes created by me in earlier logins or...
0
by: WATYF | last post by:
This is my problem... I have some code that starts a Process and returns it to a variable... (prcBat) At any time while that process is running... I want to be able to Kill it by pressing a...
1
by: Daniel | last post by:
how to forcfully kill a running process by executable name with a .net application?
1
by: AE_Cory | last post by:
I'm a n00b to Visual C++ and OOP, but not to programming in general. Here's the problem: Not knowing what I'm doing, I've made my VC++ application as a CLR Window Forms project. Now, I have a...
3
by: elrondrules | last post by:
Hi Am new to python and need your help!! this is my code snip. within my python script I have the following commands.. <snip> import os
4
by: Richard Rossel | last post by:
Hi Fellows, I have a problem with process termination. I have a python code that apache runs through a django interface. The code is very simple, first, it creates a process with the...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.