Solved

Programatically make directory a Trusted Site

Posted on 2008-11-02
3
596 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Asp.Net Session Question 2 36
Set custom font WPF 2 22
SSIS GUID Variable 2 37
Stop Git from being my repository 1 26
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
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…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

730 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