关闭

CustomBuild:拒绝访问。 error MSB6006: "cmd.exe" exited with code 1.

标签: error MSB6006拒绝访问error MSB4018
1344人阅读 评论(0) 收藏 举报
分类:
转自VC错误:http://www.vcerror.com/?p=1615
问题描述:

环境是VS2010+Qt4.8+WIN7 64位
程序出现过以下错误,发上来记录下
1>Build started 2015/5/8 17:04:04.
1>InitializeBuildStatus:
1> Touching "Release\Print3D.unsuccessfulbuild".
1>CustomBuild:
1> 拒绝访问。
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(151,5): error MSB6006: "cmd.exe" exited with code 1.
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(151,5): error MSB4018: The "CustomBuild" task failed unexpectedly.
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(151,5): error MSB4018: System.UnauthorizedAccessException: Access to the path 'C:\Users\QYT\AppData\Local\Temp\tmp1f3026b6a61442caafb35697e6416a0c.cmd' is denied.
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(151,5): error MSB4018: at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(151,5): error MSB4018: at System.IO.File.InternalDelete(String path, Boolean checkHost)
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(151,5): error MSB4018: at System.IO.File.Delete(String path)
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(151,5): error MSB4018: at Microsoft.Build.Utilities.ToolTask.Execute()
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(151,5): error MSB4018: at Microsoft.Build.CPPTasks.TrackedVCToolTask.Execute()
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(151,5): error MSB4018: at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(151,5): error MSB4018: at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__20.MoveNext()
1>
1>Build FAILED.
1>
1>Time Elapsed 00:00:00.36

解决方法:

具体的解决方法参考文章:http://www.vcerror.com/?p=1615
0
0

查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:899751次
    • 积分:9926
    • 等级:
    • 排名:第1812名
    • 原创:93篇
    • 转载:458篇
    • 译文:0篇
    • 评论:33条
    最新评论