Microsoft.FxCop.Sdk.InvalidMetadataException Microsoft.FxCop.Sdk.InvalidMetadataException 读取模块“myproject”时遇到以下错误:位置0中的方法类型参数无效。

Microsoft.FxCop.Sdk.InvalidMetadataException Microsoft.FxCop.Sdk.InvalidMetadataException 读取模块“myproject”时遇到以下错误:位置0中的方法类型参数无效。,fxcop,Fxcop,Microsoft.FxCop.Sdk.InvalidMetadataException Microsoft.FxCop.Sdk.InvalidMetadataException 读取模块“myproject”时遇到以下错误:位置0中的方法类型参数无效。 在Microsoft.FxCop.Sdk.Reader.HandleError(ModuleNode mod,String errorMessage)在Microsoft.FxCop.Sdk.Reader.ParseTypeSignature

Microsoft.FxCop.Sdk.InvalidMetadataException

Microsoft.FxCop.Sdk.InvalidMetadataException
读取模块“myproject”时遇到以下错误:位置0中的方法类型参数无效。
在Microsoft.FxCop.Sdk.Reader.HandleError(ModuleNode mod,String errorMessage)在Microsoft.FxCop.Sdk.Reader.ParseTypeSignature(MemoryCursor sigReader,Boolean&pinned,Boolean&isTypeArgument)在Microsoft.FxCop.Sdk.Reader.ParseTypeList(Memors sigReader)在Microsoft.FxCop.Sdk.Reader.ParseTypeSignature中位于Microsoft.FxCop.Sdk.Reader.ParseTypeList(MemoryCursor sigReader,Boolean&pinted,Boolean&isTypeArgument)的Microsoft.FxCop.Sdk.Reader.ParseTypeSignature(MemoryCursor sigReader,Boolean&pinted,Boolean&isTypeArgument)的Microsoft.FxCop.Sdk.Reader.ParseParameterTypesMicrosoft.FxCop.Sdk.Reader.GetMemberFromRef(Int32 i、TypeNodeCollection和varArgTypes、MemoryCursor sigReader、Int32 paramCount、Boolean和GenericParameterEnCounted)中的(Int32 i、TypeNodeCollection和varArgTypes、Int32 numGenericArgs)中的在Microsoft.FxCop.Sdk.Reader.GetMethodFromSpec(Int32 i)在Microsoft.FxCop.Sdk.Reader.GetMemberFromToken(Int32 tok,TypeNodeCollection&varArgTypes)在Microsoft.FxCop.Sdk.InstructionParser.ParseInstruction()在Microsoft.FxCop.Sdk.InstructionParser.ParseInstructions()在Microsoft.FxCop.Sdk.Reader.ParseMethodInstructions在Microsoft.FxCop.Sdk.Reader.GetMethodInstructions(方法方法,对象i)在Microsoft.FxCop.Sdk.Reader.GetMethodBody(方法,对象i,布尔值为指令列表)在Microsoft.FxCop.Sdk.Method.get_指令()在Microsoft.FxCop.Sdk.RuleUtilities.HasImperialiseSecurityAction在Microsoft.FxCop.Sdk.RuleUtilities.HasSecurityAction(方法方法,安全操作操作)在Microsoft.FxCop.Sdk.RuleUtilities.HasSecurityAction(方法方法,安全操作[]操作)在Microsoft.FxCop.Engines.Inspection.LoadVisitor.RecordCallSites(方法调用方)位于Microsoft.FxCop.Engines.Introspection.LoadVisitor.VisitMember(成员成员,目标成员目标),位于Microsoft.FxCop.Engines.Introspection.BaseVisitor.VisitMembers(成员集合成员,目标成员字典目标,布尔VisitEndTypes),位于Microsoft.FxCop.Engines.Introspection.BaseVisitor.VisitType(类型节点类型,目标类型)在Microsoft.FxCop.Engines.Introspection.LoadVisitor.VisitType(TypeNode类型,TargetType目标)在Microsoft.FxCop.Engines.Introspection.BaseVisitor.VisitType(TypeNodeCollection类型,TargetNamespaceDictionary目标)在Microsoft.FxCop.Engines.Introspection.LoadVisitor.Visite模块(ModuleNode模块,TargetModule目标)位于Microsoft.FxCop.Engines.Introspection.BaseVisitor.VisitasAssembly(组装节点程序集,目标文件目标)处的Microsoft.FxCop.Engines.Introspection.LoadVisitor.VisitasAssembly(组装节点程序集,目标文件目标)处的Microsoft.FxCop.Engines.Introspection.LoadVisitor.Load(TargetFile目标、布尔构建树、布尔队列项、AssemblyNode loadedAssembly)位于Microsoft.FxCop.Engines.Introspection.LoadVisitor.LoadAssemblys(队列、异常集合异常)
Microsoft.FxCop.Sdk.FxCopException
分析程序集时发生未处理的异常:
Microsoft.FxCop.Sdk.InvalidMetadataException
读取模块“myproject”时遇到以下错误:位置0中的方法类型参数无效。
在Microsoft.FxCop.Sdk.Reader.HandleError(ModuleNode mod,String errorMessage)在Microsoft.FxCop.Sdk.Reader.ParseTypeSignature(MemoryCursor sigReader,Boolean&pinned,Boolean&isTypeArgument)在Microsoft.FxCop.Sdk.Reader.ParseTypeList(Memors sigReader)在Microsoft.FxCop.Sdk.Reader.ParseTypeSignature中位于Microsoft.FxCop.Sdk.Reader.ParseTypeList(MemoryCursor sigReader,Boolean&pinted,Boolean&isTypeArgument)的Microsoft.FxCop.Sdk.Reader.ParseTypeSignature(MemoryCursor sigReader,Boolean&pinted,Boolean&isTypeArgument)的Microsoft.FxCop.Sdk.Reader.ParseParameterTypesMicrosoft.FxCop.Sdk.Reader.GetMemberFromRef(Int32 i、TypeNodeCollection和varArgTypes、MemoryCursor sigReader、Int32 paramCount、Boolean和GenericParameterEnCounted)中的(Int32 i、TypeNodeCollection和varArgTypes、Int32 numGenericArgs)中的在Microsoft.FxCop.Sdk.Reader.GetMethodFromSpec(Int32 i)在Microsoft.FxCop.Sdk.Reader.GetMemberFromToken(Int32 tok,TypeNodeCollection&varArgTypes)在Microsoft.FxCop.Sdk.InstructionParser.ParseInstruction()在Microsoft.FxCop.Sdk.InstructionParser.ParseInstructions()在Microsoft.FxCop.Sdk.Reader.ParseMethodInstructions在Microsoft.FxCop.Sdk.Reader.GetMethodInstructions(方法方法,对象i)在Microsoft.FxCop.Sdk.Reader.GetMethodBody(方法,对象i,布尔值为指令列表)在Microsoft.FxCop.Sdk.Method.get_指令()在Microsoft.FxCop.Engines.Introspection.AnalysisVisitor.UpdateSourceText(SourceContext&SourceContext,Method Method)在Microsoft.FxCop.Engines.Introspection.AnalysisVisitor.LogProblems(方法方法,目标成员目标,规则规则,问题集合问题)在Microsoft.FxCop.Engines.Introspection.AnalysisVisitor.LogProblems(成员,目标成员目标,规则,问题集合问题)在Microsoft.FxCop.Engines.Introspection.AnalysisVisitor.CheckMember(成员成员分析,成员成员成员,目标成员目标)在Microsoft.FxCop.Engines.Introspection.AnalysisVisitor.VisitMember(成员成员,目标成员目标)在Microsoft.FxCop.Engines.Introspection.BaseVisitor.VisitMembersMicrosoft.FxCop.Engines.Introspection.AnalysisVisitor.VisitType(类型节点类型,目标类型目标)中的(MemberCollection成员、TargetMemberDictionary目标、布尔VisitEndTypes)。
<FxCopReport Version="10.0">
<Exceptions>
<Exception Keyword="CA0001" Kind="Engine">
<Type>Microsoft.FxCop.Sdk.InvalidMetadataException    </Type>
<ExceptionMessage>
The following error was encountered while reading module 'myproject': Method type parameter in position 0 is not valid.
</ExceptionMessage>
<StackTrace>
at Microsoft.FxCop.Sdk.Reader.HandleError(ModuleNode mod, String errorMessage) at Microsoft.FxCop.Sdk.Reader.ParseTypeSignature(MemoryCursor sigReader, Boolean& pinned, Boolean& isTypeArgument) at Microsoft.FxCop.Sdk.Reader.ParseTypeList(MemoryCursor sigReader) at Microsoft.FxCop.Sdk.Reader.ParseTypeSignature(MemoryCursor sigReader, Boolean& pinned, Boolean& isTypeArgument) at Microsoft.FxCop.Sdk.Reader.ParseTypeList(MemoryCursor sigReader) at Microsoft.FxCop.Sdk.Reader.ParseTypeSignature(MemoryCursor sigReader, Boolean& pinned, Boolean& isTypeArgument) at Microsoft.FxCop.Sdk.Reader.ParseParameterTypes(TypeNodeCollection& varArgTypes, MemoryCursor sigReader, Int32 paramCount, Boolean& genericParameterEncountered) at Microsoft.FxCop.Sdk.Reader.GetMemberFromRef(Int32 i, TypeNodeCollection& varArgTypes, Int32 numGenericArgs) at Microsoft.FxCop.Sdk.Reader.GetMethodDefOrRef(Int32 codedIndex, Int32 numberOfGenericArguments) at Microsoft.FxCop.Sdk.Reader.GetMethodFromSpec(Int32 i) at Microsoft.FxCop.Sdk.Reader.GetMemberFromToken(Int32 tok, TypeNodeCollection& varArgTypes) at Microsoft.FxCop.Sdk.InstructionParser.ParseInstruction() at Microsoft.FxCop.Sdk.InstructionParser.ParseInstructions() at Microsoft.FxCop.Sdk.Reader.ParseMethodInstructions(Method method, Int32 methodIndex, Int32 RVA) at Microsoft.FxCop.Sdk.Reader.GetMethodInstructions(Method method, Object i) at Microsoft.FxCop.Sdk.Reader.GetMethodBody(Method method, Object i, Boolean asInstructionList) at Microsoft.FxCop.Sdk.Method.get_Instructions() at Microsoft.FxCop.Sdk.RuleUtilities.HasImperativeSecurityAction(Method method, SecurityAction action) at Microsoft.FxCop.Sdk.RuleUtilities.HasSecurityAction(Method method, SecurityAction action) at Microsoft.FxCop.Sdk.RuleUtilities.HasSecurityAction(Method method, SecurityAction[] actions) at Microsoft.FxCop.Engines.Introspection.LoadVisitor.RecordCallSites(Method caller) at Microsoft.FxCop.Engines.Introspection.LoadVisitor.VisitMember(Member member, TargetMember target) at Microsoft.FxCop.Engines.Introspection.BaseVisitor.VisitMembers(MemberCollection members, TargetMemberDictionary targets, Boolean visitNestedTypes) at Microsoft.FxCop.Engines.Introspection.BaseVisitor.VisitType(TypeNode type, TargetType target) at Microsoft.FxCop.Engines.Introspection.LoadVisitor.VisitType(TypeNode type, TargetType target) at Microsoft.FxCop.Engines.Introspection.BaseVisitor.VisitTypes(TypeNodeCollection types, TargetNamespaceDictionary targets) at Microsoft.FxCop.Engines.Introspection.LoadVisitor.VisitModule(ModuleNode module, TargetModule target) at Microsoft.FxCop.Engines.Introspection.BaseVisitor.VisitAssembly(AssemblyNode assembly, TargetFile target) at Microsoft.FxCop.Engines.Introspection.LoadVisitor.VisitAssembly(AssemblyNode assembly, TargetFile target) at Microsoft.FxCop.Engines.Introspection.LoadVisitor.Load(TargetFile target, Boolean buildTree, Boolean queueItems, AssemblyNode loadedAssembly) at Microsoft.FxCop.Engines.Introspection.LoadVisitor.LoadAssemblies(Queue queue, ExceptionCollection exceptions)
</StackTrace>
</Exception>
<Exception Keyword="CA0001" Kind="Engine">
<Type>Microsoft.FxCop.Sdk.FxCopException    </Type>
<ExceptionMessage>
An unhandled exception occurred while analyzing assemblies:
</ExceptionMessage>
<InnerType>Microsoft.FxCop.Sdk.InvalidMetadataException    </InnerType>
<InnerExceptionMessage>
The following error was encountered while reading module 'myproject': Method type parameter in position 0 is not valid.
</InnerExceptionMessage>
<InnerStackTrace>
at Microsoft.FxCop.Sdk.Reader.HandleError(ModuleNode mod, String errorMessage) at Microsoft.FxCop.Sdk.Reader.ParseTypeSignature(MemoryCursor sigReader, Boolean& pinned, Boolean& isTypeArgument) at Microsoft.FxCop.Sdk.Reader.ParseTypeList(MemoryCursor sigReader) at Microsoft.FxCop.Sdk.Reader.ParseTypeSignature(MemoryCursor sigReader, Boolean& pinned, Boolean& isTypeArgument) at Microsoft.FxCop.Sdk.Reader.ParseTypeList(MemoryCursor sigReader) at Microsoft.FxCop.Sdk.Reader.ParseTypeSignature(MemoryCursor sigReader, Boolean& pinned, Boolean& isTypeArgument) at Microsoft.FxCop.Sdk.Reader.ParseParameterTypes(TypeNodeCollection& varArgTypes, MemoryCursor sigReader, Int32 paramCount, Boolean& genericParameterEncountered) at Microsoft.FxCop.Sdk.Reader.GetMemberFromRef(Int32 i, TypeNodeCollection& varArgTypes, Int32 numGenericArgs) at Microsoft.FxCop.Sdk.Reader.GetMethodDefOrRef(Int32 codedIndex, Int32 numberOfGenericArguments) at Microsoft.FxCop.Sdk.Reader.GetMethodFromSpec(Int32 i) at Microsoft.FxCop.Sdk.Reader.GetMemberFromToken(Int32 tok, TypeNodeCollection& varArgTypes) at Microsoft.FxCop.Sdk.InstructionParser.ParseInstruction() at Microsoft.FxCop.Sdk.InstructionParser.ParseInstructions() at Microsoft.FxCop.Sdk.Reader.ParseMethodInstructions(Method method, Int32 methodIndex, Int32 RVA) at Microsoft.FxCop.Sdk.Reader.GetMethodInstructions(Method method, Object i) at Microsoft.FxCop.Sdk.Reader.GetMethodBody(Method method, Object i, Boolean asInstructionList) at Microsoft.FxCop.Sdk.Method.get_Instructions() at Microsoft.FxCop.Engines.Introspection.AnalysisVisitor.UpdateSourceContext(SourceContext& sourceContext, Method method) at Microsoft.FxCop.Engines.Introspection.AnalysisVisitor.LogProblems(Method method, TargetMember target, Rule rule, ProblemCollection problems) at Microsoft.FxCop.Engines.Introspection.AnalysisVisitor.LogProblems(Member member, TargetMember target, Rule rule, ProblemCollection problems) at Microsoft.FxCop.Engines.Introspection.AnalysisVisitor.CheckMember(Member memberToAnalyze, Member member, TargetMember target) at Microsoft.FxCop.Engines.Introspection.AnalysisVisitor.VisitMember(Member member, TargetMember target) at Microsoft.FxCop.Engines.Introspection.BaseVisitor.VisitMembers(MemberCollection members, TargetMemberDictionary targets, Boolean visitNestedTypes) at Microsoft.FxCop.Engines.Introspection.AnalysisVisitor.VisitType(TypeNode type, TargetType target) at Microsoft.FxCop.Engines.Introspection.AnalysisVisitor.Analyze(Queue queue) at Microsoft.FxCop.Engines.Introspection.IntrospectionAnalysisEngine.AnalyzeThread()
</InnerStackTrace>
</Exception>
</Exceptions>
</FxCopReport>