项目不在我的系统上运行 [英] Project not run on my system

查看:77
本文介绍了项目不在我的系统上运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从一个源代码网站下载项目,我想运行它,但它总是抛出这样的错误....



I download project from one of source code site, and i want to run this, but it always throw a error like this....

Error   1   Could not write lines to file "obj\Debug\CarRentalSystem.vbproj.FileListAbsolute.txt". Access to the path 'C:\Users\CSLab1\Desktop\RentalSystem\RentalSystem\obj\Debug\RentalSystem.vbproj.FileListAbsolute.txt' is denied.





我也从调试文件夹中删除文件并清理解决方案,但又一次收到此错误..

数据库路径中没有问题..



also i delete the file from debug folder and clean the solution, but again getting this error..
no issue in database path ..

推荐答案

在您的特定情况下,您可能正在使用项目的obj子目录。你永远不应该这样做。该目录专用于构建所需的临时文件,并受Visual Studio保护。你无法做任何事情,使用它根本就没有任何意义。请注意,部署和运行应用程序时甚至不存在它。它不依赖于权限。



一般情况下,当许可是问题时,请执行以下操作之一:



In your particular case, you are probably using the "obj" sub-directory of your project. You should never ever do it. The directory is dedicated for temporary files needed for the build and is protected by Visual Studio. You cannot do anything about it, using it simply never makes any sense. Note that it does not even exist when you deploy and run the application. It does not depend on permissions.

In general case, when permission is the problem, do one of the following:

  • Change the location of your file to some legitimate location.
  • Do some administration of your file system to allow access for appropriate class of users for the directory you are using.
  • Run your application with elevated privileges: http://www.sevenforums.com/tutorials/11841-run-administrator.html[^].


打开Visual Studio时,以管理员身份运行。
When you open Visual Studio, run as administrator.


这篇关于项目不在我的系统上运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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