.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Look it Up: Managing Directory Security Principals in the .NET Framework 3.5

Posted By:      Posted Date: August 21, 2010    Points: 0   Category :ASP.Net

Here's an overview of the new System.DirectoryServices.AccountManagement class in the .NET Framework 3.5 and how it simplifies working with directory services.

Joe Kaplan and Ethan Wilansky

MSDN Magazine January 2008

View Complete Post

More Related Resource Links

CLR Inside Out: Exploring the .NET Framework 4 Security Model


The .NET Framework 4 introduces many updates to the .NET security model that make it much easier to host, secure and provide services to partially trusted code. This article dives into the many features and benefits of the .NET security model.

Andrew Dai

MSDN Magazine November 2009

Geneva Framework: Building A Custom Security Token Service


A Security Token Service, or STS, acts as a security gateway to authenticate callers and issue security tokens carrying claims that describe the caller. See how you can build a custom STS with the "Geneva" Framework.

Michele Leroux Bustamante

MSDN Magazine January 2009

Security Briefs: Active Directory Cache Dependencies


If you're not taking advantage of Active Directory, you should be. Learn the benefits from Keith Brown.

Keith Brown

MSDN Magazine July 2007

WSE Security: Protect Your Web Services Through The Extensible Policy Framework In WSE 3.0


This article describes the WSE policy framework, which allows you to describe constraints and requirements a Web service must enforce. Discussions include security scenarios in WSE 3.0 and extending the framework with custom constraints and requirements.

Tomasz Janczuk

MSDN Magazine February 2006

Security Briefs: Security Enhancements in the .NET Framework 2.0


The.NET Framework 2.0 got quite a few security enhancements. This month Keith takes you on a whirlwind tour of the goodies you'll find there.

Keith Brown

MSDN Magazine Visual Studio 2005 Guided Tour 2006

Got Directory Services?: New Ways to Manage Active Directory using the .NET Framework 2.0


System.DirectoryServices is a managed code layer on top of Active Directory Service Interfaces, and you can employ it to better manage Active Directory from your code. Here Ethan Wilansky helps you get started.

Ethan Wilansky

MSDN Magazine December 2005

Are You in the Know?: Find Out What's New with Code Access Security in the .NET Framework 2.0


Unlike role-based security measures, code access security is not based on user identity. Instead, it is based on the identity of the code that is running, including information such as where the code came from. Here Mike Downen discusses the role of code access security (CAS) in .NET and outlines some key new features and changes in CAS for the .NET Framework 2.0.

Mike Downen

MSDN Magazine November 2005

Security Briefs: Security Enhancements in the .NET Framework 2.0


As I write this column, version 2. 0 of the Microsoft® . NET Framework is at Beta 1. When I got my bits, I hacked together a little program to dump all of the public members of all public types in the entire Framework and ran it on version 1.

Keith Brown

MSDN Magazine January 2005

Windows Forms: .NET Framework 1.1 Provides Expanded Namespace, Security, and Language Support for Yo


With the much-anticipated release of the .NET Framework 1.1, developers are eager to know what's been added to their programming bag of tricks. In this article, the author focuses on new developments in Windows Forms, such as namespace additions, support for hosting managed controls in unmanaged clients, and designer support for C++ and J#. Integrated access to the Compact Framework and new mobile code security settings also make this release noteworthy. Along with these features, the author reviews the best ways to handle multiple versions of the common language runtime and highlights some potential pitfalls.

Chris Sells

MSDN Magazine March 2003

Security: Protect Private Data with the Cryptography Namespaces of the .NET Framework


The .NET Framework includes a set of cryptographic services that extend the services provided by Windows through the Crypto API. In this article, the author explores the System.Security.Cryptography namespace and the programming model used to apply cryptographic transformations. He discusses reasons why cryptography is easier in .NET than it was before, including the easy programmatic acccess developers have to the cryptography APIs and the difference between symmetric and asymmetric algorithms. Along the way, a brief discussion of the most widely used algorithms, including RSA, DSA, Rijndael, SHA, and other hash algorithms, is provided.

Dan Fox

MSDN Magazine June 2002

New R2 security principals

Gents, Can you please explain new security principals in MS SQL 2008 R2. I tried to change accounts for SQL services. I opened "SQL Server Configuration Manager", chose SQL Server Agent and changed log on account as domain account. But I don't see changes in local SQL groups (SQLServer*$server-name$MSSQLSERVER). I see the same strange security principals (groups) like "NT SERVICE\SQLSERVERAGENT" which included into local SQL groups. Can anyone explain, what does mean these security principals (SP) ? How real domain accounts are associated to these SP ? ps. I don't see this behavior in SQL 2008 (no R2). The specific domain account is added into SQL group. pps. Why I have this question. I tried to connect SQL DB. ACL for DB files was strong, only local SQL server group had full control for DB files. SQL server couldn't open DB ;-/ Full control for everyone is fixed this issues, but it's not ok for me.  

Security Update for Microsoft .NET Framework, Version 1.1 Service Pack 1 (KB928366)

I have been trying to install   Security Update for Microsoft .NET Framework, Version 1.1 Service Pack 1 (KB928366)   since it was released but downloads ok but it will not install. Everytime installation of this update fails!   Help...

.net 4 framework : Security Exception

Hi,I have a ASP.NET targeted framework 4.0 application written in VB.In the code I'm executing this line:Today = (Month(now).tostring + "/" + Day(now).tostring)In development this goes great. In production I receive a Security Exception.----Security Exception  Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file. Exception Details: System.Security.SecurityException: Insufficient security permissions to set the system date.----In the 'old' frameworks I could play around with the rights. However this is kicked out in .net framework 4.Does anyone know how to fix this ?

Upgrading .net framework and server effect active directory


Hi All,

I want to ask some questions that i doubt.

Now currently, our project using active directory on vb.net 1.1 and server 2003. We will be upgrade to vb.net 3.5 and server 2008.

In this case, 1. We convert all vb.net 1.1 application to vb.net 3.5 and run on server 2003.

Then later on, 2. Our server will upgrade to server 2003 to server 2008.

I would linke to know after doing above two phase will effect on Active Directory code setting in our program.

Can I conver to 1 to 1 withut changing anything in vb.net and server?

Windows 7 Security and .Net Framework




I'm developing an application using .Net Framework 2.0...

In my application, I require to create a file to in C:\Windows folder and need to store some settings in registry (Read/Write Registry Both Operations)


I'm an administrator user but still I don't have rights to create folder from the application. Application throws "Access Denied" exception while creating a file/write data in registry. I only have rights to read file/read registry data.

My application works perfectly when I run that application as an administrator.


But every time end user can't run my application as an administrator.

So my problem is : 

Is there a problem with windows 7 or .net framework has feature to bypass this security check and allow my application to create file/write data to registry.


I surf an internet a lot... but I didn't get proper solution...


This my permission dialog of HKEY_LOCALMACHINE Folder

Free Image Hosting at www.ImageShack.us


You can see administrator has full permission..But I don't have...


Possible security issue with .NET framework and web services


We have a web service that runs fine on our Windows Server 2008 R2 test system.

However, it does not work on a production machine at a customer site.

It is installed using:

  • WISE installer 32 bit
  • .NET 2.0 Framework
  • Machine has UAC disabled

Some observations:

  • Communication between client and server seems to work fine
  • Can't write to c:\ProgramData
  • Can't connect to database using ODBC connector.
  • Can't log messages to the Windows Event Log (we get an exception that we don't have privileges)

This makes us suspect security settings on the machine. Enabling trace logs on the ODBC Manager shows no errors. The Windows Event Viewer doesn't indicate any problems.

Can anyone suggest what is wrong? Is there a tool we can use to discover the source of the problems.

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend