2010-08-25 5 views
0

Quelqu'un peut-il expliquer cette erreur? (il est apparu après avoir activé le suivi dans le plan de collecte.)IntellitraceFile lançant une erreur étrange

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

Du code pourrait vous aider. –

Répondre

0

Il s'agit d'un problème connu avec IntelliTrace. Le fichier journal a probablement été collecté à partir d'une application dont le même module était chargé dans plusieurs domaines d'application, ce qui a provoqué l'apparition d'IntelliTrace lors de l'extraction de la liste des processus, comme vous pouvez le constater.