Home All Groups Group Topic Archive Search About

Need only execute rights for web app. Did I set this up right?

Author
28 Mar 2005 10:57 PM
Kevin
I have created a web app and now I want to make sure that it only has execute
rights to run.  Below is what I put in the assembly file.  Is this correct? 

'Allow this web app to execute
<Assembly: Web.AspNetHostingPermission(SecurityAction.RequestMinimum,
level:=Web.AspNetHostingPermissionLevel.Minimal)>
'Refuse everything else...
<Assembly: PermissionSetAttribute(SecurityAction.RequestOptional,
Unrestricted:=False)>

Kevin

Author
30 Mar 2005 2:41 PM
Nicole Calinoiu
Minimal AspNetHostingPermission is pretty much the minimum permission set
under which ASPX pages will run, so your attributes are fine if your
intended goal is to specify the most restricted permission set that will
actually allow your code to run.


Show quoteHide quote
"Kevin" <Ke***@discussions.microsoft.com> wrote in message
news:9966CF0A-8DC7-46BE-9708-328F6C53865D@microsoft.com...
>I have created a web app and now I want to make sure that it only has
>execute
> rights to run.  Below is what I put in the assembly file.  Is this
> correct?
>
> 'Allow this web app to execute
> <Assembly: Web.AspNetHostingPermission(SecurityAction.RequestMinimum,
> level:=Web.AspNetHostingPermissionLevel.Minimal)>
> 'Refuse everything else...
> <Assembly: PermissionSetAttribute(SecurityAction.RequestOptional,
> Unrestricted:=False)>
>
> Kevin