Menu

#5 Restrictive permissions interfer with designer class

Official_Release
open
nobody
5
2008-03-14
2008-03-14
No

The following attribute refuses all permissions except the ones demanded explicitly:
[assembly: SecurityPermission(SecurityAction.RequestOptional)]

This attribute stops designer(throws exception). The designer works when it is commented out and all other RequestOptional(s) are changed to RequestMinimum. But we cannot do this for security reasons.

In fact, the designer works when there is no declarative permission attribute with SecurityAction.RequestOptional.

AssemblyPermissions.cs, line 8.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.