Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8053903
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T08:00:04+00:00 2026-06-05T08:00:04+00:00

We have setup a small library (DLL) that we use to update passwords in

  • 0

We have setup a small library (DLL) that we use to update passwords in AD. When testing this application in our test application, it works totally fine. But as soon as we start using the library in another application we get an Access Denied error when trying to change a password.

When we call any another function, like the one that does a simple lookup to see whether a user exists, everything works just fine.

    PrincipalContext ctx = new PrincipalContext(ContextType.Domain, TargetDomainServer, TargetDomainContainer, TargetDomainUser, TargetDomainPassword);
    UserPrincipalExt user = UserPrincipalExt.FindByIdentity(ctx, userLogonName);
    user.SetPassword(userPassword);

Any ideas on what i’m doing wrong?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T08:00:08+00:00Added an answer on June 5, 2026 at 8:00 am

    Your test application might be running as an administrator. Either because it’s running from your IDE or because it has a manifest with requestedExecutionLevel.

    On Windows Vista and 7, running the application while logged in as a normal user doesn’t mean the process isn’t running as administrator. There are automatic elevations for executables marked with requestedExecutionLevel. Try running your test application as administrator by right clicking it and choosing that.

    There are also automatic elevations without any deliberate executable marking. Windows has an internal list for known installers. It actually recognizes some of them by version information and binary signatures and tries to run them as administrator so the installation will actually succeed. IIRC, another identification method is the filename. Executables named setup.exe are also elevated (as long as requestedExecutionLevel doesn’t override it).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created several small applications that use my own DLL. The problem is,
Suppose I have several small test cases. Easy enough to setup and easy enough
I have setup a basic test app that displays a view containing a label,
I have setup memcached (unix socket) for my django application. However it seems that
I have a setup as described in this question which works perfectly. Essentially a
This might be a bit tricky setup but... I have this Silverlight project that
Our setup I have a small hosting setup consisting of an SQL Server (2008),
So I have this small application of mine I'm trying to deploy using visual
I have a installation setup with works like this: /exec.exe /some-command This whole setup
Background : I have a small Python application that makes life for developers releasing

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.