如何处理此类错误 [英] what to do for such error

查看:68
本文介绍了如何处理此类错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Error 1 Unable to copy file "C:\Users\Bishnu\Documents\Visual Studio 2008\Projects\MajorProjectFinal\BusinessLayer\bin\Debug\BusinessLayer.dll" to "bin\Debug\BusinessLayer.dll". The process cannot access the file ''bin\Debug\BusinessLayer.dll'' because it is being used by another process. MajorProjectFinal




我试图运行位于我的项目名称MajorProjectFinal的bin中的程序的.exe文件.它是第一次执行,但是当我尝试从项目代码中编译代码时,即试图从program.cs运行LoginForm(),但它生成了以下错误.我如何重新编译而不会出现任何错误,请尽快回复
关于bishnu karki

Error 1 Unable to copy file "C:\Users\Bishnu\Documents\Visual Studio 2008\Projects\MajorProjectFinal\BusinessLayer\bin\Debug\BusinessLayer.dll" to "bin\Debug\BusinessLayer.dll". The process cannot access the file ''bin\Debug\BusinessLayer.dll'' because it is being used by another process. MajorProjectFinal




i tried to run .exe file of the program located inside bin of my project name MajorProjectFinal . it executed for the first time but when i tried to compile code from my project code i.e. tried to run LoginForm() from program.cs but it generated the following error. how can i recompile without any error please reply soon
with regards bishnu karki

推荐答案

您的进程正在后台运行,请打开任务管理器并在进程选项卡中查看,您的进程应该已经在运行.右键单击它,然后选择结束进程树" 选项.
Your process is running in background, open task manager and see in process tab, your process should be running already. Right click on it and select End Process tree option.


您无法删除/修改任何打开的文件.您不能使用任何当前正在运行的项目加载的可执行文件来执行此操作.

您需要找出谁在保存您的文件.有时可能是Visual Studio主机;我也知道Visual Studio帮助代理执行此操作的情况.关闭所有版本的Visual Studio,运行任务管理器"(Ctrl + Alt + Delete)杀死不需要的进程.另外,您可以只运行某些可能无法正确终止的应用程序.

如果您无法手动找到它,请使用Sysinternals Suite中的Sysinternals Process Manager,请参阅 http://technet.microsoft.com /en-us/sysinternals/bb842062 [ ^ ]或应用程序WhoLockMe(请自行查找,抱歉,我没有链接.).

—SA
You cannot remove/modify any open file. You cannot do it with any executable file which is loaded by any currently running project.

You need to find out who is holding your file. Sometimes it could be Visual Studio host; I also knew the cases when a Visual Studio help agent does it. Close all versions of Visual Studio, run "Task Manager" (Ctrl+Alt+Delete) to kill unwanted processes. Also, you could simply run some of your applications which you might not correctly terminate.

If you cannot manually find it out, use Sysinternals Process Manager from Sysinternals Suite, see http://technet.microsoft.com/en-us/sysinternals/bb842062[^] or the application WhoLockMe (please find by yourself, I don''t have a link, sorry).

—SA


检查这些
该进程无法访问该文件,因为该文件正在被另一个进程使用" [ ^ ]

BUG:构建解决方案时出现无法将临时文件复制到输出目录"错误消息包含多个项目 [ ^ ]
Check these
"The process cannot access the file because it is being used by another process"[^]

BUG: "Could not copy temporary files to the output directory" error message when you build a solution that contains multiple projects[^]


这篇关于如何处理此类错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆