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 / New Users / April 2006

Tip: Looking for answers? Try searching our database.

Trying to grant full trust..... (.NET 2.0)

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Lloyd Dupont - 29 Mar 2006 04:22 GMT
I have written an application which I have "installed" (copied) in a shared
directory on some remote computer.
Now I'm trying to run this application but I get plenty of SecurityException
all over the places.
I'm trying to use mscorcfg to grant full trust to the application, but that
doesn't work...

I created a new category under
My computer > Runtime Security policy > Machine > Code Groups > All_code >
Mycode

I gave it fulltrust and for the membership condition I have tryed:
URL: file://\G5-vpc\lloyd\NovaMind\editor

or variation by replacing '/' by '\'

or variation by using
SITE: 'G5-vpc'.

but whatever I do, that doesn't work and I keep having security
exception....

Any ideas of what could I do?

I also saw that a membership condition could be the public key.
I haven't tryed that as I'm coding in both C# and ManagedC++ and the new
version to sign assemblies in 2.0 (particularly managed C++) was quite
unclear to me.... if anyone could shed some light on that?

Also I am using mscorcfg.msc to setup my computer, but is there and easier
way for an administrator to setup multiple computer (with the appropriate
security policy for my application) ?
oldbear - 31 Mar 2006 13:13 GMT
Hi

As regards an easier way to apply CAS, try the CASPOL tool. This is a
command line tool which can be scripted. It's easier to run a script than to
have users configure using mscorcfg

When you've created the scripts, you could use AD group policy to apply the
script to the computers at boot time. However, not much good if you rarely
reboot your PCs.

Hope this helps

Chris Seary

http://blog.searyblog.com/
Lloyd Dupont - 03 Apr 2006 01:19 GMT
Thanks, ggod to know the admin could use caspol to achieve the same result
in an automatic way!
I will have to try to use this way myself too.
Thanks for the feedback.

Signature

Regards,
Lloyd Dupont

NovaMind development team
NovaMind Software
Mind Mapping Software
<www.nova-mind.com>

> Hi
>
[quoted text clipped - 13 lines]
>
> http://blog.searyblog.com/ 

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



©2008 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.