473,507 Members | 2,416 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

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) ?
Mar 29 '06 #1
2 2167
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/
Mar 31 '06 #2
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>
"oldbear" <ol*****@discussions.microsoft.com> wrote in message
news:70**********************************@microsof t.com...
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/

Apr 3 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
1448
by: jean-dot-paul-at-opelwilly-dot-com | last post by:
Hello all, I have two different applications where my application wants to do something the logged user has not the rights to: 1) Change a HKEY_LOCAL_MACHINE key value. The user has only...
2
6268
by: Suhail Salman | last post by:
Dear all, why do i get the following exception when i try to write to the event log from a webform. and how can i resolve it? Description: The application attempted to perform an operation not...
3
2394
by: James Radke | last post by:
Hello, I have an asp.net application (using vb.net codebehind), that is calling some older c++ dlls. These dlls require the use of the c++ Runtime which is in the windows/System32 directories. ...
0
1146
by: AndyAFCW | last post by:
I am developing my first .NET application that connects to a SQL Server 2000 database and I am having a total nightmare :x :evil: I am running Windows 2000 with Visual Studio .NET version...
0
1041
by: Lucas Tam | last post by:
Hi all, I've created an assembly with a strong name and added it to .NET's configuration manager with Full Trust. However, the assmebly still will not load in the Internet Zone. I can...
0
1157
by: Bart | last post by:
hi all iam using a webservice with windows authentication, set the webservices to full trust and the application pool is set to Network service. iam logged in as Administrator and iam calling...
5
2594
by: =?Utf-8?B?TWFydHluIEZld3RyZWxs?= | last post by:
Hi there. I posted an earlier issue under the name "That assembly does not allow partially trusted callers" but have now identified what the issue is. As explained before I am working in...
0
1024
by: agent-s | last post by:
The other day I was able to debug my program with full trust, without turning caspol off. For some reason now, I think it may be due to recent XP updates, I can't do so anymore, and I have to turn...
5
4805
by: =?Utf-8?B?S1A=?= | last post by:
I have an asp.net application that I've installed on several of my customers laptops (they run a localized IIS). I've been doing this for years without and issue. Today I attempted to install...
0
7319
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7376
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
5623
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4702
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3191
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3179
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1542
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
760
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
412
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.