How to determine which permission is being requested?
From: Gleb Holodov (gvh_at_mail.ru)
Date: 05/11/03
- Next message: Sparky: "Unmanaged code from strongnamed assembly"
- Previous message: Your_at_ncjiqstp.com: "2PB6 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> D832"
- Next in thread: Joe Kaplan: "Re: How to determine which permission is being requested?"
- Reply: Joe Kaplan: "Re: How to determine which permission is being requested?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Sun, 11 May 2003 19:04:21 +0400
Dear all!
I'm writing a program which is supposed to be ran from a network share, and
thus will have an evidence with a security zone set to "intranet".
Everything works just fine when I set Inranet permissions to "full trust",
but when I reduce a number of permissions to something lower (even
"Everything"), a SecurityException rises at different locations. For
example, these pieces of code fail independently:
...
new TcpChannel( 0 );
...
System.Diagnostics.Process.GetCurrentProcess();
...
SecurityException class being thrown doesn't contain any additional
information. Neither PermView shows no attribute-level security guards on
those methods, nor ILDASM doesn't inidicate any special checks nor naughty
code inside those methods.
Has anybody come accross with such mishaps? If yes, is there a way to
determine which permissions are being required by some piece of code?
I'm running .NET Framework 1.0 SP2.
-- Warmest regards, Gleb Holodov Software Developer ThinkWave Inc. www.thinkwave.com
- Next message: Sparky: "Unmanaged code from strongnamed assembly"
- Previous message: Your_at_ncjiqstp.com: "2PB6 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> D832"
- Next in thread: Joe Kaplan: "Re: How to determine which permission is being requested?"
- Reply: Joe Kaplan: "Re: How to determine which permission is being requested?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|