MS Build Server 2010 - 缓冲区溢出 // 附加:如何从源安全中排除目录
我尝试在 MS Build Server(MS Visual Studio 2010 版本 10.0.30319.1)中构建一个关于 ServerTasks -> 的解决方案构建 ->服务器任务生成器 ->排队新的内置并运行,47 秒后我得到一个错误输出:
CSC:创建调试信息文件'c:\ Builds \ 1 \ ServerTasks \ Server-Tasks Builder \ Sources \ ThirdParty \ Sources \ samus-mongodb-csharp-2b8934f \ MongoDB.Linq \ obj \ Debug \ MongoDB时出现意外错误。 Linq.PDB'--'c:\ Builds \ 1 \ ServerTasks \ Server-Tasks Builder \ Sources \ ThirdParty \ Sources \ samus-mongodb-csharp-2b8934f \ MongoDB.Linq \ obj \ Debug \ MongoDB.Linq.pdb:访问被拒绝
我检查过目录的权限并将其设置(仅用于调试目的)以授予所有用户访问权限,但仍然存在问题。运行 Procmon 并过滤目录的文件访问:
'c:\Builds\1\ServerTasks\Server-Tasks Builder\Sources\ThirdParty\Sources\samus-mongodb-csharp-2b8934f\MongoDB.Linq\obj\Debug\'
告诉我:
16:41:00,5449813 TFSBuildServiceHost.exe 3528 QuerySecurityFile C:\ Builds \ 1 \ ServerTasks \ Server-Tasks Builder \ Sources \ ThirdParty \ Sources \ samus-mongodb-csharp-2b8934f \ MongoDB.Linq \ obj \ Debug缓冲区溢出信息:DACL,0x20000000
和
16:41:00,5462119 TFSBuildServiceHost.exe 3528 QueryOpen C:\ Builds \ 1 \ ServerTasks \ Server-Tasks Builder \ Sources \ ThirdParty \ Sources \ samus-mongodb-csharp-2b8934f \ MongoDB.Linq \ obj \ Debug不允许快速 IO
有什么想法吗?
I try to build an solution in MS Build Server (MS Visual Studio 2010 ver 10.0.30319.1) about ServerTasks -> Builds -> Server Task Builder -> Queue new Built and go, 47 seconds later I get an error output:
CSC: Unexpected error creating debug information file 'c:\Builds\1\ServerTasks\Server-Tasks Builder\Sources\ThirdParty\Sources\samus-mongodb-csharp-2b8934f\MongoDB.Linq\obj\Debug\MongoDB.Linq.PDB' -- 'c:\Builds\1\ServerTasks\Server-Tasks Builder\Sources\ThirdParty\Sources\samus-mongodb-csharp-2b8934f\MongoDB.Linq\obj\Debug\MongoDB.Linq.pdb: Access denied
I checked the permissions of directory and set it (for debug purposes only) to grant access for all users, but still having an issue. Running the Procmon and filter file access for directory:
'c:\Builds\1\ServerTasks\Server-Tasks Builder\Sources\ThirdParty\Sources\samus-mongodb-csharp-2b8934f\MongoDB.Linq\obj\Debug\'
tells me:
16:41:00,5449813 TFSBuildServiceHost.exe 3528 QuerySecurityFile C:\Builds\1\ServerTasks\Server-Tasks Builder\Sources\ThirdParty\Sources\samus-mongodb-csharp-2b8934f\MongoDB.Linq\obj\Debug BUFFER OVERFLOW Information: DACL, 0x20000000
and
16:41:00,5462119 TFSBuildServiceHost.exe 3528 QueryOpen C:\Builds\1\ServerTasks\Server-Tasks Builder\Sources\ThirdParty\Sources\samus-mongodb-csharp-2b8934f\MongoDB.Linq\obj\Debug FAST IO DISALLOWED
Any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
在我昨天找到如何解决之后,Kockiren 让我回答这个线程...
这个导致问题的文件主要是这个文件,这些文件将在构建解决方案时生成。
只需通过以下方式将它们从源代码管理中删除
1.进入VS中的源代码管理资源管理器
2. 单击此文件(或它们所在的文件夹)
3.然后按DEL删除它们
签入解决方案后,您构建的项目将运行!
Kockiren asked my to answer this thread after i found how to solve yesterday ...
This files which makes the problems here, are mostly this files, that will be generated while building the solution.
Simply remove them from source-control by
1. go to Source Control Explorer in VS
2. klick on this files (or the folder in which they are)
3. and press DEL to remove them
After checking in the solution and the projects you built will run!
您应该使用 Procmon 过滤掉所有 ACCESS DENIED 记录。缓冲区溢出和不允许的快速 IO 可以忽略。
What you should do with Procmon is to filter out all ACCESS DENIED records. Buffer overflow and fast IO disallowed can be ignored.
我在 stackoverflow 上找到了一个线程 “如何排除 bin 文件夹...” 谁告诉我问题是我签入了 bin 目录。为了解决这个问题,我应该右键单击 bin 目录并选择“从项目中排除”,但没有这个选项。
我使用源资源管理器(VS2010 TFS)进行尝试,打开源,右键单击 bin 目录,将打开包含以下条目的上下文菜单:
我尝试隐藏文件夹,但此选项仅适用于我的工作副本,不适用于构建任务。有什么想法,如何从源安全中排除该文件夹?
I found a thread here on stackoverflow "How can I exclude the bin folder..." who tells me the problem is that i checked in the bin directory. To solve the problem I should right-click the bin directory and select "Exclude from project", but there isn't this option.
I try it with Source Explorer (VS2010 TFS), open the Source an right-click to the bin directory and context-menu with following entries will be open:
I try to cloak the folder, but this option ist only for my workingcopy and not for Built Task. Any ideas, how to exclude the folder from Source Safe?