CASPOL -addfulltrust
- From: "Barry Flynn" <Anonymouse>
- Date: Thu, 28 Jun 2007 12:11:20 +1200
Hi
I'm struggling to come to grips with CASPOL.
I'm experimenting with a small utility program (written in VB 2005) called
Compare_Prog.exe.
From drive c:, it runs successfully.
From a network share, it crashes.
I have executed the following CASPOL command
caspol -m -af s:\compare_prog.exe
I get a warning that I don't understand
"Because all GAC assemblies always get full trust, the full trust list is no
long
er meaningful. You should install any assemblies that are used in security
polic
y in the GAC to ensure they are trusted.
The operation you are performing will alter security policy.
Are you sure you want to perform this operation? (yes/no)"
I don't see what the GAC has to do with my program.
I answer Y, and I get a response "Success"
But, when I run the program it still crashes, with a security exception.
I tried rerunning my CASPOL command, and got the response
"ERROR: This assembly is already fully trusted"
If I enter this command instead
CasPol.exe -pp off -m -ag 1.2 -url file:s:\* FullTrust
ThenI can run the program successfully.
Why doesn't my "addfulltrust" command allow me to run the program?
Thanks
Barry
.
- Follow-Ups:
- Re: CASPOL -addfulltrust
- From: Nicole Calinoiu
- Re: CASPOL -addfulltrust
- Prev by Date: Re: Implement "run as" for application within application....
- Next by Date: Password storage facility exe - how safe is this idea?
- Previous by thread: Re: Implement "run as" for application within application....
- Next by thread: Re: CASPOL -addfulltrust
- Index(es):
Relevant Pages
|
|