该进程无法访问文件"bin \ release \ FileName.exe",因为其他进程正在使用该文件 [英] The process cannot access the File 'bin\release\FileName.exe' because it is being used by nother process

查看:67
本文介绍了该进程无法访问文件"bin \ release \ FileName.exe",因为其他进程正在使用该文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我终于弄清楚了如何创建msi文件(在https://msdn.microsoft.com/zh-cn/library/cc766795.aspx?f=255&MSPPError=-2147217396的帮助下)
但是现在当我尝试在调试模式下解决该问题时,我会收到警告和错误消息.
我卸载了安装程序文件并删除了安装程序文件夹,但这没什么区别.
然后,我重新启动计算机,错误消息不再存在.
所以我认为至少我有办法解决这个问题.
但是,下一次警告和错误又回来了,从那以后又又回来了.我再也无法制作msi文件了.
I finally figured out how create an msi file (with help from https://msdn.microsoft.com/en-us/library/cc766795.aspx?f=255&MSPPError=-2147217396)
But now I am getting warning and error messages when I try to the solution in debug mode.
I  uninstalled the setup file and deleted the setup folder but it made no difference.
Then I restarted the computer and the error messages were not there anymore. 
So I thought at least I have a way to get around this issue. 
However, the next time the warnings and error came back and have been coming back since then.   I cannot make an msi file anymore.

推荐答案

您可以使用Process Explorer找出文件已锁定的内容.另一方面,您可以使用VS的Build/Clean删除bin文件夹中的所有文件,然后重新构建所有内容以查看锁已消失,然后重新构建解决方案

You can use Process Explorer to find out what has a file locked. On the other hand, you can use VS's Build/Clean delete all files out of the bin folders and rebuild everything to see of the lock is gone and do a Rebuild of the solution

h ttp://www.howtogeek .com/school/sysinternals-pro/lesson3/all/

https://msdn.microsoft.com/en-us/library/5tdasz7h.aspx


这篇关于该进程无法访问文件"bin \ release \ FileName.exe",因为其他进程正在使用该文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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