2010-08-25 46 views
0

有人可以解釋這個錯誤嗎? (它允許在收集計劃跟蹤後出現了。)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 
+0

某些代碼可能會有所幫助。 – 2010-08-25 18:45:25

回答

0

這是一個已知問題的IntelliTrace。日誌文件很可能是從應用程序中收集的,該應用程序將相同的模塊加載到多個應用程序域中,這會導致IntelliTrace在抓取「進程」列表時出現問題,如您所見。