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
Comments
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. 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. But better to just add the attribute [SecurityCriticalAttribute] on IscException.GetObjectData and FbException.GetObjectData Thank you very much! |
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. 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. Maybe I'm wrong but better to just add the attribute [SecurityCriticalAttribute] on IscException.GetObjectData and FbException.GetObjectData Thank you very much! |
Modified by: @cincuranetstatus: Open [ 1 ] => Resolved [ 5 ] resolution: Fixed [ 1 ] Fix Version: vNext [ 10491 ] |
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
The text was updated successfully, but these errors were encountered: