Click here to Skip to main content
15,889,315 members
Home / Discussions / C#
   

C#

 
GeneralInternet Connection Pin
Mazdak7-Dec-02 5:34
Mazdak7-Dec-02 5:34 
GeneralRe: Internet Connection Pin
mikasa7-Dec-02 8:15
mikasa7-Dec-02 8:15 
GeneralRe: Internet Connection Pin
leppie8-Dec-02 2:53
leppie8-Dec-02 2:53 
GeneralRe: Internet Connection Pin
Mazdak8-Dec-02 3:24
Mazdak8-Dec-02 3:24 
GeneralRe: Internet Connection Pin
leppie8-Dec-02 3:34
leppie8-Dec-02 3:34 
Generalprocess and network path Pin
imran_rafique7-Dec-02 0:33
imran_rafique7-Dec-02 0:33 
GeneralRe: process and network path Pin
mikasa7-Dec-02 8:16
mikasa7-Dec-02 8:16 
GeneralRe: process and network path Pin
Burt Harris7-Dec-02 9:22
Burt Harris7-Dec-02 9:22 
I think this is by design. The .NET Framework implements a code access security model, that limits access not only based on who is running the code, but where the code came from. The idea is to prevent malicious code from doing damage to your system.

Code installed on your local machine is granted full permissions by default, but code downloaded from another machine is limited based on concepts similar to the Internet Explorer security zones, local intranet, internet, trusted sites, restricted sites. Its possible to change the policies that determine what code can do what, but in your case that's probably not the right thing to do.

It sounds like you're trying to write an installer program. Packaging your application as a Windows Installer package (.MSI file) is a better approach. In installing your package, the user makes a decision to trust your code, then it runs from the local machine, with full permissions. If you need to perform special steps during setup you use a "custom action", which are supported in .NET using the System.Configuration.Install.Installer class hierarchy.

It's not a simple change, but learning about it is probably worth while. Try adding a Visual Studio "deployment project" to your solution. Select the deployment project in the solution explorer and be sure to click on the icons that appear at the top of the solution explorer, they aren't obvious at first, once you discover them your on your way.


Burt Harris
GeneralDaylight Saving TIme Pin
Bugoy6-Dec-02 20:14
Bugoy6-Dec-02 20:14 
GeneralRe: Daylight Saving TIme Pin
Jon Sagara6-Dec-02 20:22
Jon Sagara6-Dec-02 20:22 
Generalmultithreading Pin
valisekkagari6-Dec-02 9:36
valisekkagari6-Dec-02 9:36 
GeneralRe: multithreading Pin
Burt Harris7-Dec-02 9:46
Burt Harris7-Dec-02 9:46 
GeneralRe: multithreading Pin
valisekkagari12-Dec-02 7:44
valisekkagari12-Dec-02 7:44 
GeneralWindows Services Pin
Nic Oughton6-Dec-02 5:44
professionalNic Oughton6-Dec-02 5:44 
GeneralRe: Windows Services Pin
Burt Harris7-Dec-02 9:26
Burt Harris7-Dec-02 9:26 
GeneralRe: Windows Services Pin
Nic Oughton8-Dec-02 23:04
professionalNic Oughton8-Dec-02 23:04 
GeneralRe: Windows Services Pin
Ragavendran Vaidhyanadhan7-Dec-02 22:40
Ragavendran Vaidhyanadhan7-Dec-02 22:40 
GeneralRe: Windows Services Pin
Nic Oughton8-Dec-02 23:02
professionalNic Oughton8-Dec-02 23:02 
GeneralAdding Progress Bars to ListView Pin
athomas42195-Dec-02 21:04
athomas42195-Dec-02 21:04 
GeneralRe: Adding Progress Bars to ListView Pin
Richard Deeming5-Dec-02 23:47
mveRichard Deeming5-Dec-02 23:47 
GeneralWhy Are Mnemonic (Keys) Not Showing On Windows Forms Pin
Gaul5-Dec-02 17:33
Gaul5-Dec-02 17:33 
GeneralRe: Why Are Mnemonic (Keys) Not Showing On Windows Forms Pin
Richard Deeming5-Dec-02 23:49
mveRichard Deeming5-Dec-02 23:49 
GeneralRe: Why Are Mnemonic (Keys) Not Showing On Windows Forms Pin
Gaul6-Dec-02 16:00
Gaul6-Dec-02 16:00 
QuestionIs there a PushbackInputStream for C# or a work around? Pin
Rodney S. Foley5-Dec-02 13:53
Rodney S. Foley5-Dec-02 13:53 
GeneralLoading Windows Form dynamically into splitter Pin
femthink5-Dec-02 12:24
femthink5-Dec-02 12:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.