Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Security / October 2005

Tip: Looking for answers? Try searching our database.

Using caspol.exe to change security policy settings

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Peter F - 15 Oct 2005 00:52 GMT
Hello

I hope you can help my with this...

I have made a program in VB.Net, which is suppose to be in a shared
directory on a server. Other people can then map the drive and run it from
their client. The problem is just that to run the program (which is doing
some file writing) from the clients you have to change security policy
settings i.e. give the assembly (the program) full trust. It is working when
I am changing it with the "Microsoft .NET Framework 1.1 Configuration"-tool
under Administrative Tools in the Control Panel. But I want to use
"caspol.exe" to do this, so that it can be done automatically. I have tried
with:

caspol -machine -addfulltrust "assembly_name (signed with a strong name)"

but it is not working :-(. Do you have any ideas or if not, where I perhaps
could find the information?

Thanks in advance.
Peter
Marius Groenendijk - 17 Oct 2005 08:38 GMT
> Hello
>
[quoted text clipped - 14 lines]
>
> caspol -machine -addfulltrust "assembly_name (signed with a strong name)"

Hey Peter,

The following works just fine for us.

caspol -q -machine -ag 1 -strong -file "EXENAME.exe" EXENAME \
   -noversion FullTrust \
   -description "Hello World" \
   -name GROUP_NAME

GROUP_NAME is some name of your own choosing.
EXENAME is the name w/out extension of you executable.
We don't care too much about the version, hence -noversion

To get rid of the fulltrust:

caspol -q -machine -remgroup GROUP_NAME

HTH,
 Marius.
Peter F - 18 Oct 2005 21:51 GMT
Perfect, Marius. Thank you very much.

Peter

>> Hello
>>
[quoted text clipped - 35 lines]
> HTH,
>  Marius.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.