473,386 Members | 1,712 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

How can I tell waht permissions an assembly requires?

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?
Cheers

Earth Worm Jim
Nov 15 '05 #1
5 1191
In article <Ol**************@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
Nov 15 '05 #2
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]" <pa*****@mvps.org> wrote in message
news:MP************************@msnews.microsoft.c om...
In article <Ol**************@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

Nov 15 '05 #3
In article <#E*************@TK2MSFTNGP11.phx.gbl>, "Ollie" <why do they
need this!!!!> says...
nope, as far as I can see that tells you what permissions your assembly has
applied, not the permissions that it requires...


Hmmmm... Perhaps this is just semantics, but if you "apply" an
attribute requesting a certain permission (because you "require" that
permission for your application), won't PermView do what the OP is
looking for?

--
Patrick Steele
Microsoft .NET MVP
http://weblogs.asp.net/psteele
Nov 15 '05 #4
The problem is I want to deny all permissions and then be able to evaluate
an assembly and generate a list of permissions it requires and then apply
those permissions explicitly.

Ollie

"Patrick Steele [MVP]" <pa*****@mvps.org> wrote in message
news:MP************************@msnews.microsoft.c om...
In article <#E*************@TK2MSFTNGP11.phx.gbl>, "Ollie" <why do they
need this!!!!> says...
nope, as far as I can see that tells you what permissions your assembly has applied, not the permissions that it requires...


Hmmmm... Perhaps this is just semantics, but if you "apply" an
attribute requesting a certain permission (because you "require" that
permission for your application), won't PermView do what the OP is
looking for?

--
Patrick Steele
Microsoft .NET MVP
http://weblogs.asp.net/psteele

Nov 15 '05 #5
In article <Om*************@TK2MSFTNGP11.phx.gbl>, "Ollie" <why do they
need this!!!!> says...
The problem is I want to deny all permissions and then be able to evaluate
an assembly and generate a list of permissions it requires and then apply
those permissions explicitly.


I don't of any automatic way of doing that. Would be pretty cool
though! :)

--
Patrick Steele
Microsoft .NET MVP
http://weblogs.asp.net/psteele
Nov 15 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: Angelos Karantzalis | last post by:
Is there a way to set Permissions based on user roles by using some configuration file for my application ? I'm coming from a Java background, where that could very easily be accomplished but...
13
by: John Bowman | last post by:
Hi All, I've got a simple wrapper static test method on a class to expand the environment variables on a specified string: public static string ExpandEnvironmentStr(string Str) { return...
7
by: JerryW | last post by:
I just reinstalled .NET 2003 (after repeated attempts to get ASP.NET Web Applications to work). I first did a complete uninstall of .NET 2003, .NET Framework 1.1, and IIS. I also completely deleted...
2
by: rrossney | last post by:
Please look at the "what I've already done" section of this message before responding to it: I believe that I've done everything that the people who experience this error are typically told to do....
1
by: jmurphy95 | last post by:
Hi there, I have a Windows application that I'm running from a shared drive that needs to access file/directory resources on other drives. I've done a lot of reading, but a lot of the material...
1
by: Simon Harvey | last post by:
Hi everyone, If anyone can help me with the following - I would be VERY grateful. I need to deploy an 2 ASP.net applications that I've been creating onto one of our live servers. Both...
8
by: jporter188 | last post by:
Hello, I am working on a project to manipulate XML files. All of the files, the code, and the output are on network drives. When I run my program I get an exception (see below). I tried giving...
1
by: Fawad Ahsan | last post by:
Hi i am having problem with the microsoft enterprise library. i have uploaded the site to the hosting server and it gives the following error it works well in my server. can some one help me...
1
by: codefragment | last post by:
Hi (Second CAS question) At the assembly level I have: at the method level I have
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.