【问题标题】:IntellitraceFile throwing strange errorIntellitrace 文件显示奇怪的错误
【发布时间】:2011-04-03 21:37:45
【问题描述】:

有人可以解释这个错误吗? (在收集计划中启用跟踪后出现。)

Test method ExecuteTaskTest threw exception: 
System.ArgumentException: An item with the same key has already been added.

System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
Microsoft.VisualStudio.IntelliTrace.IntelliTraceProcess.AddModule(IntelliTraceModule module)
Microsoft.VisualStudio.IntelliTrace.IntelliTraceProcess.Initialize(IntelliTraceFile traceDebugLogFile)
Microsoft.VisualStudio.IntelliTrace.IntelliTraceProcess..ctor(IntelliTraceFile traceDebugLogFile)
**Microsoft.VisualStudio.IntelliTrace.IntelliTraceFile.get_Processes()**
Microsoft.VisualStudio.Samples.IntelliTraceReader..ctor(String logFileName) in C:\workspace\agileproductlinerdsl\ITraceLogParser\IntelliTraceReader.cs: line 49
UofCASE.AgileProductLinerDSL.Nant.AspenTest.writeTraceResult(FileInfo itraceLog, FileInfo resultFile) in C:\workspace\agileproductlinerdsl\NantTask\AspenTest.cs: line 148
UofCASE.AgileProductLinerDSL.Nant.AspenTest.runTests(FeatureTestMap tests) in C:\workspace\agileproductlinerdsl\NantTask\AspenTest.cs: line 124
UofCASE.AgileProductLinerDSL.Nant.AspenTest.ExecuteTask() in C:\workspace\agileproductlinerdsl\NantTask\AspenTest.cs: line 56
APLDTests.AspenTestTest.ExecuteTaskTest() in C:\workspace\agileproductlinerdsl\APLDTests\AspenTestTest.cs: line 37

【问题讨论】:

    标签: c# intellitrace visual-studio-debugging


    【解决方案1】:

    这是 IntelliTrace 的一个已知问题。日志文件可能是从将相同模块加载到多个应用程序域的应用程序收集的,这会导致 IntelliTrace 在抓取进程列表时出错,如您所见。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-08-27
      • 1970-01-01
      • 2014-09-09
      • 2011-09-22
      • 1970-01-01
      • 2017-11-30
      • 1970-01-01
      • 2016-03-13
      相关资源
      最近更新 更多