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

L

Lloyd Dupont

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) ?
 
G

Guest

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/
 
L

Lloyd Dupont

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.

--
Regards,
Lloyd Dupont

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top