Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

New to C#

Status
Not open for further replies.

markgrizzle

Programmer
Aug 3, 2003
288
US
I get the following message when I open a solution

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 errors.

Is there a setting I can use to turn this message off? I have to store the work in a network folder for nightly backups. Thanks in advance.
 
I dont think this is a visual studio issue. If your application can not run fully trusted because its on a network folder, then the security settings for that are likely in Internet Explorer's security settings. Select the intranet zone, and adjust the security settings for that zone to fully trust executables.
 
Are you using any kind of source code control system? Because typically, the repository for those are located on the network, and you just have a local copy for making your code changes. That way you don't get these errors.

Plus the other benefits of using a SC system, of course, like being able to work with other team members, being able to roll-back changes whenever you need, and being able to develop new product versions while continuing to support old versions.

Chip H.


____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first
 
You could also just set the project output directory to a local directory. So that even though all your source is on the network, your compiled assemblies would be local, allowing them to be fully trusted, not to mention run a lot faster.
 
Thanks Chip, we're using vss 6. Since I'm just learning c#, the other developers made a copy of the app's vss folders for me, and I've checked out my code from there.

Neil:
I tried your earlier suggestion, but couldn't find a specific ref to running executables in IE6's Internet Options | Security tab. I then tried to add my network folder to the trusted sites list, but still got the prompts.

I think I'll ultimately store the folders locally, since dealing with the many prompts each time I load the solution is getting tiresome.

Thanks again everyone.
 
Set your working directory in VSS to point to a local folder, such as c:\src and then do a recursive "Get latest" to build the source tree. Afterwards, you can do checkouts/checkins from VSS and as long as the server hosting VSS gets backed up nightly, your only potential dataloss are the files on your local computer which you have not yet checked in.

Chip H.


____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top