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

  • Home
  • SEARCH
  • 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 6771951
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T15:29:33+00:00 2026-05-26T15:29:33+00:00

This is suppose to be a basic password change method using DirectoryServices in ASP.NET.

  • 0

This is suppose to be a basic password change method using DirectoryServices in ASP.NET.

The code:

String path = ConfigurationManager.AppSettings["LDAPServer"] + myDN;
DirectoryEntry de = new DirectoryEntry(path, @"Domain A\" + myUserId, myPassword, AuthenticationTypes.Secure);
de.Invoke("ChangePassword", new object[] { myPassword, myNewPassword});

This runs fine if I run locally via virtual IIS (using Visual Studio).
However, if I publish this to production, I get:

Configuration information could not be read from the domain controller, either because the machine is unavailable, or access has been denied. (Exception from HRESULT: 0x80070547)

The only difference between that might be that my computer is on Domain A but the published server is on Domain B.
Domain A and Domain B are trusted and Domain A is parent of Domain B.

Anyone have any idea where and how the error is produced?

EDIT: Perhaps I should add that this is a Web Service. Another app will throw necessary information to verify and the Web Service will change the password.

  • 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-05-26T15:29:33+00:00Added an answer on May 26, 2026 at 3:29 pm

    Sorry to mark yours as answer and take it away. I was actually getting another error because of identity thing and I thought this issue was solved and moved unto next issue.

    Anyway, I have solved it by changing the PATH of DirectoryEntry.
    Before it was:

    LDAP://server.domain/DistinguishedName

    but I changed it to

    LDAP://DistinguishedName

    then it was all working fine.

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

Sidebar

Related Questions

Suppose this C# code: using (MemoryStream stream = new MemoryStream()) { StreamWriter normalWriter =
I suppose this could apply to any dynamic language, but the one I'm using
I've seen second one in another's code and I suppose this length comparison have
Suppose I have some code like this: class Visitor { public: Visitor(callBackFunction) {} void
I suppose this question could just as easily be applied to PHP with regard
I suppose this question is a variation on a theme , but different. Torrents
I suppose this might be similar to this question , but I'm wondering if
I suppose this is a long shot considering how few Wonderware questions I've seen
I suppose this question is more general than working with COM components. I have
Suppose this is my URL route: (r'^test/?$','hello.life.views.test'), How do I make it so that

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.