在Visual Studio中的错误,对路径的访问被拒绝 [英] error in visual studio, Access to the path is denied

查看:5510
本文介绍了在Visual Studio中的错误,对路径的访问被拒绝的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直有现在这个问题一段时间。我创建了Visual Studio的一个全新的WinForms C#应用程序。我通常可以启动它在调试模式下,一旦没有问题。不过,如果我关闭它,启动它,我再次得到一个错误无法文件TestApplication.exe复制到BIN \发布\ TestApplication.exe。访问路径被拒绝。

I've been having this problem for a while now. I created a brand new winforms c# application in Visual Studio. I can usually launch it in debug mode once without a problem. However, if I close it and launch it again I get an error "Unable to copy file TestApplication.exe to bin\release\TestApplication.exe". Access to the path is denied.

这是推动我疯了。这究竟是为什么?我注意到,该文件夹被标记为只读。然而,当我试图改变它什么也没有发生。我的经理认为,它可能是一些我已经安装了扩展的故障。我使用的是微软的电动工具以及AnkhSVN的插件。

This is driving me crazy. Why is this happening? I noticed that the folders are marked as read only. However, when I try to change it nothing happens. My manager suggested that it could be the fault of some of the extensions that I've installed. I'm using Microsoft's power tools as well as AnkhSVN plug in.

推荐答案

首先检查,看是否可以删除的EXE文件。如果你不能,这意味着一些程序上有一个手柄。

First check to see if you can delete the EXE. If you can't that means some process has a handle on it.

运行的Process Explorer 并做一个搜索TestApplication.exe找一下这是

Run Process Explorer and do a search for TestApplication.exe to find what it is

这篇关于在Visual Studio中的错误,对路径的访问被拒绝的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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