project security issue

Z

z. f.

my development environment is windows 2003 server.
when i open a project on the visual studio IDE that is located on another server i get the message

"
The project location is not fully trusted by the .NET runtime. This is usually because it is either a network share or mapped to a network share not on the local machine. If the output path is under the project location, your code will not execute as fully trusted and you may receive unexpected security exceptions.
"
every time i open the project
what can i do to make it disappear?

TIA, z.
 
G

Guest

This is because of .NET's Code Access Security which is configured to
only grant a subset of permissions.

The easiest way to solve the problem is to add the url to trusted sites.

The neater solution is to create a new "Code Group" for your network
share and assign appropiate permissions.
 
Z

z. f.

when i open the administrative tools->dot net configuration, under "runtime Security Policy", there are 3 options:
Enterprise, Machine, User, whice under you have Code Groups.
for which of the options should i configure this?
and what exactly should i do ?

TIA, z.

This is because of .NET's Code Access Security which is configured to
only grant a subset of permissions.

The easiest way to solve the problem is to add the url to trusted sites.

The neater solution is to create a new "Code Group" for your network
share and assign appropiate permissions.
 
R

Richard Blewett [DevelopMentor]

The simplest (least work) in this situation is to change the machine policy (those 3 options are known as policy levels). Under the Intranet zone groop, add a new code group with a Membership condition of type Site and value of the machine you want to trust. Then set the Permission Set to be fulltrust.

Regards

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

 when i open the administrative tools->dot net configuration, under "runtime Security Policy", there are 3 options: Enterprise, Machine, User, whice under you have Code Groups. for which of the options should i configure this? and what exactly should i do ? TIA, z.
 
Z

z. f.

thanks!

The simplest (least work) in this situation is to change the machine policy (those 3 options are known as policy levels). Under the Intranet zone groop, add a new code group with a Membership condition of type Site and value of the machine you want to trust. Then set the Permission Set to be fulltrust.

Regards

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

 when i open the administrative tools->dot net configuration, under "runtime Security Policy", there are 3 options: Enterprise, Machine, User, whice under you have Code Groups. for which of the options should i configure this? and what exactly should i do ? TIA, z.
 
G

Guest

Could you give an example?
I have tried to add this to the membership condition as a site and URL. It
says the site does not appear to be valid.

\\myserver\Userfiles\lewis\My Documents\My Programming

I have "My Documents" redirected here.
 

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