IntellitraceFile 抛出奇怪的错误
有人可以解释这个错误吗? (在收集计划中启用跟踪后出现。)
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
Can someone explain this error? (it showed up after enabling tracing in the collection plan.)
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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是 IntelliTrace 的一个已知问题。日志文件可能是从将相同模块加载到多个应用程序域的应用程序中收集的,这会导致 IntelliTrace 在获取进程列表时出现错误(如您所见)。
It's a known issue with IntelliTrace. The log file was likely collected from an app that had the same module loaded into multiple app domains and this causes IntelliTrace to barf when grabbing the Process list as you can see.