Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Security Changes in the .NET Framework 4 [DNET387] #392

Closed
firebird-automations opened this issue Aug 9, 2011 · 3 comments
Closed

Security Changes in the .NET Framework 4 [DNET387] #392

firebird-automations opened this issue Aug 9, 2011 · 3 comments

Comments

@firebird-automations
Copy link

Submitted by: LLI (binaryx )

When I try to run some assembly (which have the attribute [assembly: AllowPartiallyTrustedCallers]) which is overridden with GetObjectData I get here about an exception: «Inheritance security rules violated while overriding member: MyBusinessException.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)'. Security accessibility of the overriding method must match the security accessibility of the method being overriden.»

You can add your provider in this line AssemblyInfo.cs: [assembly: SecurityRules (SecurityRuleSet.Level1)]. This action does not affect the rest of the performance provider.
Links to more detailed:
http://stackoverflow.com/questions/3055792/inheritance-security-rules-violated-while-overriding-member-securityruleset-lev

Maybe I'm wrong but better to just add the attribute [SecurityCriticalAttribute] on IscException.GetObjectData and FbException.GetObjectData

Thank you very much!

Commits: 30d4902

@firebird-automations
Copy link
Author

Modified by: LLI (binaryx )

description: When I try to run some assembly (which have the attribute [assembly: AllowPartiallyTrustedCallers]) which is overridden with GetObjectData I get here about an exception: «Inheritance security rules violated while overriding member: MyBusinessException.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)'. Security accessibility of the overriding method must match the security accessibility of the method being overriden.»

You can add your provider in this line AssemblyInfo.cs: [assembly: SecurityRules (SecurityRuleSet.Level1)]. This action does not affect the rest of the performance provider.
Links to more detailed:
http://stackoverflow.com/questions/3055792/inheritance-security-rules-violated-while-overriding-member-securityruleset-lev

Thank you very much!

=>

When I try to run some assembly (which have the attribute [assembly: AllowPartiallyTrustedCallers]) which is overridden with GetObjectData I get here about an exception: «Inheritance security rules violated while overriding member: MyBusinessException.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)'. Security accessibility of the overriding method must match the security accessibility of the method being overriden.»

You can add your provider in this line AssemblyInfo.cs: [assembly: SecurityRules (SecurityRuleSet.Level1)]. This action does not affect the rest of the performance provider.
Links to more detailed:
http://stackoverflow.com/questions/3055792/inheritance-security-rules-violated-while-overriding-member-securityruleset-lev

But better to just add the attribute [SecurityCriticalAttribute] on IscException.GetObjectData and FbException.GetObjectData

Thank you very much!

@firebird-automations
Copy link
Author

Modified by: LLI (binaryx )

priority: Minor [ 4 ] => Major [ 3 ]

description: When I try to run some assembly (which have the attribute [assembly: AllowPartiallyTrustedCallers]) which is overridden with GetObjectData I get here about an exception: «Inheritance security rules violated while overriding member: MyBusinessException.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)'. Security accessibility of the overriding method must match the security accessibility of the method being overriden.»

You can add your provider in this line AssemblyInfo.cs: [assembly: SecurityRules (SecurityRuleSet.Level1)]. This action does not affect the rest of the performance provider.
Links to more detailed:
http://stackoverflow.com/questions/3055792/inheritance-security-rules-violated-while-overriding-member-securityruleset-lev

But better to just add the attribute [SecurityCriticalAttribute] on IscException.GetObjectData and FbException.GetObjectData

Thank you very much!

=>

When I try to run some assembly (which have the attribute [assembly: AllowPartiallyTrustedCallers]) which is overridden with GetObjectData I get here about an exception: «Inheritance security rules violated while overriding member: MyBusinessException.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)'. Security accessibility of the overriding method must match the security accessibility of the method being overriden.»

You can add your provider in this line AssemblyInfo.cs: [assembly: SecurityRules (SecurityRuleSet.Level1)]. This action does not affect the rest of the performance provider.
Links to more detailed:
http://stackoverflow.com/questions/3055792/inheritance-security-rules-violated-while-overriding-member-securityruleset-lev

Maybe I'm wrong but better to just add the attribute [SecurityCriticalAttribute] on IscException.GetObjectData and FbException.GetObjectData

Thank you very much!

@firebird-automations
Copy link
Author

Modified by: @cincuranet

status: Open [ 1 ] => Resolved [ 5 ]

resolution: Fixed [ 1 ]

Fix Version: vNext [ 10491 ]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants