This is a migrated thread and some comments may be shown as answers.
PrincipalPermission Attribute
3 Answers 19 Views
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Josh
Top achievements
Rank 1
Josh asked on 01 Jun 2009, 01:46 AM
Is it possible to use additional attributes such as PrincipalPermission on the partial classes generated by the reverse mapping tool?  I was playing around with this and I was not seeing the effect I expected.  After a little research, I saw this in my build log

warning : Some attributes are removed from the nested type 'ppiatm.QAReporter.Data.InspectionReport'.
Attributes before enhancement: AutoLayout, AnsiClass, Class, Public, HasSecurity, BeforeFieldInit.
 Attributes after enhancement: AutoLayout, AnsiClass, Class, Public,
BeforeFieldInit [
class=ppiatm.QAReporter.Data.InspectionReport] 

Is this the complete list of attributes being removed or would it also be removing the PrincipalPermission attribute?

3 Answers, 1 is accepted

Sort by
0
Jan Blessenohl
Telerik team
answered on 03 Jun 2009, 02:41 PM
Hi Jim,
The removed HasSecurity attribute is your PrincipalPermission attribute. The emit API is not able to write the attribute because it is counted as non runtime attribute. This causes the removal. Which attribute are you really specifying on the type?

Kind regards,
Jan Blessenohl
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Josh
Top achievements
Rank 1
answered on 03 Jun 2009, 06:39 PM
I was trying to use the following:
[PrincipalPermission(SecurityAction.Demand, Role = "VSRUser", Authenticated = true)]

Thanks,

Josh
0
Jan Blessenohl
Telerik team
answered on 09 Jun 2009, 06:12 PM
Hi Jim,
We have fixed your problem. The fix will be available in the next 4 weeks.

Best wishes,
Jan Blessenohl
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
General Discussions
Asked by
Josh
Top achievements
Rank 1
Answers by
Jan Blessenohl
Telerik team
Josh
Top achievements
Rank 1
Share this question
or