IT Community - Software Programming, Web Development and Technical Support

Exception for "Bad security permission set blob" when loading a reference

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


Go Back   IT Community - Software Programming, Web Development and Technical Support > Software Development > C# Programming

Register FAQ Members List Calendar Mark Forums Read
  #1  
Old 06-18-2009, 01:42 AM
arjkhanna arjkhanna is online now
D-Web Incredible
 
Join Date: Mar 2007
Posts: 1,949
arjkhanna is on a distinguished road
Default Exception for "Bad security permission set blob" when loading a reference

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&amp; varArgTypes, Int32 numGenericArgs)
at Microsoft.FxCop.Sdk.Reader.GetMemberFromToken(Int3 2 tok, TypeNodeCollection&amp; 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
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2  
Old 06-18-2009, 01:43 AM
shaalini shaalini is offline
D-Web Architect
 
Join Date: Apr 2007
Posts: 633
shaalini is on a distinguished road
Default Re: Exception for "Bad security permission set blob" when loading a reference

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...
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3  
Old 06-18-2009, 01:44 AM
bluesky bluesky is offline
D-Web Architect
 
Join Date: Jun 2007
Posts: 667
bluesky is on a distinguished road
Default Re: Exception for "Bad security permission set blob" when loading a reference

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.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

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


All times are GMT -7. The time now is 05:20 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.
Our Partners
One Way Moving Companies | Stamford Dentist | Euro Millions Lottery | Home Loans| Furniture

SEO by vBSEO 3.0.0