This is a discussion on Exception for "Bad security permission set blob" when loading a reference within the C# Programming forums, part of the Software Development category; Exception for "Bad security permission set blob" when loading a reference Hoping someone can help me with a ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| Exception for "Bad security permission set blob" when loading a reference Hoping someone can help me with a bit of an obscure problem. I couldn't find any documentation or people who had run into this before. When running FxCop (1.36) on my dll, it tries to load another dll of mine which is a reference. When it tries to load, it throws the following exception which I have no clue where to start with. Can anyone provide some insight? Thanks! -Steve <Exceptions> <Exception Keyword="CA0001" Kind="Engine"> <Type>Microsoft.FxCop.Sdk.InvalidMetadataException </Type> <ExceptionMessage>The following error was encountered while reading module 'MyDll2.dll': Bad security permission set blob.</ExceptionMessage> <StackTrace> at Microsoft.FxCop.Sdk.Reader.HandleError(ModuleNode mod, String errorMessage) at Microsoft.FxCop.Sdk.Reader.GetPermissionAttributes (Int32 blobIndex, SecurityAction action) at Microsoft.FxCop.Sdk.Reader.GetSecurityAttribute(In t32 i) at Microsoft.FxCop.Sdk.Reader.GetSecurityAttributesFo r(Int32 parentIndex) at Microsoft.FxCop.Sdk.Reader.GetMethodFromDef(Int32 index, TypeNode declaringType) at Microsoft.FxCop.Sdk.Reader.AddMethodsToType(TypeNo de type, MethodPtrRow[] methodPtrs, Int32 start, Int32 end) at Microsoft.FxCop.Sdk.Reader.GetTypeMembers(TypeNode type, Object handle) at Microsoft.FxCop.Sdk.TypeNode.get_Members() at Microsoft.FxCop.Sdk.TypeNode.GetMembersNamed(Ident ifier name) at Microsoft.FxCop.Sdk.Reader.GetMemberFromRef(Int32 i, TypeNodeCollection& varArgTypes, Int32 numGenericArgs) at Microsoft.FxCop.Sdk.Reader.GetMemberFromToken(Int3 2 tok, TypeNodeCollection& varArgTypes) at Microsoft.FxCop.Sdk.Reader.GetMemberFromToken(Int3 2 tok) at Microsoft.FxCop.Sdk.ILParser.GetMemberFromToken() at Microsoft.FxCop.Sdk.InstructionParser.ParseInstruc tion() at Microsoft.FxCop.Sdk.InstructionParser.ParseInstruc tions() at Microsoft.FxCop.Sdk.Reader.ParseMethodInstructions (Method method, Int32 methodIndex, Int32 RVA) at Microsoft.FxCop.Sdk.Reader.GetMethodInstructions(M ethod 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.HasImperativeSec urityAction(Method method, SecurityAction action) at Microsoft.FxCop.Sdk.RuleUtilities.HasSecurityActio n(Method method, SecurityAction action) at Microsoft.FxCop.Sdk.RuleUtilities.HasSecurityActio n(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.BaseVisitor. VisitModule(ModuleNode module, TargetModule target) 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>
__________________ A.Rajesh Khanna |
|
#2
| |||
| |||
| Hi, Could you please provide us with more information, say, Operating System, since the error might be due to some new checks in FxCop 1.36 that were not run before.
__________________ Shaalini.S ![]() Be the Best of Whatever you are... |
|
#3
| |||
| |||
| Hi, Can you please contact the FxCop internal help email alias (vscainfo) for help with this. This is a known issue that should only occur in Microsoft build environments. |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Exception "security block" while connecting to bluetooth device | S.Vinothkumar | Mobile Software Development | 13 | 11-10-2007 02:19 AM |
| Explain "passing by value", "passing by pointer" and "passing by reference" | Sabari | C and C++ Programming | 1 | 07-30-2007 10:29 PM |
| I keep getting "Data Missing" when I click the "back" button in my browser. How can I | oxygen | HTML, CSS and Javascript Coding Techniques | 1 | 07-28-2007 12:12 AM |
| What is the difference between "using System.Data;" and directly adding the reference | H2o | ASP and ASP.NET Programming | 1 | 07-24-2007 02:33 AM |
Our Partners |