PC Review


Reply
Thread Tools Rate Thread

Cannot run C# Program from file server

 
 
=?Utf-8?B?Sk0=?=
Guest
Posts: n/a
 
      22nd Mar 2005
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!
 
Reply With Quote
 
 
 
 
Mickey Williams [C# MVP]
Guest
Posts: n/a
 
      22nd Mar 2005

"JM" <(E-Mail Removed)> wrote in message
news:BB1BF4DD-419B-42AA-AE24-(E-Mail Removed)...

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


--
Mickey Williams
Author, "Visual C# .NET Core Ref", MS Press
www.neudesic.com
www.servergeek.com


 
Reply With Quote
 
Marc Scheuner [MVP ADSI]
Guest
Posts: n/a
 
      22nd Mar 2005
>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
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Server side script to allow a program to post any file to it. kberish@gmail.com Microsoft ASP .NET 4 21st May 2008 06:33 PM
Cannot open any program file on the desktop or in the program grou =?Utf-8?B?dG9nYXI=?= Microsoft Windows 2000 File System 0 21st Oct 2004 11:00 PM
Copy file from server to server using server control button FileCopy() HELP =?Utf-8?B?UGVyZG8=?= Microsoft ASP .NET 0 6th Feb 2004 08:11 PM
File Association Problem-'Open' uses Correct PROGRAM but Explorer Shows WRONG Program-How To Fix??? Hammer Toe Windows XP General 8 12th Nov 2003 07:57 AM
| | | | |HELP | | | | Server went down, anyone have an email RECOVERY program, I have and offline .ost file Ratty Microsoft Outlook 1 26th Oct 2003 11:40 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:33 AM.