Solved

Programatically make directory a Trusted Site

Posted on 2008-11-02
3
588 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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

Suggested Solutions

Article by: btan
The intent is not to repeat what many has know about Ransomware but more to join its dots of what is it, who are the victims, why it exists, when and how we respond on infection. Lastly, sum up in a glance to share such information with more to help…
OfficeMate Freezes on login or does not load after login credentials are input.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

770 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