Advertisement:

Skystone Software

http://www.SkystoneSoftware.com

Scott Waletzko's Blog
Running .NET from Network Locations
Published: 11/1/2007
XMl / RSS

A frequent question I run into when mentoring is about how to run projects or compiled .NET programs from a network location. By default, the .NEt Framework restricts this action under the premise of protecting users from malicious code. The only way to allow it is to modify the security settings of the .NET Framework on the computer that each user uses. The following steps will allow you to run both compiled and project files from a network share (but beware, Visual Studio slows to a near-crawl when you run projects off of network locations):

  1. "Start" -> "Administrative Tools" -> "Microsoft .NET 2.0 Configuration"
  2. Expand "Runtime Security Policy"
  3. Expand "Machine policy level"
  4. Expand "Code Groups"
  5. Expand "All_Code"
  6. Right click the LocalIntranet_Zone code group, and select properties
  7. Switch to the Permission Set tab, and select FullTrust, click OK



Questions or Comments? .

VB to C# and C# to VB translation provided by Instant C# and Instant VB.