Re: Why is this method requesting these permissions?



Hi;

My understanding is if I do Required then anything I don't list is not
granted - so I then have to also do Optional for anything that is optional -
correct? My worry there is that I will then miss an optional that is needed
only in rare cases.

Or am I not understanding this correctly?

--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com

Cubicle Wars - http://www.windwardreports.com/film.htm




"Dominick Baier" wrote:

well - i am not sarcastic...

so why don't you grant the specific permissions until it works? I think i
made a comment on another post saying that SocketPermission is not included
in e.g. medium trust - DNS IIRC is included.

I personally wouldn't fiddle around with RequestMinumum or Optional - just
document which permissions are needed - which you can figure out by trial
and error (at least thats how I usually approach that problem).

In my book I have a separate chapter on partial trust - maybe thats helpful
for you.

http://www.microsoft.com/mspress/books/9989.asp

dominick


Are you being sarcastic or serious about permcalc????

The problem we face is that we have a potential customer who needs to
use our library in a partially trusted environment. AFAIK our code
does not need to touch anything outside it's own code except for the
DNS and UDP capability and we are reducing that to what we truly need.

But our code can, depending on how it is called, need to access lots
of things from the file system to the registry to ...

So I'm trying to figure out what we need to do so this guy can use our
library.

Cubicle Wars - http://www.windwardreports.com/film.htm

"Dominick Baier" wrote:

now you know how good permcalc really works....

by reading all your posts recently on CAS - i wonder what you are
really trying to do...

dominick




.