using Code Groups

G

Guest

Using Mscorcfg.msc, I created code group "MyTrustedCode":
Runtime Security Policy
Machine
Code Groups
All_Code
LocalIntranet_Zone
MyTrustedCode
MyTrustedCode type is URL, the permission set is "FullTrust", and I checked
"This policy level will only have the permissions from the permission set..."
the URL is specified as:
file://MY-PC/G$/My_Files/*
where MY-PC is the full computer name and G$ is
the share
name of a local drive and My_Files is the name
of a folder
under the root of G$

My question is why do I continue to get the warning that "The project
location is not fully trusted...." when I open projects in the My_Files
folder?
 
R

Richard Blewett [DevelopMentor]

My guess is that the assembly doesn't match the membership condition for some reason. Use "Evaluate Assembly" off the context menu of the "Runtime Security Policy" node of mscorcfg and see what code groups mscorcfg think your assembly matches

Regards

Richard Blewett - DevelopMentor
http://www.dotnetconsult.co.uk/weblog
http://www.dotnetconsult.co.uk

Using Mscorcfg.msc, I created code group "MyTrustedCode":
Runtime Security Policy
Machine
Code Groups
All_Code
LocalIntranet_Zone
MyTrustedCode
MyTrustedCode type is URL, the permission set is "FullTrust", and I checked
"This policy level will only have the permissions from the permission set..."
the URL is specified as:
file://MY-PC/G$/My_Files/*
where MY-PC is the full computer name and G$ is
the share
name of a local drive and My_Files is the name
of a folder
under the root of G$

My question is why do I continue to get the warning that "The project
location is not fully trusted...." when I open projects in the My_Files
folder?
 
G

Guest

Thank you. The "Evaluate Assembly" option reveals that mscorcfg does not see
the code group I created under Machine/Code
Groups/All_Code/LocalIntranet_Zone as applicable. My first attempt was made
following steps outlined in an MSDN VB and Visual C# Reference article. I
plan to retrace my steps and create a new code group under My_Computer_Zone.

With your help, My_Computer_Zone seems to be a better choice. I wonder if
LocalIntranet_Zone would apply to a web service?

Richard, thanks again for your timely and helpful advice.
 

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