Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / January 2005

Tip: Looking for answers? Try searching our database.

project security issue

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
z. f. - 21 Nov 2004 09:56 GMT
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.
"Patrik Löwendahl [C# MVP]" - 21 Nov 2004 23:24 GMT
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.

--
Patrik Löwendahl [C# MVP]
cshrp.net - 'Elegant code by witty programmers'
cornerstone.se 'IT Training for professionals'

> my development environment is windows 2003 server.
> when i open a project on the visual studio IDE that is located on
[quoted text clipped - 11 lines]
>  
> TIA, z.
z. f. - 22 Nov 2004 07:07 GMT
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.

 "Patrik Lwendahl [C# MVP]" <patrik.lowendahl.no.freakin.spam@home.se> wrote in message news:uOIL0EC0EHA.3820@TK2MSFTNGP11.phx.gbl...
 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.

 --
 Patrik Lwendahl [C# MVP]
 cshrp.net - 'Elegant code by witty programmers'
 cornerstone.se 'IT Training for professionals'

 z. f. wrote:
 > 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.
Richard Blewett [DevelopMentor] - 22 Nov 2004 13:09 GMT
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

 &iuml;&raquo;&iquest;    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. f. - 22 Nov 2004 15:10 GMT
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

   &iuml;&raquo;&iquest;    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
Lewis - 30 Jan 2005 02:21 GMT
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.

> 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.
>
[quoted text clipped - 5 lines]
>
>       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.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.