-> CAS Security Question for Application Running on a shared drive

Hello,

I have some problems getting a winforms application based on Framework 2.0 to work. I have the Executible on a Server (Network Share) and I want to run it from a client.

Since MS decided not to ship the security settings GUI with FW 2.0 (but that is another story) I work myself through the dirt to get it done with caspol.exe. This seams very obious in the first shot but isn't. Maybe I am missing something and it would be great if someone could assist me.

What I did was:

caspol.exe -m -ag 1.2 -url \\ServerName\Foldername\* FullTrust

but in the internet I found tones of way to write this command so I tryed it with

caspol.exe -m -ag 1.2 -url file:///\\ServerName\Foldername\* FullTrust

caspol.exe -m -ag 1.2 -url file://ServerName/Foldername/* FullTrust

Anyway did not work... then I found a way to remove all my entries after I firgured out how to list them

caspol.exe -lg to list everything

caspol.exe -rg 1.2.1 etc to delete it

application is still not working... than I found another command

caspol.exe -q -m -chggroup LocalIntranet_Zone FullTrust

I don't understand this command. I have -q to run it quiet I have -m for the machine and I am assigning Fulltrust to a Label LocalIntranet_Zone.

When I previously looked at my settings

caspol.exe -lg

There was already an entry for LocalIntranet FullTrust and nothing changed in the list compared to the state before I ran

caspol.exe -q -m -chggroup LocalIntranet_Zone FullTrust

Hey this is nice finaly it is working but I would love to know what I did... and why the other command (discribed in the msdn) did not work....

I would realy appriciate any help...

best Regards

fbecker



Answer this question

-> CAS Security Question for Application Running on a shared drive

  • -> CAS Security Question for Application Running on a shared drive