Unfortunately, I was not able to reproduce the issue so far. I have created
a small test project with one test fixture, and added a reference to a
random public web service (http://www.ghettodriveby.com/soap/index.php?wsdl).
Then I ran the test project against TD.Net but it works fine.

I'm pretty sure that Mono.Cecil can't digest some specific
object/type/method or something.

*sigh*


2010/5/27 Bret Ferrier (runxc1) <[email protected]>

> Okay so looking over the error it looks like it is getting thrown
> while trying to inspect a Web Service Reference that has been added to
> the project.
>
>
>
> //------------------------------------------------------------------------------
> // <auto-generated>
> //     This code was generated by a tool.
> //     Runtime Version:4.0.30319.1
> //
> //     Changes to this file may cause incorrect behavior and will be
> lost if
> //     the code is regenerated.
> // </auto-generated>
>
> //------------------------------------------------------------------------------
>
> namespace XXXX.Test.Services {
>
>
>
> [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel",
> "4.0.0.0")]
>
>
> [System.ServiceModel.ServiceContractAttribute(Namespace="XXXX.SharePoint.Services",
> ConfigurationName="Services.Import")]
>    public interface Import {
>
>
>
> [System.ServiceModel.OperationContractAttribute(Action="XXXX.SharePoint.Services/
> Import/GetFileByPath", ReplyAction="XXXX.SharePoint.Services/Import/
> GetFileByPathResponse")]
>        byte[] GetFileByPath(string filePath);
>    }
>
>
> [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel",
> "4.0.0.0")]
>    public interface ImportChannel : XXXX.Test.Services.Import,
> System.ServiceModel.IClientChannel {
>    }
>
>    [System.Diagnostics.DebuggerStepThroughAttribute()]
>
> [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel",
> "4.0.0.0")]
>    public partial class ImportClient :
> System.ServiceModel.ClientBase<XXXX.Test.Services.Import>,
> XXXX.Test.Services.Import {
>
>        public ImportClient() {
>        }
>
>        public ImportClient(string endpointConfigurationName) :
>                base(endpointConfigurationName) {
>        }
>
>        public ImportClient(string endpointConfigurationName, string
> remoteAddress) :
>                base(endpointConfigurationName, remoteAddress) {
>        }
>
>        public ImportClient(string endpointConfigurationName,
> System.ServiceModel.EndpointAddress remoteAddress) :
>                base(endpointConfigurationName, remoteAddress) {
>        }
>
>        public ImportClient(System.ServiceModel.Channels.Binding
> binding, System.ServiceModel.EndpointAddress remoteAddress) :
>                base(binding, remoteAddress) {
>        }
>
>        public byte[] GetFileByPath(string filePath) {
>            return base.Channel.GetFileByPath(filePath);
>         }
>    }
> }
>
>
> 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]<mbunituser%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/mbunituser?hl=en.
>
>

-- 
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.

Reply via email to