1) Create a custom code group that has that strong name of an specific
assemly( which I know which assembly is that) as a membership condition.
2) Assign the code group a permission set that has only the permissions that
the assembly needs to run and no more.
which namespace I should use and how?
thanks for your help
-Rob Teixeira
"ALI-R" <a...@microsoft.com> wrote in message
news:%233yReFp...@TK2MSFTNGP10.phx.gbl...
Note however that most of that functionality is available in FullTrust only, and thus cannot be used by default by Internet/Intranet applications.
--
Eugene V. Bobukh
This message is provided "AS IS" with no warranties, and confers no rights. Any opinions or policies stated within it are my own and do not necessarily constitute those of my employer.
----
"ALI-R" <a...@microsoft.com> wrote in message news:%233yReFp...@TK2MSFTNGP10.phx.gbl...
[assembly: PermissionSet(SecurityAction.RequestOptional, Unrestricted =
false)]
The above will cause your assembly to be denied permissions it does not
explicitly request. Once you've added this, your assembly will only have
SecurityPermission.Execution permission and any identity permissions mapped
from its evidence, so you'll need to add minimum (or optional, if
appropriate) requests for any additional permissions your assembly needs.
For example, if the assembly needs unrestricted UIPermission, you would add
the following:
[assembly: UIPermission(SecurityAction.RequestMinimum, Unrestricted = true)]
For more information on how assembly-level CAS permission attributes work,
see http://blogs.msdn.com/shawnfa/archive/2004/08/30/222918.aspx.
HTH,
Nicole
"ALI-R" <a...@microsoft.com> wrote in message
news:%233yReFp...@TK2MSFTNGP10.phx.gbl...
ALI
"Nicole Calinoiu" <calinoiu REMOVETHIS AT gmail DOT com> wrote in message
news:%23uqzw6x...@TK2MSFTNGP14.phx.gbl...