Yann the errors are getting thrown when the Tests are getting discovered. Basically I have a team of 6 developers and we are all working on a SharePoint WSS 3.0 project. Out Tests and TestFixtures are using the Order parameter to determine the order they get run in. We are using VS2010 and the test runner that is built into VS2010. We have been having the error on various versions of Gallio as we are not all using the same version. I could send you some code but there is no one test that is throwing the error. The Test Project is .Net 4.0 but the rest of solution is .Net 3.5 as test projects have to target .Net 4.0 in VS2010. We are using Microsoft Dynamics and IronRuby inside of some of the tests but the test itself is run in C#. What other information would be useful?
Thanks Bret On May 26, 12:41 pm, Yann Trevin <[email protected]> wrote: > Mmm not exactly. It was in the implementation of the PDB symbol resolver > based on the CCI Metadata project. It seems here to be in relation with a > bug or something in Mono.Cecil. It could indeed be interesting to isolate > the part of the user code that causes the exception. > > Bret, do you know when it occurs? When you run the tests? or before during > the exploration phase within Icarus, Resharper, or another test manager? Did > it appear after a recent addition of yours with some unusual code pattern > (nested generics, dynamic keywords, etc) > > Btw, I'm a bit astonished that Mono.Cecil is still used somewhere in the > Gallio code base. I don't know if Jeff will read this because he is very > busy these days but I would love to know his opinion. > > Yann. > > 2010/5/26 Graham Hay <[email protected]> > > > > > Do you have some code that you could share? Also, what version are you on? > > I know Yann fixed something similar recently. > > > On 26 May 2010 16:05, Bret Ferrier (runxc1) <[email protected]> wrote: > > >> Not sure exactly what the error is but I keep getting the following > >> messages in the Output Window of VS2010. > > >> [error] An exception was thrown while exploring tests. > >> Reference: EDIS.Test.Services.Import, EDIS.Test, Version=1.0.0.0, > >> Culture=neutral, PublicKeyToken=04f11aef856b7bba > >> Details: System.NullReferenceException: Object reference not set to > >> an instance of an object. > >> at > >> Mono.Cecil.ReflectionReader.VisitExternTypeCollection(ExternTypeCollection > >> externs) > >> at Mono.Cecil.AggressiveReflectionReader.ReadExternTypes() > >> at > > >> Mono.Cecil.AggressiveReflectionReader.VisitTypeDefinitionCollection(TypeDef > >> initionCollection > >> types) > >> at > >> Mono.Cecil.ReflectionReader.VisitModuleDefinition(ModuleDefinition > >> mod) > >> at > >> Mono.Cecil.StructureReader.TerminateAssemblyDefinition(AssemblyDefinition > >> asm) > >> at Mono.Cecil.AssemblyDefinition.Accept(IReflectionStructureVisitor > >> visitor) > >> at Mono.Cecil.AssemblyFactory.GetAssembly(ImageReader irv, Boolean > >> manifestOnly) > >> at Mono.Cecil.AssemblyFactory.GetAssembly(String file) > >> at > > >> Gallio.Common.Reflection.Impl.CecilReflectionPolicy.CustomAssemblyResolver. > >> LoadAssembly(String > >> assemblyFile) in c:\Server\Projects\MbUnit v3.2\Work\src\Gallio\Gallio > >> \Common\Reflection\Impl\CecilReflectionPolicy.cs:line 833 > >> at > > >> Gallio.Common.Reflection.Impl.CecilReflectionPolicy.CustomAssemblyResolver. > >> Resolve(AssemblyNameReference > >> name) in c:\Server\Projects\MbUnit v3.2\Work\src\Gallio\Gallio\Common > >> \Reflection\Impl\CecilReflectionPolicy.cs:line 867 > >> at > > >> Gallio.Common.Reflection.Impl.CecilReflectionPolicy.<>c__DisplayClass72.<Ma > >> keType>b__71() > >> in c:\Server\Projects\MbUnit v3.2\Work\src\Gallio\Gallio\Common > >> \Reflection\Impl\CecilReflectionPolicy.cs:line 701 > >> at Gallio.Common.KeyedMemoizer`2.Memoize(TKey key, Func`1 > >> populator) in c:\Server\Projects\MbUnit v3.2\Work\src\Gallio\Gallio > >> \Common\KeyedMemoizer.cs:line 91 > >> at > >> Gallio.Common.Reflection.Impl.CecilReflectionPolicy.MakeType(TypeReference > >> typeHandle) in c:\Server\Projects\MbUnit v3.2\Work\src\Gallio\Gallio > >> \Common\Reflection\Impl\CecilReflectionPolicy.cs:line 672 > >> at > > >> Gallio.Common.Reflection.Impl.CecilReflectionPolicy.WrapConstructor(MethodR > >> eference > >> methodRefHandle) in c:\Server\Projects\MbUnit v3.2\Work\src\Gallio > >> \Gallio\Common\Reflection\Impl\CecilReflectionPolicy.cs:line 73 > >> at > > >> Gallio.Common.Reflection.Impl.CecilReflectionPolicy.GetAttributeConstructor > >> (StaticAttributeWrapper > >> attribute) in c:\Server\Projects\MbUnit v3.2\Work\src\Gallio\Gallio > >> \Common\Reflection\Impl\CecilReflectionPolicy.cs:line 245 > >> at > > >> Gallio.Common.Reflection.Impl.StaticAttributeWrapper.<get_Constructor>b__0( > >> ) > >> in c:\Server\Projects\MbUnit v3.2\Work\src\Gallio\Gallio\Common > >> \Reflection\Impl\StaticAttributeWrapper.cs:line 57 > >> at Gallio.Common.Memoizer`1.Memoize(Func`1 populator) in c:\Server > >> \Projects\MbUnit v3.2\Work\src\Gallio\Gallio\Common\Memoizer.cs:line > >> 67 > >> at > >> Gallio.Common.Reflection.Impl.StaticAttributeWrapper.get_Constructor() > >> in c:\Server\Projects\MbUnit v3.2\Work\src\Gallio\Gallio\Common > >> \Reflection\Impl\StaticAttributeWrapper.cs:line 57 > >> at Gallio.Common.Reflection.Impl.StaticAttributeWrapper.get_Type() > >> in c:\Server\Projects\MbUnit v3.2\Work\src\Gallio\Gallio\Common > >> \Reflection\Impl\StaticAttributeWrapper.cs:line 49 > >> at > > >> Gallio.Common.Reflection.Impl.StaticCodeElementWrapper.<GetAttributeInfos>d > >> __1.MoveNext() > >> in c:\Server\Projects\MbUnit v3.2\Work\src\Gallio\Gallio\Common > >> \Reflection\Impl\StaticCodeElementWrapper.cs:line 63 > >> at > >> Gallio.Common.Reflection.AttributeUtils.<ResolveAttributes>d__c.MoveNext() > >> in c:\Server\Projects\MbUnit v3.2\Work\src\Gallio\Gallio\Common > >> \Reflection\AttributeUtils.cs:line 127 > >> at > >> Gallio.Common.Reflection.AttributeUtils.<GetAttributes>d__0`1.MoveNext() > >> in c:\Server\Projects\MbUnit v3.2\Work\src\Gallio\Gallio\Common > >> \Reflection\AttributeUtils.cs:line 50 > >> at > > >> Gallio.Framework.Pattern.DeclarativePatternResolver.<GetPatterns>d__0.MoveN > >> ext() > >> in c:\Server\Projects\MbUnit v3.2\Work\src\Gallio\Gallio\Framework > >> \Pattern\DeclarativePatternResolver.cs:line 43 > >> at > > >> Gallio.Framework.Pattern.DefaultPatternEvaluator.GetPrimaryPattern(ICodeEle > >> mentInfo > >> codeElement) in c:\Server\Projects\MbUnit v3.2\Work\src\Gallio\Gallio > >> \Framework\Pattern\DefaultPatternEvaluator.cs:line 183 > >> at > >> Gallio.Framework.Pattern.DefaultPatternEvaluator.Consume(IPatternScope > >> containingScope, ICodeElementInfo codeElement, Boolean skipChildren, > >> IPattern defaultPrimaryPattern) in c:\Server\Projects\MbUnit v3.2\Work > >> \src\Gallio\Gallio\Framework\Pattern\DefaultPatternEvaluator.cs:line > >> 127 > >> [error] An exception was thrown while exploring tests. > >> Location: C:\_Projects3_5\SPS\EDIS\trunk\EDIS.Test\Service > >> References > >> \Services\Reference.cs > >> Reference: EDIS.Test.Services.ImportClient, EDIS.Test, > >> Version=1.0.0.0, Culture=neutral, PublicKeyToken=04f11aef856b7bba > >> Details: System.NullReferenceException: Object reference not set to > >> an instance of an object. > >> at > >> Mono.Cecil.ReflectionReader.VisitExternTypeCollection(ExternTypeCollection > >> externs) > >> at Mono.Cecil.AggressiveReflectionReader.ReadExternTypes() > >> at > > >> Mono.Cecil.AggressiveReflectionReader.VisitTypeDefinitionCollection(TypeDef > >> initionCollection > >> types) > >> at > >> Mono.Cecil.ReflectionReader.VisitModuleDefinition(ModuleDefinition > >> mod) > >> at > >> Mono.Cecil.StructureReader.TerminateAssemblyDefinition(AssemblyDefinition > >> asm) > >> at Mono.Cecil.AssemblyDefinition.Accept(IReflectionStructureVisitor > >> visitor) > >> at Mono.Cecil.AssemblyFactory.GetAssembly(ImageReader irv, Boolean > >> manifestOnly) > >> at Mono.Cecil.AssemblyFactory.GetAssembly(String file) > >> at > > >> Gallio.Common.Reflection.Impl.CecilReflectionPolicy.CustomAssemblyResolver. > >> LoadAssembly(String > >> assemblyFile) in c:\Server\Projects\MbUnit v3.2\Work\src\Gallio\Gallio > >> \Common\Reflection\Impl\CecilReflectionPolicy.cs:line 833 > >> at > > >> Gallio.Common.Reflection.Impl.CecilReflectionPolicy.CustomAssemblyResolver. > >> Resolve(AssemblyNameReference > >> name) in c:\Server\Projects\MbUnit v3.2\Work\src\Gallio\Gallio\Common > >> \Reflection\Impl\CecilReflectionPolicy.cs:line 867 > >> at > > >> Gallio.Common.Reflection.Impl.CecilReflectionPolicy.<>c__DisplayClass72.<Ma > >> keType>b__71() > >> in c:\Server\Projects\MbUnit v3.2\Work\src\Gallio\Gallio\Common > >> \Reflection\Impl\CecilReflectionPolicy.cs:line 701 > >> at Gallio.Common.KeyedMemoizer`2.Memoize(TKey key, Func`1 > >> populator) in c:\Server\Projects\MbUnit v3.2\Work\src\Gallio\Gallio > >> \Common\KeyedMemoizer.cs:line 91 > >> at > >> Gallio.Common.Reflection.Impl.CecilReflectionPolicy.MakeType(TypeReference > >> typeHandle) in c:\Server\Projects\MbUnit v3.2\Work\src\Gallio\Gallio > >> \Common\Reflection\Impl\CecilReflectionPolicy.cs:line 672 > >> at > > >> Gallio.Common.Reflection.Impl.CecilReflectionPolicy.MakeGenericInstanceType > >> (GenericInstanceType > >> typeHandle) in c:\Server\Projects\MbUnit v3.2\Work\src\Gallio\Gallio > >> \Common\Reflection\Impl\CecilReflectionPolicy.cs:line 763 > >> at > > >> Gallio.Common.Reflection.Impl.CecilReflectionPolicy.<>c__DisplayClass72.<Ma > >> keType>b__71() > >> in c:\Server\Projects\MbUnit v3.2\Work\src\Gallio\Gallio\Common > >> \Reflection\Impl\CecilReflectionPolicy.cs:line 695 > >> at Gallio.Common.KeyedMemoizer`2.Memoize(TKey key, Func`1 > >> populator) in c:\Server\Projects\MbUnit v3.2\Work\src\Gallio\Gallio > >> \Common\KeyedMemoizer.cs:line 91 > >> at > >> Gallio.Common.Reflection.Impl.CecilReflectionPolicy.MakeType(TypeReference > >> typeHandle) in c:\Server\Projects\MbUnit v3.2\Work\src\Gallio\Gallio > >> \Common\Reflection\Impl\CecilReflectionPolicy.cs:line 672 > >> at > > >> Gallio.Common.Reflection.Impl.CecilReflectionPolicy.GetTypeBaseType(StaticD > >> eclaredTypeWrapper > >> type) in c:\Server\Projects\MbUnit v3.2\Work\src\Gallio\Gallio\Common > >> \Reflection\Impl\CecilReflectionPolicy.cs:line 609 > >> at > > >> Gallio.Common.Reflection.Impl.StaticDeclaredTypeWrapper.<get_BaseType>b__3( > >> ) > >> in c:\Server\Projects\MbUnit v3.2\Work\src\Gallio\Gallio\Common > >> \Reflection\Impl\StaticDeclaredTypeWrapper.cs:line 104 > >> at Gallio.Common.Memoizer`1.Memoize(Func`1 populator) in c:\Server > >> \Projects\MbUnit v3.2\Work\src\Gallio\Gallio\Common\Memoizer.cs:line > >> 67 > >> at > >> Gallio.Common.Reflection.Impl.StaticDeclaredTypeWrapper.get_BaseType() > >> in c:\Server\Projects\MbUnit v3.2\Work\src\Gallio\Gallio\Common > >> \Reflection\Impl\StaticDeclaredTypeWrapper.cs:line 102 > >> at > > >> Gallio.Common.Reflection.Impl.StaticDeclaredTypeWrapper.get_BaseTypeInterna > >> l() > >> in c:\Server\Projects\MbUnit v3.2\Work\src\Gallio\Gallio\Common > >> \Reflection\Impl\StaticDeclaredTypeWrapper.cs:line 113 > >> at > > ... > > read more » -- You received this message because you are subscribed to the Google Groups "MbUnit.User" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/mbunituser?hl=en.
