Solved

Programatically make directory a Trusted Site

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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
OfficeMate Freezes on login or does not load after login credentials are input.
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

910 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now