访问被拒绝到项目的exe文件(exe文件不存在于bin\debug文件夹中 [英] Access denied to exe file of project (exe file is not present in bin\debug folder

查看:146
本文介绍了访问被拒绝到项目的exe文件(exe文件不存在于bin\debug文件夹中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

0


I have pulled one .net project from github. Opened it in Visual studio 19. There are multiple projects in Solution but only one project is giving the problem while building. Error is as follows :

"Severity Code Description Project File Line Suppression State Error CS2012 Cannot open 'C:\Users\cloverspd1\Source\Repos\cloverspd1\NPD\SyncDataJob\obj\Debug\SyncDataJob.exe' for writing -- 'Access to the path 'C:\Users\cloverspd1\Source\Repos\cloverspd1\NPD\SyncDataJob\obj\Debug\SyncDataJob.exe' is denied.' SyncDataJob C:\Users\cloverspd1\Source\Repos\cloverspd1\NPD\SyncDataJob\CSC 1 Active "

Thing is that ,.exe file does not exists there in debug folder. Since it is not building unable to create .exe file.





我尝试过:



给对项目文件夹的完全控制权。



What I have tried:

Gave full controll access to project folder.

推荐答案

可能存在ntfs权限问题。您可以以管理员身份发出这些命令:

There may be ntfs permission issues. You can issue these commands as an administrator:
cd C:\Users\cloverspd1\Source
takeown /R /F *
icacls * /T /Q /C /RESET

并查看是否能解决问题。

and see if that fixes the issue.


这篇关于访问被拒绝到项目的exe文件(exe文件不存在于bin\debug文件夹中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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