Quantcast
Channel: Team Foundation Server - General forum
Viewing all articles
Browse latest Browse all 6687

CA0055 error in TFS build

$
0
0

I am getting CA0055 error sometimes with my build system in tfs 2012. Surprisingly if I trigger a new build the error is not coming.

Below is the exception stack

<Exception Keyword="CA0055" Kind="AssemblyLoad">
   <Type>Microsoft.FxCop.Common.AssemblyLoadException</Type>
   <ExceptionMessage>Could not load D:\CodeBuilds\Project\Project-2.2-Setup\src\ProjectBuild\WPF\Output\Release\Details.dll.</ExceptionMessage>
   <InnerType>System.IO.FileLoadException</InnerType>
   <InnerExceptionMessage>The process cannot access the file because it is being used by another process.</InnerExceptionMessage>
   <InnerStackTrace>   at Microsoft.VisualStudio.CodeAnalysis.Common.AssemblyInfo.GetAssemblyInfo(String fileName)
   at Microsoft.VisualStudio.CodeAnalysis.Common.AssemblyResolver.FindAssemblyOnSearchPath(AssemblyName reference, String path, HashSet`1 silverlightAssemblyLocations)
   at Microsoft.VisualStudio.CodeAnalysis.Common.AssemblyResolver.FindAssembly(AssemblyName reference, String referencingAssemblyFileName)
   at Microsoft.VisualStudio.CodeAnalysis.Common.AssemblyResolver.ResolveAssembly(AssemblyName reference, String referencingAssemblyFileName, Boolean allowRemapping)
   at Microsoft.VisualStudio.CodeAnalysis.Common.AssemblyResolver.ResolveAssembly(AssemblyName reference, String referencingAssemblyFileName)
   at Microsoft.FxCop.Common.FxCopAssemblyResolver`1.Resolve(AssemblyName reference, String referencingModulePath)
   at Microsoft.FxCop.Common.FxCopAssemblyResolver`1.ResolveAssembly(AssemblyName reference, String referencingModuleLocation, Boolean optional)
   at Microsoft.FxCop.Common.IntrospectionAssemblyResolver.ResolveAssemblyReference(AssemblyReference reference, ModuleNode module)
   at Microsoft.FxCop.Sdk.ModuleNode.Resolve(AssemblyReference assemblyReference)
   at Microsoft.FxCop.Sdk.Reader.GetAssemblyFromReference(AssemblyReference assemblyReference)
   at Microsoft.FxCop.Sdk.AssemblyReference.get_Assembly()
   at Microsoft.FxCop.Sdk.Reader.GetTypeFromRef(Int32 i, Boolean expectStruct)
   at Microsoft.FxCop.Sdk.Reader.DecodeAndGetTypeDefOrRefOrSpec(Int32 codedIndex)
   at Microsoft.FxCop.Sdk.Reader.GetInterfaces(Int32 i, Int32 firstInterfaceIndex, InterfaceCollection interfaces)
   at Microsoft.FxCop.Sdk.Reader.GetTypeFromDefHelper(Int32 i)
   at Microsoft.FxCop.Sdk.Reader.GetTypeFromDef(Int32 i)
   at Microsoft.FxCop.Sdk.Reader.GetTypeList(ModuleNode module)
   at Microsoft.FxCop.Sdk.ModuleNode.get_Types()
   at Microsoft.FxCop.Sdk.ModuleNode.get_ModuleReferences()
   at Microsoft.FxCop.Common.AssemblyNodeEx.GetAllModuleReferences(AssemblyNode assembly)
   at Microsoft.FxCop.Common.CommonUtilitiesProvider.GetAssemblyThread()
   at Microsoft.FxCop.Common.CommonUtilitiesProvider.GetAssembly(String fileName, Boolean hookUpResolver, Boolean getDebugInfo, Boolean useGlobalCache)
   at Microsoft.FxCop.Common.CommonUtilitiesProvider.GetAssembly(String fileName, Boolean hookUpResolver)
   at Microsoft.FxCop.Common.CommonUtilitiesProvider.GetAssembly(String fileName)
   at Microsoft.FxCop.Common.IntrospectionAssemblyResolver.GetAssembly(String assemblyPath)
   at Microsoft.FxCop.Common.FxCopAssemblyResolver`1.Resolve(AssemblyName reference, String referencingModulePath)
   at Microsoft.FxCop.Common.FxCopAssemblyResolver`1.ResolveAssembly(AssemblyName reference, String referencingModuleLocation, Boolean optional)
   at Microsoft.FxCop.Common.IntrospectionAssemblyResolver.ResolveAssemblyReference(AssemblyReference reference, ModuleNode module)
   at Microsoft.FxCop.Sdk.ModuleNode.Resolve(AssemblyReference assemblyReference)
   at Microsoft.FxCop.Sdk.Reader.GetAssemblyFromReference(AssemblyReference assemblyReference)
   at Microsoft.FxCop.Sdk.AssemblyReference.get_Assembly()
   at Microsoft.FxCop.Sdk.Reader.GetTypeFromRef(Int32 i, Boolean expectStruct)
   at Microsoft.FxCop.Sdk.Reader.DecodeAndGetTypeDefOrRefOrSpec(Int32 codedIndex)
   at Microsoft.FxCop.Sdk.Reader.ParseTypeSignature(MemoryCursor sigReader, Boolean&amp; pinned, Boolean&amp; isTypeArgument)
   at Microsoft.FxCop.Sdk.Reader.ParseTypeList(MemoryCursor sigReader)
   at Microsoft.FxCop.Sdk.Reader.ParseTypeSignature(MemoryCursor sigReader, Boolean&amp; pinned, Boolean&amp; isTypeArgument)
   at Microsoft.FxCop.Sdk.Reader.GetTypeFromSpec(Int32 i)
   at Microsoft.FxCop.Sdk.Reader.DecodeAndGetTypeDefOrRefOrSpec(Int32 codedIndex)
   at Microsoft.FxCop.Sdk.Reader.GetTypeFromDefHelper(Int32 i)
   at Microsoft.FxCop.Sdk.Reader.GetTypeFromDef(Int32 i)
   at Microsoft.FxCop.Sdk.Reader.GetTypeList(ModuleNode module)
   at Microsoft.FxCop.Sdk.ModuleNode.get_Types()
   at Microsoft.FxCop.Sdk.ModuleNode.get_ModuleReferences()
   at Microsoft.FxCop.Common.AssemblyNodeEx.GetAllModuleReferences(AssemblyNode assembly)
   at Microsoft.FxCop.Common.CommonUtilitiesProvider.GetAssemblyThread()
   at Microsoft.FxCop.Common.CommonUtilitiesProvider.GetAssembly(String fileName, Boolean hookUpResolver, Boolean getDebugInfo, Boolean useGlobalCache)
   at Microsoft.FxCop.Common.CommonUtilitiesProvider.GetAssembly(String fileName, Boolean hookUpResolver)
   at Microsoft.FxCop.Common.CommonUtilitiesProvider.GetAssembly(String fileName)
   at Microsoft.FxCop.Common.IntrospectionAssemblyResolver.GetAssembly(String assemblyPath)
   at Microsoft.FxCop.Common.FxCopAssemblyResolver`1.Resolve(AssemblyName reference, String referencingModulePath)
   at Microsoft.FxCop.Common.FxCopAssemblyResolver`1.ResolveAssembly(AssemblyName reference, String referencingModuleLocation, Boolean optional)
   at Microsoft.FxCop.Common.IntrospectionAssemblyResolver.ResolveAssemblyReference(AssemblyReference reference, ModuleNode module)
   at Microsoft.FxCop.Sdk.ModuleNode.Resolve(AssemblyReference assemblyReference)
   at Microsoft.FxCop.Sdk.Reader.GetAssemblyFromReference(AssemblyReference assemblyReference)
   at Microsoft.FxCop.Sdk.AssemblyReference.get_Assembly()
   at Microsoft.FxCop.Sdk.Reader.GetTypeFromRef(Int32 i, Boolean expectStruct)
   at Microsoft.FxCop.Sdk.Reader.GetTypeIfNotGenericInstance(Int32 codedIndex)
   at Microsoft.FxCop.Sdk.Reader.ConstructCorrectTypeNodeSubclass(Int32 i, Identifier namesp, Int32 firstInterfaceIndex, Int32 lastInterfaceIndex, TypeFlags flags, InterfaceCollection interfaces, Int32 baseTypeCodedIndex, Boolean isSystemEnum)
   at Microsoft.FxCop.Sdk.Reader.GetTypeFromDefHelper(Int32 i)
   at Microsoft.FxCop.Sdk.Reader.GetTypeFromDef(Int32 i)
   at Microsoft.FxCop.Sdk.Reader.GetTypeList(ModuleNode module)
   at Microsoft.FxCop.Sdk.ModuleNode.get_Types()
   at Microsoft.FxCop.Sdk.ModuleNode.get_ModuleReferences()
   at Microsoft.FxCop.Common.AssemblyNodeEx.GetAllModuleReferences(AssemblyNode assembly)
   at Microsoft.FxCop.Common.CommonUtilitiesProvider.GetAssemblyThread()
   at Microsoft.FxCop.Common.CommonUtilitiesProvider.GetAssembly(String fileName, Boolean hookUpResolver, Boolean getDebugInfo, Boolean useGlobalCache)
   at Microsoft.FxCop.Common.CommonUtilitiesProvider.GetAssembly(String fileName, Boolean hookUpResolver)
   at Microsoft.FxCop.Engines.Introspection.IntrospectionAnalysisEngine.CanLoadTargetFile(TargetFile target)
   at Microsoft.FxCop.Common.EngineManager.LoadTargets(TargetFile target, Boolean resetCounts, String loadEngine)</InnerStackTrace>
  </Exception>

Please help me on this. Let me know if you need more info?


Thanks, Satyajit



Viewing all articles
Browse latest Browse all 6687

Trending Articles