full trus and 1.1 SP1
From: AndrewEames (AndrewEames_at_discussions.microsoft.com)
Date: 03/18/05
- Next message: Mike Owen: "Re: A single page from an existing application under SSL?"
- Previous message: Steve B.: "Security - newbie Q"
- Next in thread: Nicole Calinoiu: "Re: full trus and 1.1 SP1"
- Reply: Nicole Calinoiu: "Re: full trus and 1.1 SP1"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Fri, 18 Mar 2005 10:17:05 -0800
I just applied 1.1 SP1 and I am seeing some changes in behavior wrt. security
If I set my security level to no trust, my .NET application will now actualy
execute until Application.Run (previously, it wouldn't even start up without
execute permission)
So great I thought - I can put up a friendly dialog for my users if I dont
have full trust. so I added the following code
PermissionSet fullTrust = new
PermissionSet(PermissionState.Unrestricted);
try
{
fullTrust.Demand();
}
catch(SecurityException)
{
However, this demand succeeds even if I am running under no trust - why is
this?
Thanks
Andrew
- Next message: Mike Owen: "Re: A single page from an existing application under SSL?"
- Previous message: Steve B.: "Security - newbie Q"
- Next in thread: Nicole Calinoiu: "Re: full trus and 1.1 SP1"
- Reply: Nicole Calinoiu: "Re: full trus and 1.1 SP1"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|