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?

Re: using Code Groups by Richard

Richard
Wed Apr 20 01:37:12 CDT 2005

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?


Re: using Code Groups by GaryTUtah

GaryTUtah
Sat Apr 23 11:45:01 CDT 2005

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.

"Richard Blewett [DevelopMentor]" wrote:

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