您的位置:首页 >> 编程开发 >> .NET >> 其它 >> 正文
其它 RSS
 

无法将文件“*.dll”复制到运行目录。另一个程序正在使用此文件,进程无法访问。

http://www.rdxx.com 05年07月27日 21:50 CSDN 我要投稿

关键词: 复制 , 访问 , 目录 , Dll , 运行 , 进程 , 程序 , 文件
 

一个程序集被其他项目引用后,编译的时候会出现如下错误:
未能将临时文件复制到输出目录中。
无法将文件“Test.dll”复制到运行目录。另一个程序正在使用此文件,进程无法访问。
需要关闭Visual Studio.Net,删除以前生成的dll文件后才能重新编译,怎样解决?
常见的两种可能性是:
> 这个Dll是不是隶属于一个WinForm程序,而这个Windows程序正在运行中?
> 这个Dll是不是被注册成COM组件了?
可以用FileMon(http://www.sysinternals.com/ntw2k/source/filemon.shtml)这个工具来查看一下到底是什么进程在使用这个文件。

Download Filemon (x86- 76 KB) - you plan on using Filemon on Win9x

Download Filemon (x86 - 76 KB) - you plan on using Filemon on WinNT/2K/XP/2K3

The files below are for 64-bit versions of Windows:

Download Filemon (XP/Server 2003 64-bit Edition/x64 - 96 KB)

Download Filemon (XP/Server 2003 64-bit Edition/IA64 -146 KB)



 
 
标签: 复制 , 访问 , 目录 , Dll , 运行 , 进程 , 程序 , 文件 打印本文
 
 
  热点搜索
 
 
 



Valid XHTML 1.0 Transitional
Copyright ©2005 - 2008 Rdxx.Com,All Rights Reserved
收藏本页
收藏本站