由于临时DLL,单元测试因TFS 2010构建而失败

时间:2014-02-10 17:50:36

标签: tfs2010

我们在一个特定项目上使用TFS约18个月。我们已经建立了许多构建,但最基本的是我们的持续集成构建。只要有人签入,它就会建立,并且只运行“单元测试”类别的测试

上周我们的MS单元测试中的部分(而非全部)开始因以下错误而失败。每个失败的单元测试都有不同的DLL名称。我能够通过重新启动构建控制器来修复错误,但本周错误已经开始再次发生。

错误:

“System.IO.FileNotFoundException:找不到文件'C:\ Users \ builduser \ AppData \ Local \ Temp \ nejkrwfa.dll'”

知道可能导致此错误的原因是什么?

添加了错误的堆栈跟踪:

  

System.IO .__ Error.WinIOError(Int32 errorCode,String maybeFullPath)   System.IO.FileStream.Init(String path,FileMode mode,FileAccess   访问,Int32权限,布尔useRights,FileShare共享,Int32   bufferSize,FileOptions选项,SECURITY_ATTRIBUTES secAttrs,String   msgPath,Boolean bFromProxy,Boolean useLongPath)   System.IO.FileStream..ctor(String path,FileMode mode,FileAccess   访问,FileShare共享)   Microsoft.CSharp.CSharpCodeGenerator.FromFileBatch(CompilerParameters   options,String [] fileNames)   Microsoft.CSharp.CSharpCodeGenerator.FromSourceBatch(CompilerParameters   options,String [] sources)   Microsoft.CSharp.CSharpCodeGenerator.System.CodeDom.Compiler.ICodeCompiler.CompileAssemblyFromSourceBatch(CompilerParameters   options,String [] sources)   System.CodeDom.Compiler.CodeDomProvider.CompileAssemblyFromSource(CompilerParameters   options,String [] sources)   System.Xml.Serialization.Compiler.Compile(程序集父级,字符串ns,   XmlSerializerCompilerParameters xmlParameters,证据证据)   System.Xml.Serialization.TempAssembly.GenerateAssembly(XmlMapping []   xmlMappings,Type [] types,String defaultNamespace,Evidence evidence,   XmlSerializerCompilerParameters参数,Assembly assembly,   Hashtable程序集)   System.Xml.Serialization.XmlSerializer.GenerateTempAssembly(XmlMapping   xmlMapping,Type type,String defaultNamespace)   System.Xml.Serialization.XmlSerializer..ctor(Type type,String   defaultNamespace)System.Xml.Serialization.XmlSerializer..ctor(Type   type)CombinedEPCRegister.WebServices.ErrorResponse.ToXml()in   c:\ dev \ ErrorResponse.cs:第19行   CombinedEPCRegister.WebServices.Controllers.WhatIfServiceController.GetWhatIfXMLByWhatIfId(字符串   whatIfId,String username,String password,String assessorOrgId,   String assessorId)in   c:\ Builds \ Controllers \ WhatIfServiceController.cs:第261行   CombinedEPCRegister.Tests.WebServiceControllers.WhatIfServiceControllerTest.GetWhatIfXMLByWhatIfId_InvalidPassword()   在   C:\构建\测试\ WebServiceControllers \ WhatIfServiceControllerTest.cs:   第881行

0 个答案:

没有答案
相关问题