Re: How can I tell waht permissions an assembly requires?

From: Ollie (why)
Date: 02/24/04


Date: Mon, 23 Feb 2004 23:24:56 -0000

Thanks Shawn for filling in the gaps :)

Ollie

""Shawn Farkas"" <shawnfa@online.microsoft.com> wrote in message
news:nbyWv3l%23DHA.1472@cpmsftngxa06.phx.gbl...
> That's correct, PermView shows you which declarative security requests you
make in your assembly. The original question seems to be looking
> for a tool that will examine the assembly and tell you what permissions
are required by it. This tool is not available in v1.0 or v1.1 of the
framework,
> however it will ship with v2.0. The tool will be called PermCalc.exe, and
will come up with a best guess as to which permissions your assembly
> needs. There will also be integration into Visual Studio, so you can
target specific zones, and VS will use intellisense to tell you which APIs
are not
> available under that security setting. VS will also let you "debug in
zone", meaning that it will make your application appear as though it is
running
> in a different zone than it really is, to help catch security execeptions
sooner. In addition, enhanced security exceptions will make debugging these
> problems in Whidbey much easier than it has been in the past.
>
> -Shawn
> http://blogs.msdn.com/shawnfa
>
> --
>
> This posting is provided "AS IS" with no warranties, and confers no
rights.
> Note: For the benefit of the community-at-large, all responses to this
message are best directed to the newsgroup/thread from which they
> originated.
> --------------------
> >From: "Ollie" <why do they need this!!!!>
> >References: <OlizpYh#DHA.1452@TK2MSFTNGP09.phx.gbl>
<MPG.1aa40cab8d698db89898c6@msnews.microsoft.com>
> >Subject: Re: How can I tell waht permissions an assembly requires?
> >Date: Mon, 23 Feb 2004 18:35:48 -0000
> >Lines: 25
> >X-Priority: 3
> >X-MSMail-Priority: Normal
> >X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
> >X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
> >Message-ID: <#EzMevj#DHA.548@TK2MSFTNGP11.phx.gbl>
> >Newsgroups:
microsoft.public.dotnet.framework.aspnet.security,microsoft.public.dotnet.la
nguages.csharp,microsoft.public.dotnet.security
> >NNTP-Posting-Host: host81-128-193-248.in-addr.btopenworld.com
81.128.193.248
> >Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP11.phx.gbl
> >Xref: cpmsftngxa06.phx.gbl
microsoft.public.dotnet.languages.csharp:223605
microsoft.public.dotnet.security:5088
> microsoft.public.dotnet.framework.aspnet.security:8862
> >X-Tomcat-NG: microsoft.public.dotnet.security
> >
> >nope, as far as I can see that tells you what permissions your assembly
has
> >applied, not the permissions that it requires...
> >
> >Am I wrong?
> >
> >
> >"Patrick Steele [MVP]" <patrick@mvps.org> wrote in message
> >news:MPG.1aa40cab8d698db89898c6@msnews.microsoft.com...
> >> In article <OlizpYh#DHA.1452@TK2MSFTNGP09.phx.gbl>, "Earth Worm Jim"
> >> <sdd> says...
> >> > Is there a tool that tells me what permissions my assembly requires?
> >> >
> >> > I have add [assembly: PermissionSet(SecurityAction.RequestOptional,
> >> > Unrestricted=false)] to deny all permissions I just want to now grant
> >one I
> >> > require?
> >>
> >> PermView.exe
> >>
> >> --
> >> Patrick Steele
> >> Microsoft .NET MVP
> >> http://weblogs.asp.net/psteele
> >
> >
> >
>
>



Relevant Pages

  • Re: How can I tell waht permissions an assembly requires?
    ... PermView shows you which declarative security requests you make in your assembly. ... The original question seems to be looking ... The tool will be called PermCalc.exe, and will come up with a best guess as to which permissions your assembly ... Produced By Microsoft MimeOLE V6.00.2800.1165 ...
    (microsoft.public.dotnet.security)
  • Re: THANKS! -> Re: For "TC" - Request for Clarification on a Comment You Made
    ... If you mean my original question here, it was that MS-Access security ... limitations seem to break. ...
    (microsoft.public.access.security)
  • Re: How to determine what permissions are required for an assembly
    ... permissions required and I could configure the permissions within .Net ... PermView shows you which declarative security requests ... The original question seems to be looking ... > zone", meaning that it will make your application appear as though it is ...
    (microsoft.public.dotnet.security)
  • Re: OT: Arabic speakers
    ... It still doesn't answer my original question why Air Force One didn't go ... security front, to a commercial airport. ... There would have been a Marine One helicopter waiting at each airport ...
    (uk.rec.motorcycles)
  • Re: How to determine what permissions are required for an assembly
    ... PermView shows you which declarative security requests you ... The original question seems to be looking ... for a tool that will examine the assembly and tell you what permissions are ... > I need an application to load signed assemblies from the network share. ...
    (microsoft.public.dotnet.security)