Topic: Error - This project not fully trusted
Share/Save/Bookmark
HOW DO I EXECUTE A .NET PROJECT FROM A NETWORK SHARE, LAN FILE SERVER, OR INTRANET UNC?
 
When opening a project on a network drive either Novell or Microsoft, you get this message.
 
     - "This Project location not fully trusted by .NET Framework"
 
IF you request help, the document simply tells you how to set it up correctly, but if you are
doing local network development then you have to pick the local intranet zone to allow "ALL CODE"
and "FULLY TRUSTED". The only easy solution at the moment resides below.
 
- Visual Basic and Visual C# Reference
- Project Folder Not Secure Dialog Box
 
You attempted to create a project on a UNC path. By default, a UNC path in not a "trusted"
location for a project. Your project may not run correctly when you attempt to debug or
run from this location.
 
For more information, see Configuring Security Policy.
The following tools modify the policy affecting the file share.
.NET Framework Configuration Tool (Mscorcfg.msc)
Code Access Security Policy Tool (Caspol.exe)
 
Mscorefg.msc (The .NET Framework Configuration management console)
 
The simplest way to modify the policy affecting a file share is to give a specific file share
FullTrust permission using mscorcfg.msc.
 
Administrator rights are required on the computer to make this change.
 
To give a file share FullTrust permission:
 
1. Sart mscorcfg.msc (C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322)
2. Expand the Runtime Security Policy node, then expand the Machine node, then expand the
    Code Groups node, then expand the All_Code node, and then highlight the
    LocalIntranet_Zone node.
3. In the right pane select 'Add a new child code' group to this code group
4. Choose Create a new Codegroup, give it a reasonable name for the share,
    then clidk 'Next'.
    A. I used Shateiel Storage Tuto
        It corresponds to my server name, the share, and the folder.
5. Choose a Condition Type of URL.
    URL can mean http, ftp, or file share.
6. then, add the .NET Framework SDK to the share location of your project. Click 'Next'.
    I used //SHATEIEL/STORAGE/Tutor/*
    This was changed to file://SHATEIEL/STORAGE/Tutor/*
    This corresponded to the Server name
    followed by the share
    followed by the folder
    and lastly a wildcard * was used to allow all assemblies under this location
    If you have to get more specific, you can do so.
7. Choose Use Existing Permission Set of FullTrust. Click 'Next'.
    For added security you could create your own customized permission set
    To keep my intranet on an even keel with my computer I chose FullTrust
8. Click 'Finish'.
9. Some documents claim that you need to restart Visual Studio
    Sometimes you do. Sometimes, you don't.
10. You may now run your project on a intranet UNC.