Cannot run C# Program from file server

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi

I've compiled a project in C# 2003 Standard Edition and I put it on a
network drive. However I get all sorts of exceptions.

I can run the program from C:\

Weird!
 
I've compiled a project in C# 2003 Standard Edition and I put it on a
network drive. However I get all sorts of exceptions.

Applciations launched from non-local locations are not given the same level
of trust as locations on your local machine. You must either elevate the
level of trust given to the application or the location. Look up Code Access
Security in the online help.
 
I've compiled a project in C# 2003 Standard Edition and I put it on a
network drive. However I get all sorts of exceptions.

Most likely, your .NET security is still set to the default, which
does not allow execution from within the local intranet zone (and
server shares are considered intranet).

To change this, go to your start menu and find the "Administrative
Tools" group (usually under control panel or program files or
something).

There's a ".NET Configuration" item there - click on it. Once you've
launched this, choose the "Runtime Security Policy" node from the
tree, and pick the "Adjust Zone Security".

Now make "changes to the local computer", and be sure to set the local
intranet zone to have full trust - otherwise, yuo won't be able to
execute apps from a network share!

Marc
================================================================
Marc Scheuner May The Source Be With You!
Berne, Switzerland m.scheuner -at- inova.ch
 
Back
Top