Solved

Programatically make directory a Trusted Site

Posted on 2008-11-02
3
594 Views
Last Modified: 2013-12-04
A file that my program points to is on a network directory behind a firewall.  I want to make this directory a trustsed site for my users.  Can I do this programatically in C#?
0
Comment
Question by:MichelleLacy
3 Comments
 
LVL 8

Accepted Solution

by:
rpkhare earned 250 total points
ID: 22862168
I have not used this but I think this can be done by handling Code Access Security (CAS) in .NET. Please see this link:

http://www.c-sharpcorner.com/UploadFile/chauhan_sonu57/CodeAccess102172006033850AM/CodeAccess1.aspx
0
 
LVL 41

Assisted Solution

by:graye
graye earned 250 total points
ID: 22867622
You can't directly alter the CAS settings from inside your application.   However, you can create an MSI file to distribute a new CAS policy to each PC.   After that step is completed, your application would run just fine.
The above article is very good...  If you're interested in a slightly less technical article, take a look at the following:  http://home.hot.rr.com/graye/Articles/CodeAccessSecurity.htm
0
 

Author Closing Comment

by:MichelleLacy
ID: 31512479
thanks, I'll check it out
0

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Users of Windows 10 Professional can disable automatic reboots using the policy editor. This tool is not included in the Windows home edition. But don't worry! Follow the instructions below to install (a Win7) policy editor on your Windows 10 Home e…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question