Re: How can I tell waht permissions an assembly requires?
From: Ollie (why)
Date: 02/24/04
- Next message: Novice: "Code Access Security, Evidence Based Security, Code Access Permission, Role Based Permission, etc"
- Previous message: Shawn Farkas: "RE: SqlClientPermissions exception"
- In reply to: Shawn Farkas: "Re: How can I tell waht permissions an assembly requires?"
- Next in thread: Patrick Steele [MVP]: "Re: How can I tell waht permissions an assembly requires?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
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
> >
> >
> >
>
>
- Next message: Novice: "Code Access Security, Evidence Based Security, Code Access Permission, Role Based Permission, etc"
- Previous message: Shawn Farkas: "RE: SqlClientPermissions exception"
- In reply to: Shawn Farkas: "Re: How can I tell waht permissions an assembly requires?"
- Next in thread: Patrick Steele [MVP]: "Re: How can I tell waht permissions an assembly requires?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|